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 Details

    • DummyInternalVariables

      public DummyInternalVariables()
  • Method Details

    • hasInternalVariable

      public boolean hasInternalVariable(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(String internedName)
      Specified by:
      fastHasInternalVariable in interface InternalVariables
    • getInternalVariable

      public Object getInternalVariable(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 Object fastGetInternalVariable(String internedName)
      Specified by:
      fastGetInternalVariable in interface InternalVariables
    • setInternalVariable

      public void setInternalVariable(String name, 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(String internedName, Object value)
      Specified by:
      fastSetInternalVariable in interface InternalVariables
    • removeInternalVariable

      public Object removeInternalVariable(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