org.jruby.runtime.component
Class VariableEntry<BaseObjectType>

java.lang.Object
  extended by org.jruby.runtime.component.VariableEntry<BaseObjectType>
All Implemented Interfaces:
Variable<BaseObjectType>

public class VariableEntry<BaseObjectType>
extends java.lang.Object
implements Variable<BaseObjectType>


Field Summary
 java.lang.String name
           
 BaseObjectType value
           
 
Constructor Summary
VariableEntry(java.lang.String name, BaseObjectType value)
           
 
Method Summary
 java.lang.String getName()
           
 BaseObjectType getValue()
           
 boolean isClassVariable()
           
 boolean isConstant()
           
 boolean isInstanceVariable()
           
 boolean isRubyVariable()
          Returns true if the variable is an instance variable, class variable, or constant; otherwise, false.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final java.lang.String name

value

public final BaseObjectType value
Constructor Detail

VariableEntry

public VariableEntry(java.lang.String name,
                     BaseObjectType value)
Method Detail

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.