Package org.jruby
Class BasicObjectStub.DummyInternalVariables
java.lang.Object
org.jruby.BasicObjectStub.DummyInternalVariables
- All Implemented Interfaces:
InternalVariables
- Enclosing class:
BasicObjectStub
public static class BasicObjectStub.DummyInternalVariables
extends Object
implements InternalVariables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfastGetInternalVariable(String internedName) booleanfastHasInternalVariable(String internedName) voidfastSetInternalVariable(String internedName, Object value) getInternalVariable(String name) Returns the named internal variable if present, else null.booleanhasInternalVariable(String name) Returns true if object has the named internal variable.removeInternalVariable(String name) Removes the named internal variable, if present, returning its value.voidsetInternalVariable(String name, Object value) Sets the named internal variable to the specified value.
-
Constructor Details
-
DummyInternalVariables
public DummyInternalVariables()
-
-
Method Details
-
hasInternalVariable
Description copied from interface:InternalVariablesReturns true if object has the named internal variable. Use only for internal variables (not ivar/cvar/constant).- Specified by:
hasInternalVariablein interfaceInternalVariables- Parameters:
name- the name of an internal variable- Returns:
- true if object has the named internal variable.
-
fastHasInternalVariable
- Specified by:
fastHasInternalVariablein interfaceInternalVariables
-
getInternalVariable
Description copied from interface:InternalVariablesReturns the named internal variable if present, else null. Use only for internal variables (not ivar/cvar/constant).- Specified by:
getInternalVariablein interfaceInternalVariables- Parameters:
name- the name of an internal variable- Returns:
- the named internal variable if present, else null
-
fastGetInternalVariable
- Specified by:
fastGetInternalVariablein interfaceInternalVariables
-
setInternalVariable
Description copied from interface:InternalVariablesSets the named internal variable to the specified value. Use only for internal variables (not ivar/cvar/constant).- Specified by:
setInternalVariablein interfaceInternalVariables- Parameters:
name- the name of an internal variablevalue- the value to be set
-
fastSetInternalVariable
- Specified by:
fastSetInternalVariablein interfaceInternalVariables
-
removeInternalVariable
Description copied from interface:InternalVariablesRemoves the named internal variable, if present, returning its value. Use only for internal variables (not ivar/cvar/constant).- Specified by:
removeInternalVariablein interfaceInternalVariables- Parameters:
name- the name of the variable to remove- Returns:
- the value of the remove variable, if present; else null
-