org.jboss.reflect.plugins
Class AnnotationValueImpl

java.lang.Object
  extended byorg.jboss.util.JBossObject
      extended byorg.jboss.reflect.plugins.AnnotationValueImpl
All Implemented Interfaces:
AnnotationValue, Cloneable, org.jboss.util.JBossInterface, Serializable, Value

public class AnnotationValueImpl
extends org.jboss.util.JBossObject
implements AnnotationValue, Serializable

An annotation value

Author:
Bill Burke, Adrian Brock
See Also:
Serialized Form

Field Summary
protected  AnnotationInfo annotationType
          The annotation type
protected  HashMap attributeValues
          The attribute values
protected  int hash
          The hash code
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AnnotationValueImpl()
          Create a new Annotation value
AnnotationValueImpl(AnnotationInfo annotationType, HashMap attributeValues)
          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
 Value getValue(String attributeName)
          Get an attribute value
 int hashCode()
           
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

annotationType

protected AnnotationInfo annotationType
The annotation type


attributeValues

protected HashMap attributeValues
The attribute values


hash

protected int hash
The hash code

Constructor Detail

AnnotationValueImpl

public AnnotationValueImpl()
Create a new Annotation value


AnnotationValueImpl

public AnnotationValueImpl(AnnotationInfo annotationType,
                           HashMap attributeValues)
Create a new Annotation value

Parameters:
annotationType - the annotation info
attributeValues - the attribute values
Method Detail

getAnnotationType

public AnnotationInfo getAnnotationType()
Description copied from interface: AnnotationValue
Get the annotation type

Specified by:
getAnnotationType in interface AnnotationValue
Returns:
the annotation type

getValue

public Value getValue(String attributeName)
Description copied from interface: AnnotationValue
Get an attribute value

Specified by:
getValue in interface AnnotationValue
Parameters:
attributeName - the attribute name
Returns:
the value

getType

public TypeInfo getType()
Description copied from interface: Value
Get the type of the value

Specified by:
getType in interface Value
Returns:
the type

equals

public boolean equals(Object o)

hashCode

public int hashCode()

calculateHash

protected void calculateHash()
Calculate the hashcode



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.