/** * Creates a new complete constructor {@code AFieldStateDesignator} 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 PStateDesignator} node for the {@code object} child of this {@link AFieldStateDesignator} node * @param field_ the {@link ILexIdentifierToken} node for the {@code field} child of this {@link AFieldStateDesignator} node * @param objectfield_ the {@link ILexNameToken} <b>graph</a> node for the {@code objectfield} child of this {@link AFieldStateDesignator} node. * <i>The parent of this {@code objectfield } will not be changed by adding it to this node.</i> */ public AFieldStateDesignator(ILexLocation location_, PType type_, PStateDesignator object_, ILexIdentifierToken field_, ILexNameToken objectfield_) { super(location_,type_); this.setObject(object_); this.setField(field_); this.setObjectfield(objectfield_); }
/** * Creates a new tree field only constructor {@code AFieldStateDesignator 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 PStateDesignator} node for the {@code object} child of this {@link AFieldStateDesignator} node * @param field_ the {@link ILexIdentifierToken} node for the {@code field} child of this {@link AFieldStateDesignator} node */ public AFieldStateDesignator(ILexLocation location_, PStateDesignator object_, ILexIdentifierToken field_) { super(location_,null); this.setObject(object_); this.setField(field_); }
public static AFieldStateDesignator newAFieldStateDesignator( PStateDesignator object, ILexIdentifierToken field) { AFieldStateDesignator result = new AFieldStateDesignator(); initStateDesignator(result, object.getLocation()); result.setObject(object); result.setField(field); return result; }