|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.reflect.spi.AbstractValue
org.jboss.reflect.plugins.AnnotationValueImpl
public class AnnotationValueImpl
An annotation value
| Field Summary | |
|---|---|
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 |
| Fields inherited from class org.jboss.util.JBossObject |
|---|
hashCode, log, toString |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | ||
|---|---|---|
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 |
|
|
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)
|
|
| Methods inherited from class org.jboss.reflect.spi.AbstractValue |
|---|
asAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isArray, isClass, isEnum, isPrimitive, isString |
| Methods inherited from class org.jboss.util.JBossObject |
|---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toString, toStringImplementation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.reflect.spi.Value |
|---|
asAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isArray, isClass, isEnum, isPrimitive, isString |
| Field Detail |
|---|
protected AnnotationInfo annotationType
protected HashMap<String,Value> attributeValues
protected Annotation underlying
protected int hash
| Constructor Detail |
|---|
public AnnotationValueImpl()
@Deprecated
public AnnotationValueImpl(AnnotationInfo annotationType,
HashMap<String,Value> attributeValues)
annotationType - the annotation infoattributeValues - the attribute values
public AnnotationValueImpl(AnnotationInfo annotationType,
HashMap<String,Value> attributeValues,
Annotation underlying)
annotationType - the annotation infoattributeValues - the attribute valuesunderlying - the underlying annotation| Method Detail |
|---|
public boolean isAnnotation()
Value
isAnnotation in interface ValueisAnnotation in class AbstractValuepublic AnnotationInfo getAnnotationType()
AnnotationValue
getAnnotationType in interface AnnotationValuepublic Value getValue(String attributeName)
AnnotationValue
getValue in interface AnnotationValueattributeName - the attribute name
public Map<String,Value> getValues()
AnnotationValue
getValues in interface AnnotationValuepublic TypeInfo getType()
Value
getType in interface Valuepublic Annotation getUnderlyingAnnotation()
AnnotationValue
getUnderlyingAnnotation in interface AnnotationValuepublic <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
AnnotationValue
getUnderlyingAnnotation in interface AnnotationValueT - the annotation typeannotationType - the annotationType
public boolean equals(Object o)
equals in class Objectpublic 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.JBossObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||