public static class XAnnotationField.XClass extends XAnnotationField.XField<Class>
XAnnotationField.XAnnotation, XAnnotationField.XAnnotationArray, XAnnotationField.XArrayField<T>, XAnnotationField.XBoolean, XAnnotationField.XBooleanArray, XAnnotationField.XByte, XAnnotationField.XByteArray, XAnnotationField.XChar, XAnnotationField.XCharArray, XAnnotationField.XClass, XAnnotationField.XClassArray, XAnnotationField.XDouble, XAnnotationField.XDoubleArray, XAnnotationField.XEnum, XAnnotationField.XEnumArray, XAnnotationField.XField<T>, XAnnotationField.XFixedArrayField<T>, XAnnotationField.XFixedField<T>, XAnnotationField.XFloat, XAnnotationField.XFloatArray, XAnnotationField.XInt, XAnnotationField.XIntArray, XAnnotationField.XLong, XAnnotationField.XLongArray, XAnnotationField.XShort, XAnnotationField.XShortArray, XAnnotationField.XString, XAnnotationField.XStringArray
Constructor and Description |
---|
XClass(String name,
Class theClass) |
XClass(String name,
String className) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(XAnnotationVisitor<T> visitor)
Accepts the annotation visitor.
|
String |
getClassName() |
protected Object |
getInternalValue()
Returns the internal value of the field used for
Object.hashCode() ,
Object.equals(Object) and Object.toString() operations. |
Class<?> |
getType()
Return the type of the field.
|
Class |
getValue()
Returns the value of the field.
|
equals, hashCode, toString
getName, getResult
public String getClassName()
public Class<?> getType()
XAnnotationField
getType
in class XAnnotationField<Class>
public <T> T accept(XAnnotationVisitor<T> visitor)
XAnnotationField
accept
in class XAnnotationField<Class>
T
- Return type of the visitor.visitor
- visitor to accept.protected Object getInternalValue()
XAnnotationField
Object.hashCode()
,
Object.equals(Object)
and Object.toString()
operations. Defaults to
the value of the field.getInternalValue
in class XAnnotationField<Class>
public Class getValue()
XAnnotationField
getValue
in class XAnnotationField<Class>
Copyright © 2006–2016 Highsource. All rights reserved.