Top Description Methods
org.jruby.runtime.builtin

public Interface InternalVariables

Known Direct Implementers
org.jruby.BasicObjectStub.DummyInternalVariables, org.jruby.RubyBasicObject

Interface that gives access to the internal variables of a Ruby object.
Author
headius

Method Summary

Modifier and TypeMethod and Description
public Object
fastGetInternalVariable(String internedNaem)
Deprecated

public boolean
fastHasInternalVariable(String internedName)
Deprecated

public void
fastSetInternalVariable(String internedName, Object value)
Deprecated

public Object

Returns:

the named internal variable if present, else null
getInternalVariable
(String
the name of an internal variable
name
)

Returns the named internal variable if present, else null.

public boolean

Returns:

true if object has the named internal variable.
hasInternalVariable
(String
the name of an internal variable
name
)

Returns true if object has the named internal variable.

public Object

Returns:

the value of the remove variable, if present; else null
removeInternalVariable
(String
the name of the variable to remove
name
)

Removes the named internal variable, if present, returning its value.

public void
setInternalVariable(String
the name of an internal variable
name
,
Object
the value to be set
value
)

Sets the named internal variable to the specified value.

Method Detail

fastGetInternalVariableback to summary
public Object fastGetInternalVariable(String internedNaem)

Deprecated

Annotations
@Deprecated
fastHasInternalVariableback to summary
public boolean fastHasInternalVariable(String internedName)

Deprecated

Annotations
@Deprecated
fastSetInternalVariableback to summary
public void fastSetInternalVariable(String internedName, Object value)

Deprecated

Annotations
@Deprecated
getInternalVariableback to summary
public Object getInternalVariable(String name)

Returns the named internal variable if present, else null. Use only for internal variables (not ivar/cvar/constant).

Parameters
name:String

the name of an internal variable

Returns:Object

the named internal variable if present, else null

hasInternalVariableback to summary
public boolean hasInternalVariable(String name)

Returns true if object has the named internal variable. Use only for internal variables (not ivar/cvar/constant).

Parameters
name:String

the name of an internal variable

Returns:boolean

true if object has the named internal variable.

removeInternalVariableback to summary
public Object removeInternalVariable(String name)

Removes the named internal variable, if present, returning its value. Use only for internal variables (not ivar/cvar/constant).

Parameters
name:String

the name of the variable to remove

Returns:Object

the value of the remove variable, if present; else null

setInternalVariableback to summary
public void setInternalVariable(String name, Object value)

Sets the named internal variable to the specified value. Use only for internal variables (not ivar/cvar/constant).

Parameters
name:String

the name of an internal variable

value:Object

the value to be set