Top Fields Constructors Methods
org.jruby.ir.targets.simple

public Class NormalConstantCompiler

extends Object
implements ConstantCompiler
Class Inheritance
All Implemented Interfaces
org.jruby.ir.targets.ConstantCompiler
Imports
org.jruby.ir.targets.ConstantCompiler, .IRBytecodeAdapter, .JVM, org.jruby.parser.StaticScope, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList

Field Summary

Modifier and TypeField and Description
private final IRBytecodeAdapter

Constructor Summary

AccessConstructor and Description
public

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
)

Implements org.jruby.ir.targets.ConstantCompiler.inheritanceSearchConst.

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
)

Implements org.jruby.ir.targets.ConstantCompiler.lexicalSearchConst.

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
)

Implements org.jruby.ir.targets.ConstantCompiler.searchConst.

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)

Implements org.jruby.ir.targets.ConstantCompiler.searchModuleForConst.

Lookup a constant from current module.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compilerback to summary
private final IRBytecodeAdapter compiler

Constructor Detail

NormalConstantCompilerback to summary
public NormalConstantCompiler(IRBytecodeAdapter compiler)

Method Detail

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

Implements org.jruby.ir.targets.ConstantCompiler.inheritanceSearchConst.

Doc from org.jruby.ir.targets.ConstantCompiler.inheritanceSearchConst.

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

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

Implements org.jruby.ir.targets.ConstantCompiler.lexicalSearchConst.

Doc from org.jruby.ir.targets.ConstantCompiler.lexicalSearchConst.

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

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

Implements org.jruby.ir.targets.ConstantCompiler.searchConst.

Doc from org.jruby.ir.targets.ConstantCompiler.searchConst.

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

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

Implements org.jruby.ir.targets.ConstantCompiler.searchModuleForConst.

Doc from org.jruby.ir.targets.ConstantCompiler.searchModuleForConst.

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

Annotations
@Override