Package org.jruby.runtime.component
Class VariableEntry<BaseObjectType>
java.lang.Object
org.jruby.runtime.component.VariableEntry<BaseObjectType>
- All Implemented Interfaces:
Variable<BaseObjectType>
-
Field Details
-
name
-
value
-
-
Constructor Details
-
VariableEntry
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceVariable<BaseObjectType>
-
getValue
- Specified by:
getValue
in interfaceVariable<BaseObjectType>
-
isClassVariable
public boolean isClassVariable()- Specified by:
isClassVariable
in interfaceVariable<BaseObjectType>
-
isConstant
public boolean isConstant()- Specified by:
isConstant
in interfaceVariable<BaseObjectType>
-
isInstanceVariable
public boolean isInstanceVariable()- Specified by:
isInstanceVariable
in interfaceVariable<BaseObjectType>
-
isRubyVariable
public boolean isRubyVariable()Description copied from interface:Variable
Returns true if the variable is an instance variable, class variable, or constant; otherwise, false.- Specified by:
isRubyVariable
in interfaceVariable<BaseObjectType>
- Returns:
- true if the variable is an instance variable, class variable, or constant, else false
-
toString
-