public class SimpleSTValueResolver extends java.lang.Object implements VariableResolver
Modifier and Type | Field and Description |
---|---|
private java.lang.Class |
type |
private boolean |
updated |
private java.lang.Object |
value |
Constructor and Description |
---|
SimpleSTValueResolver(java.lang.Object value,
java.lang.Class type) |
SimpleSTValueResolver(java.lang.Object value,
java.lang.Class type,
boolean updated) |
Modifier and Type | Method and Description |
---|---|
int |
getFlags()
Returns the bitset of special variable flags.
|
java.lang.String |
getName()
Returns the name of external variable.
|
java.lang.Class |
getType()
This should return the type of the variable.
|
java.lang.Object |
getValue()
Returns the physical target value of the variable.
|
private static java.lang.Object |
handleTypeCoercion(java.lang.Class type,
java.lang.Object value) |
void |
setStaticType(java.lang.Class type) |
void |
setValue(java.lang.Object value)
Sets the value of the physical target value.
|
private java.lang.Object value
private java.lang.Class type
private boolean updated
public SimpleSTValueResolver(java.lang.Object value, java.lang.Class type)
public SimpleSTValueResolver(java.lang.Object value, java.lang.Class type, boolean updated)
public java.lang.String getName()
VariableResolver
getName
in interface VariableResolver
public java.lang.Class getType()
VariableResolver
getType
in interface VariableResolver
public void setStaticType(java.lang.Class type)
setStaticType
in interface VariableResolver
public int getFlags()
VariableResolver
getFlags
in interface VariableResolver
public java.lang.Object getValue()
VariableResolver
getValue
in interface VariableResolver
public void setValue(java.lang.Object value)
VariableResolver
setValue
in interface VariableResolver
value
- The new value.private static java.lang.Object handleTypeCoercion(java.lang.Class type, java.lang.Object value)