JBoss Reflection 2.2.1.SP1

org.jboss.reflect.spi
Class AbstractValue

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.spi.AbstractValue
All Implemented Interfaces:
Serializable, Cloneable, Value, org.jboss.util.JBossInterface
Direct Known Subclasses:
AnnotationValueImpl, ArrayValueImpl, ClassValueImpl, EnumValueImpl, PrimitiveValue, StringValueImpl

public abstract class AbstractValue
extends org.jboss.util.JBossObject
implements Value, Serializable

AbstractValue.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AbstractValue()
           
 
Method Summary
 AnnotationValue asAnnotation()
          Get the value as an annotation
 ArrayValue asArray()
          Get the value as an annotation
 ClassValue asClass()
          Get the value as a class
 EnumValue asEnum()
          Get the value as an enum
 PrimitiveValue asPrimitive()
          Get the value as a primitive
 StringValue asString()
          Get the value as a string
 boolean isAnnotation()
          Is this value an annotation
 boolean isArray()
          Is this value an array
 boolean isClass()
          Is this value a class
 boolean isEnum()
          Is this value an enum
 boolean isPrimitive()
          Is this value a primitive
 boolean isString()
          Is this value a string
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.reflect.spi.Value
getType
 

Constructor Detail

AbstractValue

public AbstractValue()
Method Detail

asAnnotation

public AnnotationValue asAnnotation()
Description copied from interface: Value
Get the value as an annotation

Specified by:
asAnnotation in interface Value
Returns:
the value

asArray

public ArrayValue asArray()
Description copied from interface: Value
Get the value as an annotation

Specified by:
asArray in interface Value
Returns:
the value

asClass

public ClassValue asClass()
Description copied from interface: Value
Get the value as a class

Specified by:
asClass in interface Value
Returns:
the value

asEnum

public EnumValue asEnum()
Description copied from interface: Value
Get the value as an enum

Specified by:
asEnum in interface Value
Returns:
the value

asPrimitive

public PrimitiveValue asPrimitive()
Description copied from interface: Value
Get the value as a primitive

Specified by:
asPrimitive in interface Value
Returns:
the value

asString

public StringValue asString()
Description copied from interface: Value
Get the value as a string

Specified by:
asString in interface Value
Returns:
the value

isAnnotation

public boolean isAnnotation()
Description copied from interface: Value
Is this value an annotation

Specified by:
isAnnotation in interface Value
Returns:
true when an annotation

isArray

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

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

isClass

public boolean isClass()
Description copied from interface: Value
Is this value a class

Specified by:
isClass in interface Value
Returns:
true when a class

isEnum

public boolean isEnum()
Description copied from interface: Value
Is this value an enum

Specified by:
isEnum in interface Value
Returns:
true when an enum

isPrimitive

public boolean isPrimitive()
Description copied from interface: Value
Is this value a primitive

Specified by:
isPrimitive in interface Value
Returns:
true when a primitive

isString

public boolean isString()
Description copied from interface: Value
Is this value a string

Specified by:
isString in interface Value
Returns:
true when a string

JBoss Reflection 2.2.1.SP1

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