public class Variable
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
Modifiers |
getModifiers() |
java.lang.String |
getName() |
java.lang.Class |
getType()
A type of null means loosely typed variable
|
java.lang.String |
getTypeDescriptor() |
boolean |
hasModifier(java.lang.String name) |
void |
setValue(java.lang.Object value,
int context)
Set the value of the typed variable.
|
java.lang.String |
toString() |
public void setValue(java.lang.Object value, int context) throws UtilEvalError
value
- should be an object or wrapped bsh Primitive type.
if value is null the appropriate default value will be set for the
type: e.g. false for boolean, zero for integer types.UtilEvalError
public java.lang.Class getType()
public java.lang.String getTypeDescriptor()
public Modifiers getModifiers()
public java.lang.String getName()
public boolean hasModifier(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object