/** * Returns the class tree that matches the given symbol within the compilation unit, or null if * none was found. */ @Nullable public static ClassTree findClass(ClassSymbol symbol, VisitorState state) { return JavacTrees.instance(state.context).getTree(symbol); }
/** * Returns the method tree that matches the given symbol within the compilation unit, or null if * none was found. */ @Nullable public static MethodTree findMethod(MethodSymbol symbol, VisitorState state) { return JavacTrees.instance(state.context).getTree(symbol); }
return; ClassTree tree = JavacTrees.instance(context).getTree(taskEvent.getTypeElement()); if (tree == null) { return;
public JCMethodDecl getTree(ExecutableElement method) { return (JCMethodDecl) getTree((Element) method); }
public JCClassDecl getTree(TypeElement element) { return (JCClassDecl) getTree((Element) element); }
public JCClassDecl getTree(TypeElement element) { return (JCClassDecl) getTree((Element) element); }
public JCTree getTree(Element e, AnnotationMirror a) { return getTree(e, a, null); }
public JCTree getTree(Element e, AnnotationMirror a) { return getTree(e, a, null); }
public JCTree getTree(Element e, AnnotationMirror a) { return getTree(e, a, null); }
public JCClassDecl getTree(TypeElement element) { return (JCClassDecl) getTree((Element) element); }
public JCClassDecl getTree(TypeElement element) { return (JCClassDecl) getTree((Element) element); }
public JCMethodDecl getTree(ExecutableElement method) { return (JCMethodDecl) getTree((Element) method); }
public JCMethodDecl getTree(ExecutableElement method) { return (JCMethodDecl) getTree((Element) method); }
public JCTree getTree(Element e, AnnotationMirror a) { return getTree(e, a, null); }
public JCMethodDecl getTree(ExecutableElement method) { return (JCMethodDecl) getTree((Element) method); }
/** * Returns the class tree that matches the given symbol within the compilation unit, or null if * none was found. */ @Nullable public static ClassTree findClass(ClassSymbol symbol, VisitorState state) { return JavacTrees.instance(state.context).getTree(symbol); }
/** * Returns the method tree that matches the given symbol within the compilation unit, or null if * none was found. */ @Nullable public static MethodTree findMethod(MethodSymbol symbol, VisitorState state) { return JavacTrees.instance(state.context).getTree(symbol); }
return; ClassTree tree = JavacTrees.instance(context).getTree(taskEvent.getTypeElement()); if (tree == null) { return;