com.sun.source.tree.EmptyStatementTree Java Examples
The following examples show how to use
com.sun.source.tree.EmptyStatementTree.
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 visitEmptyStatement(EmptyStatementTree tree, Void p) { EmptyStatementTree n = make.EmptyStatement(); // model.setType(n, model.getType(tree)); comments.copyComments(tree, n); model.setPos(n, model.getPos(tree)); return n; }
Example #2
Source File: CopyFinder.java From netbeans with Apache License 2.0 | 5 votes |
@Override public Boolean visitEmptyStatement(EmptyStatementTree node, TreePath p) { if (p == null) { super.visitEmptyStatement(node, p); return false; } return node.getKind() == p.getLeaf().getKind(); }
Example #3
Source File: TreeNode.java From netbeans with Apache License 2.0 | 5 votes |
@Override public Void visitEmptyStatement(EmptyStatementTree tree, List<Node> d) { List<Node> below = new ArrayList<Node>(); addCorrespondingType(below); addCorrespondingComments(below); super.visitEmptyStatement(tree, below); d.add(new TreeNode(info, getCurrentPath(), below)); return null; }
Example #4
Source File: TreeDiffer.java From compile-testing with Apache License 2.0 | 5 votes |
@Override public Void visitEmptyStatement(EmptyStatementTree expected, Tree actual) { if (!checkTypeAndCast(expected, actual).isPresent()) { addTypeMismatch(expected, actual); return null; } return null; }
Example #5
Source File: JavaInputAstVisitor.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
@Override public Void visitEmptyStatement(EmptyStatementTree node, Void unused) { sync(node); dropEmptyDeclarations(); return null; }
Example #6
Source File: Flow.java From netbeans with Apache License 2.0 | 4 votes |
public Boolean visitEmptyStatement(EmptyStatementTree node, ConstructorData p) { super.visitEmptyStatement(node, p); return null; }
Example #7
Source File: ExpectedTypeResolver.java From netbeans with Apache License 2.0 | 4 votes |
@Override public List<? extends TypeMirror> visitEmptyStatement(EmptyStatementTree node, Object p) { return null; }
Example #8
Source File: JavaInputAstVisitor.java From javaide with GNU General Public License v3.0 | 4 votes |
@Override public Void visitEmptyStatement(EmptyStatementTree node, Void unused) { sync(node); dropEmptyDeclarations(); return null; }
Example #9
Source File: JavaInputAstVisitor.java From google-java-format with Apache License 2.0 | 4 votes |
@Override public Void visitEmptyStatement(EmptyStatementTree node, Void unused) { sync(node); dropEmptyDeclarations(); return null; }
Example #10
Source File: UTemplater.java From Refaster with Apache License 2.0 | 4 votes |
@Override public USkip visitEmptyStatement(EmptyStatementTree tree, Void v) { return USkip.INSTANCE; }
Example #11
Source File: USkip.java From Refaster with Apache License 2.0 | 4 votes |
@Override @Nullable public Unifier visitEmptyStatement(EmptyStatementTree node, @Nullable Unifier unifier) { return unifier; }