Class VariableElementMetadata
java.lang.Object
de.floydkretschmar.fixturize.domain.VariableElementMetadata
The metadata generated for a given
VariableElement.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()<A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationClass) Returns the annotations of the underlying variable element of the given type.Returns the constant value of the underlying variable element.Returns the modifiers of the underlying varibale element.getName()Returns the name of the underlying variable element.The element for which defines the type of the underlying variable element.toString()
-
Method Details
-
getName
Returns the name of the underlying variable element.- Returns:
- the name
-
getModifiers
Returns the modifiers of the underlying varibale element.- Returns:
- the modifiers
-
getConstantValue
Returns the constant value of the underlying variable element. Null if the variable element does not have a defined constant value.- Returns:
- the constant value
-
getAnnotationsByType
Returns the annotations of the underlying variable element of the given type.- Type Parameters:
A- - the type of the annotation- Parameters:
annotationClass- - for which the annotations should be retrieved- Returns:
- the annotations
-
toString
-
builder
-
getTypedElement
The element for which defines the type of the underlying variable element. If the variable element was typed by a generic, the type defining element will be theTypeElementof the concrete implementation class. If the variable element was typed by a non-generic, the type defining element will be the originalVariableElement.
-