org.jruby
Class BasicObjectStub.DummyInternalVariables

java.lang.Object
  extended by org.jruby.BasicObjectStub.DummyInternalVariables
All Implemented Interfaces:
InternalVariables
Enclosing class:
BasicObjectStub

public static class BasicObjectStub.DummyInternalVariables
extends java.lang.Object
implements InternalVariables


Constructor Summary
BasicObjectStub.DummyInternalVariables()
           
 
Method Summary
 java.lang.Object fastGetInternalVariable(java.lang.String internedName)
          Returns the named internal variable if present, else null.
 boolean fastHasInternalVariable(java.lang.String internedName)
          Returns true if object has the named internal variable.
 void fastSetInternalVariable(java.lang.String internedName, java.lang.Object value)
          Sets the named internal variable to the specified value.
 java.lang.Object getInternalVariable(java.lang.String name)
          Returns the named internal variable if present, else null.
 boolean hasInternalVariable(java.lang.String name)
          Returns true if object has the named internal variable.
 java.lang.Object removeInternalVariable(java.lang.String name)
          Removes the named internal variable, if present, returning its value.
 void setInternalVariable(java.lang.String name, java.lang.Object value)
          Sets the named internal variable to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicObjectStub.DummyInternalVariables

public BasicObjectStub.DummyInternalVariables()
Method Detail

hasInternalVariable

public boolean hasInternalVariable(java.lang.String name)
Description copied from interface: InternalVariables
Returns true if object has the named internal variable. Use only for internal variables (not ivar/cvar/constant).

Specified by:
hasInternalVariable in interface InternalVariables
Parameters:
name - the name of an internal variable
Returns:
true if object has the named internal variable.

fastHasInternalVariable

public boolean fastHasInternalVariable(java.lang.String internedName)
Description copied from interface: InternalVariables
Returns true if object has the named internal variable. Use only for internal variables (not ivar/cvar/constant). The supplied name must have been previously interned.

Specified by:
fastHasInternalVariable in interface InternalVariables
Parameters:
internedName - the interned name of an internal variable
Returns:
true if object has the named internal variable, else false

getInternalVariable

public java.lang.Object getInternalVariable(java.lang.String name)
Description copied from interface: InternalVariables
Returns the named internal variable if present, else null. Use only for internal variables (not ivar/cvar/constant).

Specified by:
getInternalVariable in interface InternalVariables
Parameters:
name - the name of an internal variable
Returns:
the named internal variable if present, else null

fastGetInternalVariable

public java.lang.Object fastGetInternalVariable(java.lang.String internedName)
Description copied from interface: InternalVariables
Returns the named internal variable if present, else null. Use only for internal variables (not ivar/cvar/constant). The supplied name must have been previously interned.

Specified by:
fastGetInternalVariable in interface InternalVariables
Parameters:
internedName - the interned name of an internal variable
Returns:
he named internal variable if present, else null

setInternalVariable

public void setInternalVariable(java.lang.String name,
                                java.lang.Object value)
Description copied from interface: InternalVariables
Sets the named internal variable to the specified value. Use only for internal variables (not ivar/cvar/constant).

Specified by:
setInternalVariable in interface InternalVariables
Parameters:
name - the name of an internal variable
value - the value to be set

fastSetInternalVariable

public void fastSetInternalVariable(java.lang.String internedName,
                                    java.lang.Object value)
Description copied from interface: InternalVariables
Sets the named internal variable to the specified value. Use only for internal variables (not ivar/cvar/constant). The supplied name must have been previously interned.

Specified by:
fastSetInternalVariable in interface InternalVariables
Parameters:
internedName - the interned name of an internal variable
value - the value to be set

removeInternalVariable

public java.lang.Object removeInternalVariable(java.lang.String name)
Description copied from interface: InternalVariables
Removes the named internal variable, if present, returning its value. Use only for internal variables (not ivar/cvar/constant).

Specified by:
removeInternalVariable in interface InternalVariables
Parameters:
name - the name of the variable to remove
Returns:
the value of the remove variable, if present; else null


Copyright © 2002-2009 JRuby Team. All Rights Reserved.