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) boolean
fastHasInternalVariable
(String internedName) void
fastSetInternalVariable
(String internedName, Object value) getInternalVariable
(String name) Returns the named internal variable if present, else null.boolean
hasInternalVariable
(String name) Returns true if object has the named internal variable.removeInternalVariable
(String name) Removes the named internal variable, if present, returning its value.void
setInternalVariable
(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:InternalVariables
Returns true if object has the named internal variable. Use only for internal variables (not ivar/cvar/constant).- Specified by:
hasInternalVariable
in interfaceInternalVariables
- Parameters:
name
- the name of an internal variable- Returns:
- true if object has the named internal variable.
-
fastHasInternalVariable
- Specified by:
fastHasInternalVariable
in interfaceInternalVariables
-
getInternalVariable
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 interfaceInternalVariables
- Parameters:
name
- the name of an internal variable- Returns:
- the named internal variable if present, else null
-
fastGetInternalVariable
- Specified by:
fastGetInternalVariable
in interfaceInternalVariables
-
setInternalVariable
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 interfaceInternalVariables
- Parameters:
name
- the name of an internal variablevalue
- the value to be set
-
fastSetInternalVariable
- Specified by:
fastSetInternalVariable
in interfaceInternalVariables
-
removeInternalVariable
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 interfaceInternalVariables
- Parameters:
name
- the name of the variable to remove- Returns:
- the value of the remove variable, if present; else null
-