@Override public boolean visitIntegralLiteral(lombok.ast.IntegralLiteral node) { if (node.astMarkedAsLong()) { return set(node, new LongLiteral(node.rawValue().toCharArray(), start(node), end(node))); } return set(node, new IntLiteral(node.rawValue().toCharArray(), start(node), end(node))); }
public static LongLiteral buildLongLiteral(char[] token, int s, int e) { // remove '_' and prefix '0' first char[] longReducedToken = removePrefixZerosAndUnderscores(token, true); switch(longReducedToken.length) { case 19 : // 0x8000000000000000L if (CharOperation.equals(longReducedToken, HEXA_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; case 24 : // 01000000000000000000000L if (CharOperation.equals(longReducedToken, OCTAL_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; } return new LongLiteral(token, longReducedToken != token ? longReducedToken : null, s, e); }
public static LongLiteral buildLongLiteral(char[] token, int s, int e) { // remove '_' and prefix '0' first char[] longReducedToken = removePrefixZerosAndUnderscores(token, true); switch(longReducedToken.length) { case 19 : // 0x8000000000000000L if (CharOperation.equals(longReducedToken, HEXA_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; case 24 : // 01000000000000000000000L if (CharOperation.equals(longReducedToken, OCTAL_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; } return new LongLiteral(token, longReducedToken != token ? longReducedToken : null, s, e); }
public static LongLiteral buildLongLiteral(char[] token, int s, int e) { // remove '_' and prefix '0' first char[] longReducedToken = removePrefixZerosAndUnderscores(token, true); switch(longReducedToken.length) { case 19 : // 0x8000000000000000L if (CharOperation.equals(longReducedToken, HEXA_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; case 24 : // 01000000000000000000000L if (CharOperation.equals(longReducedToken, OCTAL_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; } return new LongLiteral(token, longReducedToken != token ? longReducedToken : null, s, e); }
public static LongLiteral buildLongLiteral(char[] token, int s, int e) { // remove '_' and prefix '0' first char[] longReducedToken = removePrefixZerosAndUnderscores(token, true); switch(longReducedToken.length) { case 19 : // 0x8000000000000000L if (CharOperation.equals(longReducedToken, HEXA_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; case 24 : // 01000000000000000000000L if (CharOperation.equals(longReducedToken, OCTAL_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; } return new LongLiteral(token, longReducedToken != token ? longReducedToken : null, s, e); }
public static LongLiteral buildLongLiteral(char[] token, int s, int e) { // remove '_' and prefix '0' first char[] longReducedToken = removePrefixZerosAndUnderscores(token, true); switch(longReducedToken.length) { case 19 : // 0x8000000000000000L if (CharOperation.equals(longReducedToken, HEXA_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; case 24 : // 01000000000000000000000L if (CharOperation.equals(longReducedToken, OCTAL_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; } return new LongLiteral(token, longReducedToken != token ? longReducedToken : null, s, e); }
public static LongLiteral buildLongLiteral(char[] token, int s, int e) { // remove '_' and prefix '0' first char[] longReducedToken = removePrefixZerosAndUnderscores(token, true); switch(longReducedToken.length) { case 19 : // 0x8000000000000000L if (CharOperation.equals(longReducedToken, HEXA_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; case 24 : // 01000000000000000000000L if (CharOperation.equals(longReducedToken, OCTAL_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; } return new LongLiteral(token, longReducedToken != token ? longReducedToken : null, s, e); }
public static LongLiteral buildLongLiteral(char[] token, int s, int e) { // remove '_' and prefix '0' first char[] longReducedToken = removePrefixZerosAndUnderscores(token, true); switch(longReducedToken.length) { case 19 : // 0x8000000000000000L if (CharOperation.equals(longReducedToken, HEXA_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; case 24 : // 01000000000000000000000L if (CharOperation.equals(longReducedToken, OCTAL_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; } return new LongLiteral(token, longReducedToken != token ? longReducedToken : null, s, e); }
public static LongLiteral buildLongLiteral(char[] token, int s, int e) { // remove '_' and prefix '0' first char[] longReducedToken = removePrefixZerosAndUnderscores(token, true); switch(longReducedToken.length) { case 19 : // 0x8000000000000000L if (CharOperation.equals(longReducedToken, HEXA_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; case 24 : // 01000000000000000000000L if (CharOperation.equals(longReducedToken, OCTAL_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; } return new LongLiteral(token, longReducedToken != token ? longReducedToken : null, s, e); }
public static LongLiteral buildLongLiteral(char[] token, int s, int e) { // remove '_' and prefix '0' first char[] longReducedToken = removePrefixZerosAndUnderscores(token, true); switch(longReducedToken.length) { case 19 : // 0x8000000000000000L if (CharOperation.equals(longReducedToken, HEXA_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; case 24 : // 01000000000000000000000L if (CharOperation.equals(longReducedToken, OCTAL_MIN_VALUE)) { return new LongLiteralMinValue(token, longReducedToken != token ? longReducedToken : null, s, e); } break; } return new LongLiteral(token, longReducedToken != token ? longReducedToken : null, s, e); }
case TokenNameLongLiteral : pushOnExpressionStack( new LongLiteral( this.scanner.getCurrentTokenSource(), this.scanner.startPosition,
case TokenNameLongLiteral : pushOnExpressionStack( new LongLiteral( this.scanner.getCurrentTokenSource(), this.scanner.startPosition,