Package org.gjt.sp.jedit.bsh
Class Variable
- java.lang.Object
-
- org.gjt.sp.jedit.bsh.Variable
-
- All Implemented Interfaces:
java.io.Serializable
public class Variable extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiersgetModifiers()java.lang.StringgetName()java.lang.ClassgetType()A type of null means loosely typed variablejava.lang.StringgetTypeDescriptor()booleanhasModifier(java.lang.String name)voidsetValue(java.lang.Object value, int context)Set the value of the typed variable.java.lang.StringtoString()
-
-
-
Method Detail
-
setValue
public void setValue(java.lang.Object value, int context) throws UtilEvalErrorSet the value of the typed variable.- Parameters:
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.- Throws:
UtilEvalError
-
getType
public java.lang.Class getType()
A type of null means loosely typed variable
-
getTypeDescriptor
public java.lang.String getTypeDescriptor()
-
getModifiers
public Modifiers getModifiers()
-
getName
public java.lang.String getName()
-
hasModifier
public boolean hasModifier(java.lang.String name)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-