public class PrimitiveValue extends AbstractValue
Modifier and Type | Field and Description |
---|---|
protected PrimitiveInfo |
type
The type
|
protected String |
value
The value
|
Constructor and Description |
---|
PrimitiveValue()
Create a primitive value
|
PrimitiveValue(String value,
PrimitiveInfo type)
Create a primitive value
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TypeInfo |
getType()
Get the type of the value
|
String |
getValue()
Get the value
|
int |
hashCode() |
boolean |
isPrimitive()
Is this value a primitive
|
asAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isAnnotation, isArray, isClass, isEnum, isString
protected String value
protected PrimitiveInfo type
public PrimitiveValue()
public PrimitiveValue(String value, PrimitiveInfo type)
value
- the valuetype
- the typepublic boolean isPrimitive()
Value
isPrimitive
in interface Value
isPrimitive
in class AbstractValue
public String getValue()
public TypeInfo getType()
Value
public int hashCode()
hashCode
in class org.jboss.util.JBossObject
Copyright © 2017 JBoss by Red Hat. All rights reserved.