Class GAnnotation
java.lang.Object
com.iizigo.java.parser.annotation.GAnnotation
- All Implemented Interfaces:
IPropReference
,Cloneable
This is a data holder class for annotations in resource source files.
- Author:
- Mikael Andersson, Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.prop.IPropReference
IPropReference.IRefType, IPropReference.ReferenceChangeEvent, IPropReference.RefType
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationType
getFQNType
(String fqnClass) Gets a Type from a fully qualified annotation class (includes package name).Gets the reference Type.static AnnotationType
Gets a Type from a String such as "PropRef" or "VSAction", i.e.boolean
isReferenceValid
(GProp<?> property) Validates the property reference that has been looked up.void
onReferenceEvent
(PropReference reference, IPropReference.ReferenceChangeEvent event, GEvent triggerEvent) Reference event.
Method Details
getSimpleNamedType
Gets a Type from a String such as "PropRef" or "VSAction", i.e. without the qualifiers in the package name. If this doesn't match, the fully qualified name is tried.- Parameters:
s
- The string.- Returns:
- The Type or null if none matches.
getFQNType
Gets a Type from a fully qualified annotation class (includes package name).- Returns:
- The Type or null if none matches.
getReferenceType
Gets the reference Type.- Specified by:
getReferenceType
in interfaceIPropReference
- Returns:
IPropReference.RefType.Annotation
.
onReferenceEvent
public void onReferenceEvent(PropReference reference, IPropReference.ReferenceChangeEvent event, GEvent triggerEvent) Reference event.- Specified by:
onReferenceEvent
in interfaceIPropReference
- Parameters:
reference
- The property reference object.event
- The event.triggerEvent
- The event that triggered this reference event, null for none.
isReferenceValid
Validates the property reference that has been looked up.- Specified by:
isReferenceValid
in interfaceIPropReference
- Parameters:
property
- The property to validate.- Returns:
- true, always.