public class AnnotationDescription extends Object implements ValueDescription
ValueDescription.ValueKind
Constructor and Description |
---|
AnnotationDescription(ClassDescription declaringClass)
Creates a new instance for marker annotation.
|
AnnotationDescription(ClassDescription declaringClass,
Map<String,? extends ValueDescription> elements)
Creates a new instance.
|
AnnotationDescription(ClassDescription declaringClass,
ValueDescription value)
Creates a new instance for single element annotation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ClassDescription |
getDeclaringClass()
Returns the declaring annotation type.
|
Map<String,ValueDescription> |
getElements()
Returns the annotation elements.
|
ValueDescription.ValueKind |
getValueKind()
Returns the value kind.
|
ClassDescription |
getValueType()
Returns the value type.
|
int |
hashCode() |
static AnnotationDescription |
of(Annotation annotation)
Creates a new instance.
|
String |
toString() |
public AnnotationDescription(ClassDescription declaringClass)
declaringClass
- the declaring annotation typepublic AnnotationDescription(ClassDescription declaringClass, ValueDescription value)
declaringClass
- the declaring annotation typevalue
- value of the single element annotationpublic AnnotationDescription(ClassDescription declaringClass, Map<String,? extends ValueDescription> elements)
declaringClass
- the declaring annotation typeelements
- the annotation elements (includes default values)public static AnnotationDescription of(Annotation annotation)
annotation
- the annotationpublic ValueDescription.ValueKind getValueKind()
ValueDescription
getValueKind
in interface ValueDescription
public ClassDescription getValueType()
ValueDescription
getValueType
in interface ValueDescription
public ClassDescription getDeclaringClass()
public Map<String,ValueDescription> getElements()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.