Package org.eclipse.jdt.core.dom

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


    ASTParser parser = createASTParser(compUnit.getJavaProject(), compUnit, ASTParser.K_COMPILATION_UNIT);
    ASTNode ast = parser.createAST(null);
    if (ast instanceof CompilationUnit) {
      CompilationUnit cu = (CompilationUnit) ast;
      ASTFinder visitor = new ASTFinder(className);
      cu.accept(visitor);
      return visitor.getTypeDeclaration();
    }
    return 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.