Class NormalConstantCompiler

java.lang.Object
org.jruby.ir.targets.simple.NormalConstantCompiler
All Implemented Interfaces:
ConstantCompiler

public class NormalConstantCompiler extends Object implements ConstantCompiler
  • Constructor Details

  • Method Details

    • searchConst

      public void searchConst(String id, ByteList name, boolean noPrivateConsts)
      Description copied from interface: ConstantCompiler
      Lookup a constant from current context.

      Stack required: context, static scope

      Specified by:
      searchConst in interface ConstantCompiler
      Parameters:
      id - the "ID string" of the constant name
      name - name of the constant
      noPrivateConsts - whether to ignore private constants
    • searchModuleForConst

      public void searchModuleForConst(String id, ByteList name, boolean noPrivateConsts, boolean callConstMissing)
      Description copied from interface: ConstantCompiler
      Lookup a constant from current module.

      Stack required: context, module

      Specified by:
      searchModuleForConst in interface ConstantCompiler
      Parameters:
      id - the "ID string" of the constant name
      name - name of the constant
      noPrivateConsts - whether to ignore private constants
    • inheritanceSearchConst

      public void inheritanceSearchConst(String id, ByteList name)
      Description copied from interface: ConstantCompiler
      Lookup a constant from a given class or module.

      Stack required: context, module

      Specified by:
      inheritanceSearchConst in interface ConstantCompiler
      Parameters:
      id - the "ID string" of the constant name
      name - name of the constant
    • lexicalSearchConst

      public void lexicalSearchConst(String id, ByteList name)
      Description copied from interface: ConstantCompiler
      Lookup a constant from a lexical scope.

      Stack required: context, static scope

      Specified by:
      lexicalSearchConst in interface ConstantCompiler
      Parameters:
      id - the "ID string" of the constant name
      name - name of the constant