public TreePath resolve(CompilationInfo info) { return delegateElementHandle.resolve(info); }
private ExpressionTree getArgument(CompilationInfo cinfo) { StatementTree stmtTree = (StatementTree) stmtTreePathHandle.resolve(cinfo).getLeaf(); //StatementTree stmtTree = method.findPropertyStatement(cinfo, beanName, setterName); if (stmtTree != null) { // #137584 Fixing IndexOutOfBoundsException. List<? extends ExpressionTree> list = getMethodInvocationTree(cinfo, stmtTree).getArguments(); return list.isEmpty() ? null : list.get(0); } return null; }
public DocTreePath resolve(CompilationInfo javac) throws IllegalArgumentException { TreePath p = parent.resolve(javac); if (p == null) { return null; } DocCommentTree docCommentTree = javac.getDocTrees().getDocCommentTree(p); return getChild(docCommentTree, index); }
public TreePath resolve(CompilationInfo compilationInfo) throws IllegalArgumentException { TreePath p = parent.resolve(compilationInfo); if (p == null) return null; List<Tree> children = listChildren(p.getLeaf()); if (index < children.size()) { Tree t = children.get(index); if (t.getKind() == kind) { return new TreePath(p, t); } } return null; }
public Object run(WorkingCopy wc) { TreeMaker make = wc.getTreeMaker(); StatementTree stmtTree = (StatementTree) stmtTreePathHandle.resolve(wc).getLeaf(); //StatementTree stmtTree = method.findPropertyStatement(wc, beanName, setterName); return method.removeStatement(wc, stmtTree); } }, method.getJavaClass().getFileObject());
public DocTreePath resolve(CompilationInfo javac) throws IllegalArgumentException { TreePath p = parent.resolve(javac); if (p == null) { return null; } DocCommentTree docCommentTree = javac.getDocTrees().getDocCommentTree(p); return new DocTreePath(p, docCommentTree); }
TreePath treePath = treePathHandle.resolve(javac); if(treePath == null) { throw new IllegalArgumentException("treePathHandle.resolve(compilationInfo) returned null for treePathHandle " + treePathHandle); //NOI18N