T
- Type of the field.public abstract class XAnnotationField<T> extends Object
Constructor and Description |
---|
XAnnotationField(String name)
Constructrs an annotation field with the given name.
|
Modifier and Type | Method and Description |
---|---|
abstract <P> P |
accept(XAnnotationFieldVisitor<P> visitor)
Accepts the annotation visitor.
|
protected Object |
getInternalValue()
Returns the internal value of the field used for
Object.hashCode() ,
Object.equals(Object) and Object.toString() operations. |
String |
getName()
Returns the name of the field.
|
Object |
getResult()
Returns the result value of the field.
|
abstract Class<?> |
getType()
Return the type of the field.
|
abstract T |
getValue()
Returns the value of the field.
|
public XAnnotationField(String name)
name
- name of the field.public String getName()
public abstract T getValue()
protected final Object getInternalValue()
Object.hashCode()
,
Object.equals(Object)
and Object.toString()
operations. Defaults to
the value of the field.public Object getResult()
public abstract Class<?> getType()
public abstract <P> P accept(XAnnotationFieldVisitor<P> visitor)
P
- Return type of the visitor.visitor
- visitor to accept.Copyright © 2006–2016. All rights reserved.