@Override public Node visit(SuperExpr _n, Object _arg) { Expression classExpr = cloneNodes(_n.getClassExpr(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); SuperExpr r = new SuperExpr( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), classExpr ); r.setComment(comment); return r; }
public void setClassExpr(final Expression classExpr) { this.classExpr = classExpr; setAsParentNodeOf(this.classExpr); } }
@Override public Node visit(final SuperExpr n, final A arg) { if (n.getClassExpr() != null) { n.setClassExpr((Expression) n.getClassExpr().accept(this, arg)); } return n; }
@Override public void visit(final SuperExpr n, final A arg) { visitComment(n.getComment(), arg); if (n.getClassExpr() != null) { n.getClassExpr().accept(this, arg); } }
final public Expression PrimarySuffix(Expression scope) throws ParseException { Expression ret; if (jj_2_28(2)) { ret = PrimarySuffixWithoutSuper(scope); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOT: jj_consume_token(DOT); jj_consume_token(SUPER); ret = new SuperExpr(scope.getBeginLine(), scope.getBeginColumn(), token.endLine, token.endColumn, scope); break; default: jj_la1[88] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } {if (true) return ret;} throw new Error("Missing return statement in function"); }
@Override public R visit(final SuperExpr n, final A arg) { if (n.getClassExpr() != null) { { R result = n.getClassExpr().accept(this, arg); if (result != null) { return result; } } } return null; }
public SuperExpr(final int beginLine, final int beginColumn, final int endLine, final int endColumn, final Expression classExpr) { super(beginLine, beginColumn, endLine, endColumn); setClassExpr(classExpr); }
@Override public void visit(final SuperExpr n, final Object arg) { printJavaComment(n.getComment(), arg); if (n.getClassExpr() != null) { n.getClassExpr().accept(this, arg); printer.print("."); } printer.print("super"); }
final public Expression PrimarySuffix(Expression scope) throws ParseException { Expression ret; if (jj_2_28(2)) { ret = PrimarySuffixWithoutSuper(scope); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOT: jj_consume_token(DOT); jj_consume_token(SUPER); ret = new SuperExpr(scope.getBeginLine(), scope.getBeginColumn(), token.endLine, token.endColumn, scope); break; default: jj_la1[89] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } {if (true) return ret;} throw new Error("Missing return statement in function"); }
@Override public Boolean visit(final SuperExpr n1, final Node arg) { final SuperExpr n2 = (SuperExpr) arg; if (!nodeEquals(n1.getClassExpr(), n2.getClassExpr())) { return Boolean.FALSE; } return Boolean.TRUE; }
public SuperExpr(final Expression classExpr) { setClassExpr(classExpr); }
case SUPER: jj_consume_token(SUPER); ret = new SuperExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, null); jj_consume_token(DOT); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
public void visit(SuperExpr n, Object arg) { if (n.getClassExpr() != null) { n.getClassExpr().accept(this, arg); printer.print("."); } printer.print("super"); }
case SUPER: jj_consume_token(SUPER); ret = new SuperExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, null); jj_consume_token(DOT); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {