@Override public Node visit(LongLiteralExpr _n, Object _arg) { Comment comment = cloneNodes(_n.getComment(), _arg); LongLiteralExpr r = new LongLiteralExpr( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), _n.getValue() ); r.setComment(comment); return r; }
@Override public void visit(final LongLiteralExpr n, final Object arg) { printJavaComment(n.getComment(), arg); printer.print(n.getValue()); }
case LONG_LITERAL: jj_consume_token(LONG_LITERAL); ret = new LongLiteralExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, token.image); break; case FLOATING_POINT_LITERAL:
if (ret instanceof IntegerLiteralExpr && ((IntegerLiteralExpr)ret).isMinValue()) { ret = new IntegerLiteralMinValueExpr(line, column, token.endLine, token.endColumn); } else if (ret instanceof LongLiteralExpr && ((LongLiteralExpr)ret).isMinValue()) { ret = new LongLiteralMinValueExpr(line, column, token.endLine, token.endColumn); } else {
@Override public void visit(final LongLiteralExpr n, final A arg) { visitComment(n.getComment(), arg); }
public void visit(LongLiteralExpr n, Object arg) { printer.print(n.getValue()); }
case LONG_LITERAL: jj_consume_token(LONG_LITERAL); ret = new LongLiteralExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, token.image); break; case FLOATING_POINT_LITERAL:
if (ret instanceof IntegerLiteralExpr && ((IntegerLiteralExpr)ret).isMinValue()) { ret = new IntegerLiteralMinValueExpr(line, column, token.endLine, token.endColumn); } else if (ret instanceof LongLiteralExpr && ((LongLiteralExpr)ret).isMinValue()) { ret = new LongLiteralMinValueExpr(line, column, token.endLine, token.endColumn); } else {
@Override public XAnnotationValue<Long> visit(LongLiteralExpr n, Void arg) { String value = n.getValue(); if (value.endsWith("L") || value.endsWith("l")) { return new XLongAnnotationValue(Long.valueOf(value.substring(0, value.length() - 1))); } else { return super.visit(n, arg); } } }