|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.annox.model.XAnnotation
public class XAnnotation
Defines an xannotation.
Field Summary | |
---|---|
static XAnnotation[] |
EMPTY_ARRAY
Empty array of annotations. |
Constructor Summary | |
---|---|
XAnnotation(Class<? extends Annotation> annotationClass,
XAnnotationField<?>... fields)
Constructs an xannotation for the given annotation class. |
Method Summary | ||
---|---|---|
|
accept(XAnnotationVisitor<T> visitor)
Accepts the annotation visitor. |
|
boolean |
equals(Object obj)
|
|
Class<? extends Annotation> |
getAnnotationClass()
Returns the annotation class. |
|
List<XAnnotationField<?>> |
getFieldsList()
Returns the list of the fields. |
|
Map<String,XAnnotationField<?>> |
getFieldsMap()
Returns the map of the fields. |
|
Annotation |
getResult()
Returns the instance of the annotation for this xannotation. |
|
int |
hashCode()
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static XAnnotation[] EMPTY_ARRAY
Constructor Detail |
---|
public XAnnotation(Class<? extends Annotation> annotationClass, XAnnotationField<?>... fields) throws IllegalArgumentException
annotationClass
- annotation class, must not be null
fields
- fields of the xannotation.
IllegalArgumentException
- If annotation class is null
, some required
annotation fields are missing or some annotation fields have
mismatching types.Method Detail |
---|
public Class<? extends Annotation> getAnnotationClass()
public List<XAnnotationField<?>> getFieldsList()
public Map<String,XAnnotationField<?>> getFieldsMap()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public Annotation getResult()
public <T> T accept(XAnnotationVisitor<T> visitor)
T
- Visitor result type.visitor
- visitor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |