程序包 bsh

类 Variable

java.lang.Object
bsh.Variable
所有已实现的接口:
Serializable

public class Variable extends Object implements Serializable
另请参阅:
  • 方法详细资料

    • 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.
      抛出:
      UtilEvalError
    • getType

      public Class getType()
      A type of null means loosely typed variable
    • getTypeDescriptor

      public String getTypeDescriptor()
    • getModifiers

      public Modifiers getModifiers()
    • getName

      public String getName()
    • hasModifier

      public boolean hasModifier(String name)
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object