public class AnnotationValueImpl extends AbstractValue implements AnnotationValue
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationInfo |
annotationType
The annotation type
|
protected HashMap<String,Value> |
attributeValues
The attribute values
|
protected int |
hash
The hash code
|
protected Annotation |
underlying
The underlying annotation
|
| Constructor and Description |
|---|
AnnotationValueImpl()
Create a new Annotation value
|
AnnotationValueImpl(AnnotationInfo annotationType,
HashMap<String,Value> attributeValues)
Deprecated.
|
AnnotationValueImpl(AnnotationInfo annotationType,
HashMap<String,Value> attributeValues,
Annotation underlying)
Create a new Annotation value
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateHash()
Calculate the hashcode
|
boolean |
equals(Object o) |
AnnotationInfo |
getAnnotationType()
Get the annotation type
|
TypeInfo |
getType()
Get the type of the value
|
Annotation |
getUnderlyingAnnotation()
Get the underlying annotation
|
<T extends Annotation> |
getUnderlyingAnnotation(Class<T> annotationType)
Get the underlying annotation
|
Value |
getValue(String attributeName)
Get an attribute value
|
Map<String,Value> |
getValues()
Get the values
|
int |
hashCode() |
boolean |
isAnnotation()
Is this value an annotation
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer) |
protected void |
toString(org.jboss.util.JBossStringBuilder buffer) |
asAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isArray, isClass, isEnum, isPrimitive, isStringcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitasAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isArray, isClass, isEnum, isPrimitive, isStringprotected AnnotationInfo annotationType
protected Annotation underlying
protected int hash
public AnnotationValueImpl()
@Deprecated public AnnotationValueImpl(AnnotationInfo annotationType, HashMap<String,Value> attributeValues)
annotationType - the annotation infoattributeValues - the attribute valuespublic AnnotationValueImpl(AnnotationInfo annotationType, HashMap<String,Value> attributeValues, Annotation underlying)
annotationType - the annotation infoattributeValues - the attribute valuesunderlying - the underlying annotationpublic boolean isAnnotation()
ValueisAnnotation in interface ValueisAnnotation in class AbstractValuepublic AnnotationInfo getAnnotationType()
AnnotationValuegetAnnotationType in interface AnnotationValuepublic Value getValue(String attributeName)
AnnotationValuegetValue in interface AnnotationValueattributeName - the attribute namepublic Map<String,Value> getValues()
AnnotationValuegetValues in interface AnnotationValuepublic TypeInfo getType()
Valuepublic Annotation getUnderlyingAnnotation()
AnnotationValuegetUnderlyingAnnotation in interface AnnotationValuepublic <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
AnnotationValuegetUnderlyingAnnotation in interface AnnotationValueT - the annotation typeannotationType - the annotationTypepublic int hashCode()
hashCode in class org.jboss.util.JBossObjectprotected void calculateHash()
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObjectprotected void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.