/** * Creates a new tree field only constructor {@code AFieldObjectDesignator TAG=field} 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 AFieldObjectDesignator} node * @param className_ the {@link ILexNameToken} node for the {@code className} child of this {@link AFieldObjectDesignator} node * @param fieldName_ the {@link ILexIdentifierToken} node for the {@code fieldName} child of this {@link AFieldObjectDesignator} node */ public AFieldObjectDesignator(ILexLocation location_, PObjectDesignator object_, ILexNameToken className_, ILexIdentifierToken fieldName_) { super(location_); this.setObject(object_); this.setClassName(className_); this.setFieldName(fieldName_); }
/** * Creates a new complete constructor {@code AFieldObjectDesignator} 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 AFieldObjectDesignator} node * @param className_ the {@link ILexNameToken} node for the {@code className} child of this {@link AFieldObjectDesignator} node * @param fieldName_ the {@link ILexIdentifierToken} node for the {@code fieldName} child of this {@link AFieldObjectDesignator} node * @param field_ the {@link ILexNameToken} <b>graph</a> node for the {@code field} child of this {@link AFieldObjectDesignator} node. * <i>The parent of this {@code field } will not be changed by adding it to this node.</i> */ public AFieldObjectDesignator(ILexLocation location_, PObjectDesignator object_, ILexNameToken className_, ILexIdentifierToken fieldName_, ILexNameToken field_) { super(location_); this.setObject(object_); this.setClassName(className_); this.setFieldName(fieldName_); this.setField(field_); }
public static PObjectDesignator newAFieldObjectDesignator( PObjectDesignator object, ILexNameToken classname) { AFieldObjectDesignator result = new AFieldObjectDesignator(); result.setLocation(object.getLocation()); result.setObject(object); result.setClassName(classname); result.setFieldName(null); return result; }
public static AFieldObjectDesignator newAFieldObjectDesignator( PObjectDesignator object, ILexIdentifierToken fieldname) { AFieldObjectDesignator result = new AFieldObjectDesignator(); result.setLocation(object.getLocation()); result.setObject(object); result.setClassName(null); result.setFieldName(fieldname); return result; }