public class ImmediateDescription extends Object implements ValueDescription
ValueDescription.ValueKind| Constructor and Description |
|---|
ImmediateDescription(TypeDescription valueType,
Object value)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
getValue()
Returns the value.
|
ValueDescription.ValueKind |
getValueKind()
Returns the value kind.
|
TypeDescription |
getValueType()
Returns the value type.
|
int |
hashCode() |
static boolean |
isBoxed(Class<?> aClass)
Returns whether the target type is boxed type or not.
|
static ImmediateDescription |
nullOf(ReifiableTypeDescription valueType)
Creates a new instance that represents a
null value. |
static ImmediateDescription |
of(boolean value)
Creates a new instance.
|
static ImmediateDescription |
of(byte value)
Creates a new instance.
|
static ImmediateDescription |
of(char value)
Creates a new instance.
|
static ImmediateDescription |
of(double value)
Creates a new instance.
|
static ImmediateDescription |
of(float value)
Creates a new instance.
|
static ImmediateDescription |
of(int value)
Creates a new instance.
|
static ImmediateDescription |
of(long value)
Creates a new instance.
|
static ImmediateDescription |
of(Object value)
Creates a new instance.
|
static ImmediateDescription |
of(short value)
Creates a new instance.
|
static ImmediateDescription |
of(String value)
Creates a new instance.
|
String |
toString() |
public ImmediateDescription(TypeDescription valueType, Object value)
valueType - the value typevalue - the valuepublic static final ImmediateDescription of(Object value)
value - the valuepublic static final boolean isBoxed(Class<?> aClass)
aClass - the target typetrue if the target type is boxed, otherwise falsepublic static final ImmediateDescription of(boolean value)
value - the valuepublic static final ImmediateDescription of(byte value)
value - the valuepublic static final ImmediateDescription of(short value)
value - the valuepublic static final ImmediateDescription of(int value)
value - the valuepublic static final ImmediateDescription of(long value)
value - the valuepublic static final ImmediateDescription of(float value)
value - the valuepublic static final ImmediateDescription of(double value)
value - the valuepublic static final ImmediateDescription of(char value)
value - the valuepublic static final ImmediateDescription of(String value)
value - the valuepublic static final ImmediateDescription nullOf(ReifiableTypeDescription valueType)
null value.valueType - the value typepublic ValueDescription.ValueKind getValueKind()
ValueDescriptiongetValueKind in interface ValueDescriptionpublic TypeDescription getValueType()
ValueDescriptiongetValueType in interface ValueDescriptionpublic Object getValue()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.