bsh
Class Variable
- java.io.Serializable
public class Variable
extends java.lang.Object
implements java.io.Serializable
- Serialized Form
getName
public String getName()
getType
public Class getType()
A type of null means loosely typed variable
getTypeDescriptor
public String getTypeDescriptor()
hasModifier
public boolean hasModifier(String name)
setValue
public void setValue(Object value,
int context)
throws UtilEvalError
Set the value of the typed variable.
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.
toString
public String toString()
B) 2000-2005 pat@pat.net :-)