Top Methods
org.jruby.ir.targets

public Interface ConstantCompiler

Known Direct Implementers
org.jruby.ir.targets.indy.IndyConstantCompiler, org.jruby.ir.targets.simple.NormalConstantCompiler
Imports
org.jruby.util.ByteList

Method Summary

Modifier and TypeMethod and Description
public void
inheritanceSearchConst(String
the "ID string" of the constant name
id
,
ByteList
name of the constant
name
)

Lookup a constant from a given class or module.

public void
lexicalSearchConst(String
the "ID string" of the constant name
id
,
ByteList
name of the constant
name
)

Lookup a constant from a lexical scope.

public void
searchConst(String
the "ID string" of the constant name
id
,
ByteList
name of the constant
name
,
boolean
whether to ignore private constants
noPrivateConsts
)

Lookup a constant from current context.

public void
searchModuleForConst(String
the "ID string" of the constant name
id
,
ByteList
name of the constant
name
,
boolean
whether to ignore private constants
noPrivateConsts
,
boolean callConstMissing)

Lookup a constant from current module.

Method Detail

inheritanceSearchConstback to summary
public void inheritanceSearchConst(String id, ByteList name)

Lookup a constant from a given class or module.

Stack required: context, module

Parameters
id:String

the "ID string" of the constant name

name:ByteList

name of the constant

lexicalSearchConstback to summary
public void lexicalSearchConst(String id, ByteList name)

Lookup a constant from a lexical scope.

Stack required: context, static scope

Parameters
id:String

the "ID string" of the constant name

name:ByteList

name of the constant

searchConstback to summary
public void searchConst(String id, ByteList name, boolean noPrivateConsts)

Lookup a constant from current context.

Stack required: context, static scope

Parameters
id:String

the "ID string" of the constant name

name:ByteList

name of the constant

noPrivateConsts:boolean

whether to ignore private constants

searchModuleForConstback to summary
public void searchModuleForConst(String id, ByteList name, boolean noPrivateConsts, boolean callConstMissing)

Lookup a constant from current module.

Stack required: context, module

Parameters
id:String

the "ID string" of the constant name

name:ByteList

name of the constant

noPrivateConsts:boolean

whether to ignore private constants