|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.annox.model.XAnnotationField<T>
T - Type of the field.public abstract class XAnnotationField<T>
Defines an annotation field.
| Constructor Summary | |
|---|---|
XAnnotationField(String name)
Constructrs an annotation field with the given name. |
|
| Method Summary | ||
|---|---|---|
abstract
|
accept(XAnnotationVisitor<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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XAnnotationField(String name)
name - name of the field.| Method Detail |
|---|
public String getName()
public abstract T getValue()
protected 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(XAnnotationVisitor<P> visitor)
P - Return type of the visitor.visitor - visitor to accept.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||