/** * Creates a new complete constructor {@code ASameClassExp} 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 ASameClassExp} node * @param right_ the {@link PExp} node for the {@code right} child of this {@link ASameClassExp} node */ public ASameClassExp(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 ASameClassExp TAG=sameClass} 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 ASameClassExp} node * @param right_ the {@link PExp} node for the {@code right} child of this {@link ASameClassExp} node */ public ASameClassExp(ILexLocation location_, PExp left_, PExp right_) { super(null,location_); this.setLeft(left_); this.setRight(right_); }
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; }