public StreamNested<R> setOptionValue(long optionValue) { node.setOptionValue(new AstLiteralLongValue(optionValue)); return this; }
public StreamNested<R> setOptionValue(long optionValue) { node.setOptionValue(new AstLiteralLongValue(optionValue)); return this; }
@Override public AstLiteralLongValue visitLiteralLong(LiteralLongContext ctx) { String literal = ctx.literal.getText().replaceAll("_", ""); AstLiteralLongValue value = new AstLiteralLongValue(Long.decode(literal)); value.setRegionInfo(asSequentialRegion(childInfos, ctx)); return value; }
public AstWriteOptionNodeBuilder setOptionValue(long optionValue) { node.setOptionValue(new AstLiteralLongValue(optionValue)); return this; }
public AstPropertyNodeBuilder setPropertyValue(long propertyValue) { node.setPropertyValue(new AstLiteralLongValue(propertyValue)); return this; }
public AstReadOptionNodeBuilder setOptionValue(long optionValue) { node.setOptionValue(new AstLiteralLongValue(optionValue)); return this; }
public AstWriteNodeBuilder addLong(Long value) { node.addValue(new AstLiteralLongValue(value)); return this; }
public StreamNested<R> addLong(Long value) { node.addValue(new AstLiteralLongValue(value)); return this; }
public ScriptNested<R> setPropertyValue(long propertyValue) { node.setPropertyValue(new AstLiteralLongValue(propertyValue)); return this; }
@Override public AstValue<T> visitLiteralInteger(LiteralIntegerContext ctx) { AstLiteralIntegerValueVisitor visitor = new AstLiteralIntegerValueVisitor(factory, environment); AstLiteralIntegerValue literal = visitor.visit(ctx); AstValue<?> value = literal; if (expectedType == long.class || expectedType == Long.class) { value = new AstLiteralLongValue(literal.getValue().longValue()); } if (value != null) { childInfos().add(value.getRegionInfo()); } return (AstValue<T>) value; }