Package org.eclipse.jdt.core.dom

Examples of org.eclipse.jdt.core.dom.ASTNode.accept()


  }
 
  protected static Map parseParameterNames(ICompilationUnit[] units, TestNGMethodParameterVisitor visitor) {
    for(int i= 0; i < units.length; i++) {
      ASTNode node= getParserNode(units[i]);
      node.accept(visitor);
    }
   
    return visitor.hasParameters() ? visitor.getParametersMap() : null;
  }
 
View Full Code Here


    fooParser.setSource(toBeParsed.toCharArray());
    fooParser.setResolveBindings(true);
    ASTNode parsedAstNode = fooParser.createAST(null);

    ASTFinder visitor = new ASTFinder();
    parsedAstNode.accept(visitor);
    return visitor;
  }

  public static ITypeBinding getTargetTypeBinding(IJavaProject javaProject, IType targetType) {
    IBinding binding = getBinding(javaProject, targetType, targetType.getCompilationUnit(),
View Full Code Here

    if (type != null && type.getCompilationUnit() != null) {
      ASTParser parser = ASTParser.newParser(AST.JLS3);
      parser.setSource(type.getCompilationUnit());
      parser.setResolveBindings(true);
      ASTNode node = parser.createAST(new NullProgressMonitor());
      node.accept(visitor);
    }
  }

  private static boolean doesImplementWithJdt(IResource resource, IType type, String className) {
    IType interfaceType = getJavaType(resource.getProject(), className);
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.