public static ASameClassExp newASameClassExp(ILexLocation start, List<PExp> args) { ASameClassExp result = new ASameClassExp(); initExpression(result, start); result.setLeft(args.get(0)); result.setRight(args.get(1)); return result; }
/** * Creates a deep clone of this {@link ASameClassExp} 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 ASameClassExp} node */ public ASameClassExp clone(Map<INode,INode> oldToNewMap) { ASameClassExp node = new ASameClassExp( _type, _location, cloneNode(_left, oldToNewMap), cloneNode(_right, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link ASameClassExp} node. * @return a deep clone of this {@link ASameClassExp} node */ public ASameClassExp clone() { return new ASameClassExp( _type, _location, cloneNode(_left), cloneNode(_right) ); }