public interface Value
Modifier and Type | Method and Description |
---|---|
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
|
TypeInfo |
getType()
Get the type of the value
|
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
|
TypeInfo getType()
boolean isPrimitive()
PrimitiveValue asPrimitive()
IllegalStateException
- when not a primitive valueboolean isClass()
ClassValue asClass()
IllegalStateException
- when not a class valueboolean isString()
StringValue asString()
IllegalStateException
- when not a string valueboolean isEnum()
EnumValue asEnum()
IllegalStateException
- when not an enumboolean isAnnotation()
AnnotationValue asAnnotation()
IllegalStateException
- when not an annotation valueboolean isArray()
ArrayValue asArray()
IllegalStateException
- when not an array valueCopyright © 2016 JBoss by Red Hat. All rights reserved.