org.jboss.reflect.plugins
Class ArrayValueImpl

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.spi.AbstractValue
          extended by org.jboss.reflect.plugins.ArrayValueImpl
All Implemented Interfaces:
Serializable, Cloneable, ArrayValue, Value, org.jboss.util.JBossInterface

public class ArrayValueImpl
extends AbstractValue
implements ArrayValue

Annotation value

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

Field Summary
protected  int hash
          The hash code
protected  TypeInfo type
          The type
protected  Value[] values
          The values
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
ArrayValueImpl()
          Create a new ArrayValue
ArrayValueImpl(TypeInfo type, Value[] values)
          Create a new ArrayValue
 
Method Summary
protected  void calculateHash()
          Calculate the hash code
 boolean equals(Object o)
           
 TypeInfo getType()
          Get the type of the value
 Value[] getValues()
          Get the values
 int hashCode()
           
 boolean isArray()
          Is this value an array
 
Methods inherited from class org.jboss.reflect.spi.AbstractValue
asAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isAnnotation, isClass, isEnum, isPrimitive, isString
 
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
 
Methods inherited from interface org.jboss.reflect.spi.Value
asAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isAnnotation, isClass, isEnum, isPrimitive, isString
 

Field Detail

type

protected TypeInfo type
The type


values

protected Value[] values
The values


hash

protected int hash
The hash code

Constructor Detail

ArrayValueImpl

public ArrayValueImpl()
Create a new ArrayValue


ArrayValueImpl

public ArrayValueImpl(TypeInfo type,
                      Value[] values)
Create a new ArrayValue

Parameters:
type - the type
values - the values
Method Detail

isArray

public boolean isArray()
Description copied from interface: Value
Is this value an array

Specified by:
isArray in interface Value
Overrides:
isArray in class AbstractValue
Returns:
true when an array

getValues

public Value[] getValues()
Description copied from interface: ArrayValue
Get the values

Specified by:
getValues in interface ArrayValue
Returns:
the values

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)
Overrides:
equals in class Object

hashCode

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

calculateHash

protected void calculateHash()
Calculate the hash code



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