Méthode | Description | |
---|---|---|
FieldContact ( Field field, Annotation label ) : System |
Constructor for the
|
|
Get ( Object source ) : Object |
This is used to get the specified value on the provided object. The value returned from this method will be an instance of the contact class type. If the returned object is of a different type then the serialization process will fail.
|
|
GetName ( Field field ) : String | ||
IsFinal ( ) : bool |
This is used to identify annotated methods are fields that can not be modified. Such field will require that there is a constructor that can have the value injected in to it.
|
|
IsReadOnly ( ) : bool |
This is used to determine if the annotated contact is for a read only variable. A read only variable is a field that can be set from within the constructor such as a blank readonly variable. It can also be a method with no set counterpart.
|
|
IsStatic ( ) : bool |
This is used to determine if the annotated contact is for a static field or method. A static field or method is one that contains the "static" keyword. Any const fields will be read only and does not require any matching annotation.
|
|
Set ( Object source, Object value ) : void |
This is used to set the specified value on the provided object. The value provided must be an instance of the contact class so that it can be set without a runtime class compatibility error.
|
|
ToString ( ) : String |
This is used to describe the contact as it exists within the owning class. It is used to provide error messages that can be used to debug issues that occur when processing a contact. The string provided is the generic field string.
|
Méthode | Description | |
---|---|---|
getAnnotation ( Class |
public FieldContact ( Field field, Annotation label ) : System | ||
field | Field | /// this is the field that is the point of contact /// |
label | Annotation | /// this is the annotation that is used by the field /// |
Résultat | System |
public Get ( Object source ) : Object | ||
source | Object | /// this is the object to acquire the value from /// |
Résultat | Object |
public GetName ( Field field ) : String | ||
field | Field | /// the field to acquire the internalized name from /// |
Résultat | String |
public Set ( Object source, Object value ) : void | ||
source | Object | /// this is the object to set the value on /// |
value | Object | /// this is the value that is to be set on the object /// |
Résultat | void |