org.jboss.reflect.plugins
Class AnnotationAttributeImpl

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AnnotationAttributeImpl
All Implemented Interfaces:
Serializable, Cloneable, AnnotationAttribute, org.jboss.util.JBossInterface

public class AnnotationAttributeImpl
extends org.jboss.util.JBossObject
implements AnnotationAttribute, Serializable

An annotation attribute

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

Field Summary
protected  Value defaultValue
          The default value
protected  int hash
          The hash code
protected  String name
          The name
protected  TypeInfo type
          The attribute type
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AnnotationAttributeImpl()
          Create a new annotation attribute
AnnotationAttributeImpl(String name, TypeInfo type, Value defaultValue)
          Create a new AnnotationAttribute.
 
Method Summary
protected  void calcHashCode()
          Calculate the hash code
 boolean equals(Object obj)
           
 Value getDefaultValue()
          Get the default value
 String getName()
          Get the attribute name
 TypeInfo getType()
          Get the attribute type
 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

name

protected String name
The name


type

protected TypeInfo type
The attribute type


defaultValue

protected Value defaultValue
The default value


hash

protected int hash
The hash code

Constructor Detail

AnnotationAttributeImpl

public AnnotationAttributeImpl()
Create a new annotation attribute


AnnotationAttributeImpl

public AnnotationAttributeImpl(String name,
                               TypeInfo type,
                               Value defaultValue)
Create a new AnnotationAttribute.

Parameters:
name - the annotation name
type - the attribute type
defaultValue - the default value
Method Detail

getName

public String getName()
Description copied from interface: AnnotationAttribute
Get the attribute name

Specified by:
getName in interface AnnotationAttribute
Returns:
the attribute name

getType

public TypeInfo getType()
Description copied from interface: AnnotationAttribute
Get the attribute type

Specified by:
getType in interface AnnotationAttribute
Returns:
the attribute type

getDefaultValue

public Value getDefaultValue()
Description copied from interface: AnnotationAttribute
Get the default value

Specified by:
getDefaultValue in interface AnnotationAttribute
Returns:
the default value

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class org.jboss.util.JBossObject

calcHashCode

protected void calcHashCode()
Calculate the hash code



Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.