com.github.javaparser.ast.expr.SuperExpr Java Examples
The following examples show how to use
com.github.javaparser.ast.expr.SuperExpr.
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: PrettyPrintVisitor.java From stategen with GNU Affero General Public License v3.0 | 5 votes |
@Override public void visit(final SuperExpr n, final Void arg) { printJavaComment(n.getComment(), arg); if (n.getClassExpr().isPresent()) { n.getClassExpr().get().accept(this, arg); printer.print("."); } printer.print("super"); }
Example #2
Source File: TraceVisitor.java From JCTools with Apache License 2.0 | 4 votes |
@Override public void visit(SuperExpr n, Void arg) { out.println("SuperExpr: " + (extended ? n : "")); super.visit(n, arg); }
Example #3
Source File: SuperExprMerger.java From dolphin with Apache License 2.0 | 3 votes |
@Override public SuperExpr doMerge(SuperExpr first, SuperExpr second) { SuperExpr se = new SuperExpr(); se.setClassExpr(mergeSingle(first.getClassExpr(),second.getClassExpr())); return se; }
Example #4
Source File: SuperExprMerger.java From dolphin with Apache License 2.0 | 2 votes |
@Override public boolean doIsEquals(SuperExpr first, SuperExpr second) { if(!isEqualsUseMerger(first.getClassExpr(),second.getClassExpr())) return false; return true; }