Examples of ASTListNode


Examples of org.eclipse.dltk.ast.ASTListNode

    return visitGeneral(type);
  }

  protected String[] processSuperClasses(TypeDeclaration type) {
    ASTListNode superClasses = type.getSuperClasses();
    if (superClasses == null) {
      return new String[] {};
    }
    List<ASTNode> superClassNames = superClasses.getChilds();
    List<String> result = new ArrayList<String>(superClassNames.size());
    Iterator<ASTNode> iterator = superClassNames.iterator();
    while (iterator.hasNext()) {
      ASTNode nameNode = iterator.next();
      String name;
View Full Code Here

Examples of org.eclipse.dltk.ast.ASTListNode

    super(interfaceName, nameStart, nameEnd, start, end);

    this.phpDoc = phpDoc;

    int nodesStart = body.sourceStart() - 1;
    ASTListNode parentsList = new ASTListNode(nodesStart, nodesStart);
    for (TypeReference intface : interfaces) {
      parentsList.addNode(intface);
      if (parentsList.sourceStart() > intface.sourceStart()) {
        parentsList.setStart(intface.sourceStart());
      }
    }

    if (parentsList.getChilds().size() > 0) {
      setSuperClasses(parentsList);
    }

    setBody(body);
View Full Code Here

Examples of org.eclipse.dltk.ast.ASTListNode

                throws Exception {
              if (s == methodDecl
                  && currentType instanceof ClassDeclaration) {
                ClassDeclaration classDecl = (ClassDeclaration) currentType;

                ASTListNode superClasses = classDecl
                    .getSuperClasses();
                List childs = superClasses.getChilds();
                for (Iterator iterator = childs.iterator(); iterator
                    .hasNext();) {
                  ASTNode node = (ASTNode) iterator.next();
                  NamespaceReference namespace = null;
                  SimpleReference reference = 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.