/** * Creates a new tree field only constructor {@code ARealLiteralExp TAG=realLiteral} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param value_ the {@link ILexRealToken} node for the {@code value} child of this {@link ARealLiteralExp} node */ public ARealLiteralExp(ILexLocation location_, ILexRealToken value_) { super(null,location_); this.setValue(value_); }
/** * Creates a new complete constructor {@code ARealLiteralExp} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param value_ the {@link ILexRealToken} node for the {@code value} child of this {@link ARealLiteralExp} node */ public ARealLiteralExp(PType type_, ILexLocation location_, ILexRealToken value_) { super(type_,location_); this.setValue(value_); }
public static ARealLiteralExp newARealLiteralExp(LexRealToken value) { ARealLiteralExp result = new ARealLiteralExp(); initExpression(result, value.location); result.setValue(value); return result; }
public PExp caseARealPattern(ARealPattern node) throws AnalysisException { ARealLiteralExp exp = new ARealLiteralExp(); exp.setValue(node.getValue().clone()); addPossibleType(exp, node); return exp; }