Package com.iizix.api
Enum Class AnnotationType
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationType>
,Constable
The annotation types.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionField Summary
Modifier and TypeFieldDescriptionfinal String
The class name for the annotation.final boolean
Flag indicating this is the scope annotation.final boolean
Static flag, used for methods and classes (not reference type annotations).final String
Parameters names (signature) as e.g.final IAnnotationReferenceProcessor<?,
?> The reference processor interface, null if not a reference annotation type.final String
The description of the supported classes being referenced, null for none.final Class<?>[]
Array of supported property classes being referenced, null for none.final AnnotationType
The type used for annotation scoping, null for none.final String
Method signature as e.g.Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationType
fromEventAtom
(Atom atom) Gets the annotation type that matches an atom method event property name.Gets the atom for the event.boolean
isReferenceClassAllowed
(Class<?> refClass) Verifies if a class is allowed as the referenced property class.static AnnotationType
Returns the enum constant of this class with the specified name.static AnnotationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
VS
OnVSCreate
OnVSDestroy
OnVSAction
OnVSField
OnVSChange
OnVSFocus
OnVSState
OnVSFieldStatic
JavaActionActor
UI
OnUIConnect
OnUICreate
OnUIDestroy
OnUIFocus
OnUIAction
OnUIBack
OnUITextChange
OnUIValueChange
OnUISelection
PropRef
PropScope
PropName
FullVSRef
VSRef
UIRef
EMPTY
Field Details
fqn
The class name for the annotation.scope
The type used for annotation scoping, null for none.isScope
public final boolean isScopeFlag indicating this is the scope annotation.refDescription
The description of the supported classes being referenced, null for none.refPropClasses
Array of supported property classes being referenced, null for none.signature
Method signature as e.g. "void(com.iizix.api.vs.VSActionEvent,java.lang.String)".params
Parameters names (signature) as e.g. "event,myString".isStatic
public final boolean isStaticStatic flag, used for methods and classes (not reference type annotations).processor
The reference processor interface, null if not a reference annotation type.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
getEventAtom
Gets the atom for the event.- Returns:
- An atom as
Atom.get('$'+name())
.
isReferenceClassAllowed
Verifies if a class is allowed as the referenced property class.- Parameters:
refClass
- The class reference found.- Returns:
- true if allowed, false otherwise.
fromEventAtom
Gets the annotation type that matches an atom method event property name.- Parameters:
atom
- The atom name should be in the form of "$OnNNN".- Returns:
- The annotation type matching, or null for none.