Package org.cfeclipse.cfml.parser.docitems

Examples of org.cfeclipse.cfml.parser.docitems.DocItem.selectNodes()


      System.out.println("CodeFoldingSetter::foldTags got a null from doc.getCFDocument().");
      return;
    }
    // nodes =
    // rootItem.selectNodes("//function[#startpos>=0 and #endpos < 200]");
    CFNodeList nodes = rootItem.selectNodes("//" + tagName.toLowerCase());

    Iterator it = nodes.iterator();
    while (it.hasNext()) {
      Object o = it.next();
      if (o instanceof CfmlTagItem && ((CfmlTagItem) o).matchingItem != null) {
View Full Code Here


        CFDocument doc = parser.parseDoc(inputString);

        // Now we just want to add the nodes!
        DocItem docroot = doc.getDocumentRoot();
        CFNodeList nodes;
        nodes = docroot.selectNodes("//cffunction");
        Iterator iter = nodes.iterator();
        while (iter.hasNext())
        {
            TagItem thisTag = (TagItem) iter.next();
            FunctionNode funcnode = new FunctionNode(thisTag);
View Full Code Here

          CFDocument doc = parser.parseDoc(cfdocument.get());

          // Now we just want to add the nodes!
          DocItem docroot = doc.getDocumentRoot();
         
          CFNodeList compNodes = docroot.selectNodes("/cfcomponent");
         
          CFNodeList nodes = docroot.selectNodes("//cffunction");
     
         Iterator funcIter =  nodes.iterator();
         while(funcIter.hasNext()){
View Full Code Here

          // Now we just want to add the nodes!
          DocItem docroot = doc.getDocumentRoot();
         
          CFNodeList compNodes = docroot.selectNodes("/cfcomponent");
         
          CFNodeList nodes = docroot.selectNodes("//cffunction");
     
         Iterator funcIter =  nodes.iterator();
         while(funcIter.hasNext()){
              TagItem thisFunction = (TagItem)funcIter.next();
View Full Code Here

        return EMPTY_ARRAY;
      }
      DocItem rootItem = doc.getDocumentRoot();

      //nodes = rootItem.selectNodes("//function[#startpos>=0 and #endpos < 200]");
      nodes = rootItem.selectNodes("//cffunction");
      if (nodes.size() == 0) {
        nodes = rootItem.selectNodes("//ASTFunctionDeclaration");
      }
      return getMethods(nodes);
    }
View Full Code Here

      DocItem rootItem = doc.getDocumentRoot();

      //nodes = rootItem.selectNodes("//function[#startpos>=0 and #endpos < 200]");
      nodes = rootItem.selectNodes("//cffunction");
      if (nodes.size() == 0) {
        nodes = rootItem.selectNodes("//ASTFunctionDeclaration");
      }
      return getMethods(nodes);
    }
    catch (Exception e){
      System.err.println("CFCMethodsContentProvider has no elements");
View Full Code Here

   */
  public DocItem getItems(String filter) {
    DocItem scratch = new TagItem(1, 1, 1, "root");

    DocItem rootItem = getRootInput();
    CFNodeList nodes = rootItem.selectNodes(filter);

    Iterator i = nodes.iterator();
    while (i.hasNext()) {
      try {
        scratch.addChild((DocItem) i.next());
View Full Code Here

      //CFDocument parsedDoc = parser.getParseResult();
     
      if(elparso != null){
        DocItem rootItem = elparso.getDocumentRoot();
        //Find the CFScript Items
        CFNodeList circuitscripts = rootItem.selectNodes("//cfscript");
        if(circuitscripts != null){
          Iterator scriptIter = circuitscripts.iterator();
         
          while(scriptIter.hasNext()){
            CfmlTagItem tag = (CfmlTagItem)scriptIter.next();
View Full Code Here

           
          }
        }
       
        //Now add all the cfset items
        CFNodeList circuitsets = rootItem.selectNodes("//cfset");
        if(circuitsets != null){
          Iterator setIter = circuitsets.iterator();
         
          while(setIter.hasNext()){
            CfmlTagItem tag = (CfmlTagItem)setIter.next();
View Full Code Here

      try{
        CFDocument swtichDoc =  parser.parseDoc(switchContents);
       
        if(swtichDoc != null){
          DocItem rootItem = swtichDoc.getDocumentRoot();
          CFNodeList switchItems = rootItem.selectNodes("//cfcase");
          Iterator switchIter = switchItems.iterator();
         
          while(switchIter.hasNext()){
            CfmlTagItem tag = (CfmlTagItem)switchIter.next();
            if(tag != null){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.