Package org.jruby.ir.targets.simple
Class NormalDynamicValueCompiler
java.lang.Object
org.jruby.ir.targets.simple.NormalDynamicValueCompiler
- All Implemented Interfaces:
DynamicValueCompiler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarray(int length) Construct an Array from elements on stack.voidhash(int length) Construct a Hash from elements on stack.voidpushDRegexp(Runnable callback, RegexpOptions options, int arity) Build a dynamic regexp.
-
Field Details
-
compiler
-
-
Constructor Details
-
NormalDynamicValueCompiler
-
-
Method Details
-
pushDRegexp
Description copied from interface:DynamicValueCompilerBuild 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.
- Specified by:
pushDRegexpin interfaceDynamicValueCompileroptions- options for the regexparity- number of Strings passed in
-
array
public void array(int length) Description copied from interface:DynamicValueCompilerConstruct an Array from elements on stack. Stack required: all elements of array- Specified by:
arrayin interfaceDynamicValueCompiler- Parameters:
length- number of elements
-
hash
public void hash(int length) Description copied from interface:DynamicValueCompilerConstruct a Hash from elements on stack. Stack required: context, all elements of hash- Specified by:
hashin interfaceDynamicValueCompiler- Parameters:
length- number of element pairs
-