/** * Returns a deep clone of this {@link ASeqBind} node. * @return a deep clone of this {@link ASeqBind} node */ public ASeqBind clone() { return new ASeqBind( _location, _pattern, _seq ); }
/** * Creates a deep clone of this {@link ASeqBind} 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 ASeqBind} node */ public ASeqBind clone(Map<INode,INode> oldToNewMap) { ASeqBind node = new ASeqBind( _location, _pattern, _seq ); oldToNewMap.put(this, node); return node; }
public static ASeqBind newASeqBind(PPattern pattern, PExp readExpression) { ASeqBind result = new ASeqBind(); result.setLocation(pattern.getLocation()); result.setPattern(pattern); result.setSeq(readExpression); return result; }