Interface ConstantCompiler

All Known Implementing Classes:
IndyConstantCompiler, NormalConstantCompiler

public interface ConstantCompiler
  • Method Details

    • searchConst

      void searchConst(String id, ByteList name, boolean noPrivateConsts)
      Lookup a constant from current context.

      Stack required: context, static scope

      Parameters:
      id - the "ID string" of the constant name
      name - name of the constant
      noPrivateConsts - whether to ignore private constants
    • searchModuleForConst

      void searchModuleForConst(String id, ByteList name, boolean noPrivateConsts, boolean callConstMissing)
      Lookup a constant from current module.

      Stack required: context, module

      Parameters:
      id - the "ID string" of the constant name
      name - name of the constant
      noPrivateConsts - whether to ignore private constants
    • inheritanceSearchConst

      void inheritanceSearchConst(String id, ByteList name)
      Lookup a constant from a given class or module.

      Stack required: context, module

      Parameters:
      id - the "ID string" of the constant name
      name - name of the constant
    • lexicalSearchConst

      void lexicalSearchConst(String id, ByteList name)
      Lookup a constant from a lexical scope.

      Stack required: context, static scope

      Parameters:
      id - the "ID string" of the constant name
      name - name of the constant