Interface ITypeMetaData
-
public interface ITypeMetaDataAbstraction over annotation attributes that take a class (or array of classes) as their value. For example:@Command(defaultValueProvider = xxx.class)- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.lang.model.element.TypeElementgetTypeElement()Returns theTypeElementof thetype mirror.javax.lang.model.type.TypeMirrorgetTypeMirror()Returns the TypeMirror of the value.booleanisDefault()Returnstrueif the annotated element did not have the annotation attribute.
-
-
-
Method Detail
-
isDefault
boolean isDefault()
Returnstrueif the annotated element did not have the annotation attribute.- Returns:
trueif the value is the default value.
-
getTypeMirror
javax.lang.model.type.TypeMirror getTypeMirror()
Returns the TypeMirror of the value.- Returns:
- the TypeMirror of the
@Command(defaultValueProvider = xxx.class)annotation.
-
getTypeElement
javax.lang.model.element.TypeElement getTypeElement()
Returns theTypeElementof thetype mirror.- Returns:
- the type mirror as a TypeElement
-
-