/**Return the deepest DocTreePath at the given position. * * @param path where the search should start * @param pos the position to search for * @return the deepest DocTreePath at the given position * @since 0.124 */ public DocTreePath pathFor(DocTreePath path, int pos) { return pathFor(path, pos, info.getDocTrees().getSourcePositions()); }
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); }
final DocTrees trees = javac.getDocTrees(); final DocCommentTree docComment = javac.getDocTrees().getDocCommentTree(forElement);
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); }
final DocTrees trees = javac.getDocTrees(); DocCommentTree docComment = trees.getDocCommentTree(tp);
final DocTrees trees = javac.getDocTrees(); final TreePath tp = JavadocCompletionUtils.findJavadoc(javac, offset); final DocCommentTree docComment = javac.getDocTrees().getDocCommentTree(tp);
public static Token findNameTokenOfReferencedElement(final CompilationInfo javac, final int offset) { final DocTrees trees = javac.getDocTrees(); final TreePath tp = JavadocCompletionUtils.findJavadoc(javac, offset); final DocCommentTree docComment = javac.getDocTrees().getDocCommentTree(tp);
DocCommentTree doc = javac.getDocTrees().getDocCommentTree(treePath); if (doc == null) {
private void resolveElement() { final DocTrees trees = javac.getDocTrees(); DocCommentTree dcComment = trees.getDocCommentTree(getCurrentPath());
int pos = (int) info.getDocTrees().getSourcePositions().getStartPosition(info.getCompilationUnit(), docTree, ref);