public class Variable extends java.lang.Object implements java.io.Serializable, BshClassManager.Listener
| Modifier and Type | Field and Description |
|---|---|
static int |
ASSIGNMENT |
static int |
DECLARATION |
| Modifier and Type | Method and Description |
|---|---|
void |
classLoaderChanged() |
Modifiers |
getModifiers() |
java.lang.String |
getName() |
java.lang.Class<?> |
getType() |
java.lang.String |
getTypeDescriptor() |
boolean |
hasModifier(java.lang.String name) |
void |
setConstant() |
void |
setValue(java.lang.Object value,
int context)
Set the value of the typed variable.
|
java.lang.String |
toString() |
public static final int DECLARATION
public static final int ASSIGNMENT
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.UtilEvalErrorpublic java.lang.String getName()
public java.lang.Class<?> getType()
public java.lang.String getTypeDescriptor()
public Modifiers getModifiers()
public boolean hasModifier(java.lang.String name)
public void setConstant()
public java.lang.String toString()
toString in class java.lang.Objectpublic void classLoaderChanged()
classLoaderChanged in interface BshClassManager.Listener