Top Methods
org.jruby.ir.targets

public Interface DynamicValueCompiler

Known Direct Implementers
org.jruby.ir.targets.indy.IndyDynamicValueCompiler, org.jruby.ir.targets.simple.NormalDynamicValueCompiler
Imports
org.jruby.util.RegexpOptions

Method Summary

Modifier and TypeMethod and Description
public void
array(int
number of elements
length
)

Construct an Array from elements on stack.

public void
hash(int
number of element pairs
length
)

Construct a Hash from elements on stack.

public void
pushDRegexp(Runnable callback, RegexpOptions
options for the regexp
options
,
int
number of Strings passed in
arity
)

Build a dynamic regexp.

Method Detail

arrayback to summary
public void array(int length)

Construct an Array from elements on stack. Stack required: all elements of array

Parameters
length:int

number of elements

hashback to summary
public void hash(int length)

Construct a Hash from elements on stack. Stack required: context, all elements of hash

Parameters
length:int

number of element pairs

pushDRegexpback to summary
public void pushDRegexp(Runnable callback, RegexpOptions options, int arity)

Build a dynamic regexp.

No stack requirement. The callback must push onto this method's stack the ThreadContext and all arguments for building the dregexp, matching the given arity.

Parameters
options:RegexpOptions

options for the regexp

arity:int

number of Strings passed in