/** * Creates a new complete constructor {@code ANewObjectDesignator} 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 expression_ the {@link ANewExp} node for the {@code expression} child of this {@link ANewObjectDesignator} node */ public ANewObjectDesignator(ILexLocation location_, ANewExp expression_) { super(location_); this.setExpression(expression_); }
public static ANewObjectDesignator newANewObjectDesignator( LexIdentifierToken classname, List<PExp> args) { ANewObjectDesignator result = new ANewObjectDesignator(); result.setLocation(classname.location); result.setExpression(AstFactory.newANewExp(classname.location, classname, args)); return result; }