/** * Creates a new complete constructor {@code AApplyObjectDesignator} 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 object_ the {@link PObjectDesignator} node for the {@code object} child of this {@link AApplyObjectDesignator} node * @param args_ the {@link NodeList} node for the {@code args} child of this {@link AApplyObjectDesignator} node */ public AApplyObjectDesignator(ILexLocation location_, PObjectDesignator object_, List<? extends PExp> args_) { super(location_); this.setObject(object_); this.setArgs(args_); }
public static AApplyObjectDesignator newAApplyObjectDesignator( PObjectDesignator object, List<PExp> args) { AApplyObjectDesignator result = new AApplyObjectDesignator(); result.setLocation(object.getLocation()); result.setObject(object); result.setArgs(args); return result; }