PropertyInfo implementation backed by a field.
| Modifier and Type | Field and Description |
|---|---|
| protected final FieldT | |
| private ClassInfoImpl |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Location | getLocation()
Implements org. Gets the location object that this object points to. |
| public String | getName()
Implements org. The name of the property is a spec defined concept --- although it doesn't do so explicitly in anywhere. |
| public TypeT | getRawType()
Implements org. Gets the actual data type of the field. |
| public Locatable | getUpstream()
Implements org. Use the enclosing class as the upsream |
| public boolean | hasAnnotation(Class<? extends Annotation> annotationType)
Implements org. Returns true if the property has the specified annotation. |
| public <A extends Annotation> A | readAnnotation(Class<A> a)
Implements org. Gets the value of the specified annotation from the given property. |
| field | back to summary |
|---|---|
| protected final FieldT field | |
| parent | back to summary |
|---|---|
| private ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> parent | |
| FieldPropertySeed | back to summary |
|---|---|
| pack-priv FieldPropertySeed(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> classInfo, FieldT field) | |
| getLocation | back to summary |
|---|---|
| public Location getLocation() Implements org. Doc from org. Gets the location object that this object points to. This operation could be inefficient and costly.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. The name of the property is a spec defined concept --- although it doesn't do so explicitly in anywhere.
| |
| getRawType | back to summary |
|---|---|
| public TypeT getRawType() Implements org. Doc from org. Gets the actual data type of the field. The data of the property is stored by using this type.
The difference between the
| |
| getUpstream | back to summary |
|---|---|
| public Locatable getUpstream() Implements org. Use the enclosing class as the upsream
| |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(Class<? extends Annotation> annotationType) Implements org. Doc from org. Returns true if the property has the specified annotation.
Short for
| |
| readAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A readAnnotation(Class<A> a) Implements org. Doc from org. Gets the value of the specified annotation from the given property. When this method is used for a property that consists of a getter and setter, it returns the annotation on either of those methods. If both methods have the same annotation, it is an error.
| |