public class Variable extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
Modifiers |
getModifiers() |
String |
getName() |
Class |
getType()
A type of null means loosely typed variable
|
String |
getTypeDescriptor() |
boolean |
hasModifier(String name) |
void |
setValue(Object value,
int context)
Set the value of the typed variable.
|
String |
toString() |
public void setValue(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 Class getType()
public String getTypeDescriptor()
public Modifiers getModifiers()
public String getName()
public boolean hasModifier(String name)
? 2000-2005 pat@pat.net :-)