public static AIntegerPattern newAIntegerPattern(LexIntegerToken token) { AIntegerPattern result = new AIntegerPattern(); initPattern(result, token.location); result.setValue(token); return result; }
/** * Creates a deep clone of this {@link AIntegerPattern} node while putting all * old node-new node relations in the map {@code oldToNewMap}. * @param oldToNewMap the map filled with the old node-new node relation * @return a deep clone of this {@link AIntegerPattern} node */ public AIntegerPattern clone(Map<INode,INode> oldToNewMap) { AIntegerPattern node = new AIntegerPattern( _location, cloneList(_definitions, oldToNewMap), _resolved, cloneNode(_value, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link AIntegerPattern} node. * @return a deep clone of this {@link AIntegerPattern} node */ public AIntegerPattern clone() { return new AIntegerPattern( _location, cloneList(_definitions), _resolved, cloneNode(_value) ); }