org.jruby.runtime.component
Class VariableEntry<BaseObjectType>
java.lang.Object
org.jruby.runtime.component.VariableEntry<BaseObjectType>
- All Implemented Interfaces:
- Variable<BaseObjectType>
public class VariableEntry<BaseObjectType>
- extends java.lang.Object
- implements Variable<BaseObjectType>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
public final java.lang.String name
value
public final BaseObjectType value
VariableEntry
public VariableEntry(java.lang.String name,
BaseObjectType value)
getName
public java.lang.String getName()
- Specified by:
getName
in interface Variable<BaseObjectType>
getValue
public BaseObjectType getValue()
- Specified by:
getValue
in interface Variable<BaseObjectType>
isClassVariable
public boolean isClassVariable()
- Specified by:
isClassVariable
in interface Variable<BaseObjectType>
isConstant
public boolean isConstant()
- Specified by:
isConstant
in interface Variable<BaseObjectType>
isInstanceVariable
public boolean isInstanceVariable()
- Specified by:
isInstanceVariable
in interface Variable<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 interface Variable<BaseObjectType>
- Returns:
- true if the variable is an instance variable, class variable, or constant,
else false
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2009 JRuby Team. All Rights Reserved.