public interface OVLParameterDefinition
This class represents the definition of a method or constructor parameter.
- Since:
- Omix 1.4.2
- Author:
- Dr. Peter Droste, Omix Visualization
-
Method Summary
Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> cls)
This method returns the annotation of this parameter identified by its class.Annotation[]
getAnnotations()
This method returns an array of all available annotations of this parameter.String
getName()
The name of the parameter in OVL source code.ClassType
getType()
The type of the parameter in OVL source code.boolean
isAnnotationPresent(Class<? extends Annotation> a)
This method tests if the parameter is defined with a certain Java annotation.
-
Method Details
-
isAnnotationPresent
This method tests if the parameter is defined with a certain Java annotation.- Parameters:
a
- the Java annotation- Returns:
- true if available
-
getAnnotation
This method returns the annotation of this parameter identified by its class.- Type Parameters:
T
- the type of the annotation- Parameters:
cls
- the class of the annotation- Returns:
- the annotation if available
-
getAnnotations
This method returns an array of all available annotations of this parameter.- Returns:
- list of annotations
-
getName
The name of the parameter in OVL source code.- Returns:
- name
-
getType
The type of the parameter in OVL source code.- Returns:
- type
-