/** * Creates a new complete constructor {@code ASameBaseClassExp} 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 left_ the {@link PExp} node for the {@code left} child of this {@link ASameBaseClassExp} node * @param right_ the {@link PExp} node for the {@code right} child of this {@link ASameBaseClassExp} node */ public ASameBaseClassExp(PType type_, ILexLocation location_, PExp left_, PExp right_) { super(type_,location_); this.setLeft(left_); this.setRight(right_); }
/** * Creates a new tree field only constructor {@code ASameBaseClassExp TAG=sameBaseClass} 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 left_ the {@link PExp} node for the {@code left} child of this {@link ASameBaseClassExp} node * @param right_ the {@link PExp} node for the {@code right} child of this {@link ASameBaseClassExp} node */ public ASameBaseClassExp(ILexLocation location_, PExp left_, PExp right_) { super(null,location_); this.setLeft(left_); this.setRight(right_); }
public static ASameBaseClassExp newASameBaseClassExp(ILexLocation start, List<PExp> args) { ASameBaseClassExp result = new ASameBaseClassExp(); initExpression(result, start); result.setLeft(args.get(0)); result.setRight(args.get(1)); return result; }