/** * Returns a deep clone of this {@link ASeqSeqType} node. * @return a deep clone of this {@link ASeqSeqType} node */ public ASeqSeqType clone() { return new ASeqSeqType( _location, _resolved, _definitions, _seqof, _empty ); }
/** * Creates a deep clone of this {@link ASeqSeqType} 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 ASeqSeqType} node */ public ASeqSeqType clone(Map<INode,INode> oldToNewMap) { ASeqSeqType node = new ASeqSeqType( _location, _resolved, _definitions, _seqof, _empty ); oldToNewMap.put(this, node); return node; }
public static ASeqSeqType newASeqSeqType(ILexLocation location, PType type) { ASeqSeqType result = new ASeqSeqType(); initType(result, location); result.setSeqof(type); result.setEmpty(false); return result; }
public static ASeqSeqType newASeqSeqType(ILexLocation location) { ASeqSeqType result = new ASeqSeqType(); initType(result, location); result.setSeqof(AstFactory.newAUnknownType(location)); result.setEmpty(true); return result; }