com.sun.source.tree.UsesTree Java Examples
The following examples show how to use
com.sun.source.tree.UsesTree.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TreeDuplicator.java From netbeans with Apache License 2.0 | 5 votes |
@Override public Tree visitUses(UsesTree tree, Void p) { UsesTree n = make.Uses(tree.getServiceName()); model.setType(n, model.getType(tree)); comments.copyComments(tree, n); model.setPos(n, model.getPos(tree)); return n; }
Example #2
Source File: SemanticHighlighterBase.java From netbeans with Apache License 2.0 | 5 votes |
@Override public Void visitUses(UsesTree tree, Void p) { tl.moveToOffset(sourcePositions.getStartPosition(info.getCompilationUnit(), tree)); Token t = firstIdentifierToken("uses"); //NOI18N if (t != null) { contextKeywords.add(t); } return super.visitUses(tree, p); }
Example #3
Source File: TreeNode.java From netbeans with Apache License 2.0 | 5 votes |
@Override public Void visitUses(UsesTree tree, List<Node> d) { List<Node> below = new ArrayList<Node>(); addCorrespondingType(below); addCorrespondingComments(below); super.visitUses(tree, below); d.add(new TreeNode(info, getCurrentPath(), below)); return null; }
Example #4
Source File: JavaInputAstVisitor.java From google-java-format with Apache License 2.0 | 5 votes |
@Override public Void visitUses(UsesTree node, Void unused) { token("uses"); builder.space(); scan(node.getServiceName(), null); token(";"); return null; }
Example #5
Source File: ExpectedTypeResolver.java From netbeans with Apache License 2.0 | 4 votes |
@Override public List<? extends TypeMirror> visitUses(UsesTree node, Object p) { return null; }
Example #6
Source File: CanInterpretVisitor.java From netbeans with Apache License 2.0 | 4 votes |
@Override public Boolean visitUses(UsesTree node, EvaluationContext p) { return Boolean.FALSE; }
Example #7
Source File: JavacModuleParser.java From pro with GNU General Public License v3.0 | 4 votes |
public void visitUses(UsesTree node, @SuppressWarnings("unused") TreeVisitor<?, ?> __) { mv.visitUse(qualifiedString(node.getServiceName())); }