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 SummaryModifier and TypeMethodDescription- static AnnotationType- getFQNType- (String fqnClass) Gets a Type from a fully qualified annotation class (includes package name).Gets the reference Type.- static AnnotationTypeGets 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- getSimpleNamedTypeGets 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.
 
- getFQNTypeGets a Type from a fully qualified annotation class (includes package name).- Returns:
- The Type or null if none matches.
 
- getReferenceTypeGets the reference Type.- Specified by:
- getReferenceTypein interface- IPropReference
- Returns:
- IPropReference.RefType.Annotation.
 
- onReferenceEventpublic void onReferenceEvent- (PropReference reference, IPropReference.ReferenceChangeEvent event, GEvent triggerEvent) Reference event.- Specified by:
- onReferenceEventin interface- IPropReference
- Parameters:
- reference- The property reference object.
- event- The event.
- triggerEvent- The event that triggered this reference event, null for none.
 
- isReferenceValidValidates the property reference that has been looked up.- Specified by:
- isReferenceValidin interface- IPropReference
- Parameters:
- property- The property to validate.
- Returns:
- true, always.