Interface InstanceVariableCompiler

All Known Implementing Classes:
IndyInstanceVariableCompiler, NormalInstanceVariableCompiler

public interface InstanceVariableCompiler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    getField(Runnable source, String name, boolean rawValue)
    Load instance variable from self.
    void
    putField(Runnable target, Runnable value, String name)
    Store instance variable into self.
  • Method Details

    • putField

      void putField(Runnable target, Runnable value, String name)
      Store instance variable into self.

      Stack required: none Stack result: empty

      Parameters:
      target - runnable to push target object, may be called twice
      value - runnable to push value to assign, will only be called once
      name - name of variable to store
    • getField

      void getField(Runnable source, String name, boolean rawValue)
      Load instance variable from self.

      Stack required: none Stack result: value from self

      Parameters:
      source - runnable to push source object, may be called twice
      name - name of variable to load
      rawValue - should the result be null instead of nil on non-existent field