Interface DynamicValueCompiler

All Known Implementing Classes:
IndyDynamicValueCompiler, NormalDynamicValueCompiler

public interface DynamicValueCompiler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    array(int length)
    Construct an Array from elements on stack.
    void
    hash(int length)
    Construct a Hash from elements on stack.
    void
    pushDRegexp(Runnable callback, RegexpOptions options, int arity)
    Build a dynamic regexp.
  • Method Details

    • pushDRegexp

      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 - options for the regexp
      arity - number of Strings passed in
    • array

      void array(int length)
      Construct an Array from elements on stack. Stack required: all elements of array
      Parameters:
      length - number of elements
    • hash

      void hash(int length)
      Construct a Hash from elements on stack. Stack required: context, all elements of hash
      Parameters:
      length - number of element pairs