Java源码示例:com.sun.source.tree.EmptyStatementTree
示例1
@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;
}
示例2
@Override
public Boolean visitEmptyStatement(EmptyStatementTree node, TreePath p) {
if (p == null) {
super.visitEmptyStatement(node, p);
return false;
}
return node.getKind() == p.getLeaf().getKind();
}
示例3
@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;
}
示例4
@Override
public Void visitEmptyStatement(EmptyStatementTree expected, Tree actual) {
if (!checkTypeAndCast(expected, actual).isPresent()) {
addTypeMismatch(expected, actual);
return null;
}
return null;
}
示例5
@Override
public Void visitEmptyStatement(EmptyStatementTree node, Void unused) {
sync(node);
dropEmptyDeclarations();
return null;
}
示例6
public Boolean visitEmptyStatement(EmptyStatementTree node, ConstructorData p) {
super.visitEmptyStatement(node, p);
return null;
}
示例7
@Override
public List<? extends TypeMirror> visitEmptyStatement(EmptyStatementTree node, Object p) {
return null;
}
示例8
@Override
public Void visitEmptyStatement(EmptyStatementTree node, Void unused) {
sync(node);
dropEmptyDeclarations();
return null;
}
示例9
@Override
public Void visitEmptyStatement(EmptyStatementTree node, Void unused) {
sync(node);
dropEmptyDeclarations();
return null;
}
示例10
@Override
public USkip visitEmptyStatement(EmptyStatementTree tree, Void v) {
return USkip.INSTANCE;
}
示例11
@Override
@Nullable
public Unifier visitEmptyStatement(EmptyStatementTree node, @Nullable Unifier unifier) {
return unifier;
}