public class XAnnotation<A extends Annotation> extends Object
Modifier and Type | Field and Description |
---|---|
static XAnnotation<?>[] |
EMPTY_ARRAY
Empty array of annotations.
|
Constructor and Description |
---|
XAnnotation(Class<A> annotationClass,
XAnnotationField<?>... fields)
Constructs an xannotation for the given annotation class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Class<? extends Annotation> |
getAnnotationClass()
Returns the annotation class.
|
String |
getAnnotationClassName() |
List<XAnnotationField<?>> |
getFieldsList()
Returns the list of the fields.
|
Map<String,XAnnotationField<?>> |
getFieldsMap()
Returns the map of the fields.
|
A |
getResult()
Returns the instance of the annotation for this xannotation.
|
int |
hashCode() |
String |
toString() |
public static XAnnotation<?>[] EMPTY_ARRAY
public XAnnotation(Class<A> 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.public Class<? extends Annotation> getAnnotationClass()
public String getAnnotationClassName()
public List<XAnnotationField<?>> getFieldsList()
public Map<String,XAnnotationField<?>> getFieldsMap()
public A getResult()
Copyright © 2006–2016. All rights reserved.