/** * Creates a new tree field only constructor {@code ASubseqExp TAG=subseq} 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 seq_ the {@link PExp} node for the {@code seq} child of this {@link ASubseqExp} node * @param from_ the {@link PExp} node for the {@code from} child of this {@link ASubseqExp} node * @param to_ the {@link PExp} node for the {@code to} child of this {@link ASubseqExp} node */ public ASubseqExp(ILexLocation location_, PExp seq_, PExp from_, PExp to_) { super(null,location_); this.setSeq(seq_); this.setFrom(from_); this.setTo(to_); }
public static ASubseqExp newASubseqExp(PExp seq, PExp from, PExp to) { ASubseqExp result = new ASubseqExp(); result.setLocation(seq.getLocation()); result.setSeq(seq); result.setFrom(from); result.setTo(to); return result; }
/** * Creates a new complete constructor {@code ASubseqExp} 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 seq_ the {@link PExp} node for the {@code seq} child of this {@link ASubseqExp} node * @param from_ the {@link PExp} node for the {@code from} child of this {@link ASubseqExp} node * @param to_ the {@link PExp} node for the {@code to} child of this {@link ASubseqExp} node * @param ftype_ the {@link PType} <b>graph</a> node for the {@code ftype} child of this {@link ASubseqExp} node. * <i>The parent of this {@code ftype } will not be changed by adding it to this node.</i> * @param ttype_ the {@link PType} <b>graph</a> node for the {@code ttype} child of this {@link ASubseqExp} node. * <i>The parent of this {@code ttype } will not be changed by adding it to this node.</i> */ public ASubseqExp(PType type_, ILexLocation location_, PExp seq_, PExp from_, PExp to_, PType ftype_, PType ttype_) { super(type_,location_); this.setSeq(seq_); this.setFrom(from_); this.setTo(to_); this.setFtype(ftype_); this.setTtype(ttype_); }