Tabnine Logo
Binder.dropAll
Code IndexAdd Tabnine to your IDE (free)

How to use
dropAll
method
in
com.headius.invokebinder.Binder

Best Java code snippets using com.headius.invokebinder.Binder.dropAll (Showing top 6 results out of 315)

origin: org.jruby/jruby-core

public static RubyString frozenString(MutableCallSite site, ByteList value, int cr, String file, int line, ThreadContext context) throws Throwable {
  RubyString frozen = IRRuntimeHelpers.newFrozenString(context, value, cr, file, line);
  MethodHandle handle = Binder.from(RubyString.class, ThreadContext.class)
      .dropAll()
      .constant(frozen);
  site.setTarget(handle);
  return frozen;
}
origin: org.jruby/jruby-complete

public static RubyString frozenString(MutableCallSite site, ByteList value, int cr, String file, int line, ThreadContext context) throws Throwable {
  RubyString frozen = IRRuntimeHelpers.newFrozenString(context, value, cr, file, line);
  MethodHandle handle = Binder.from(RubyString.class, ThreadContext.class)
      .dropAll()
      .constant(frozen);
  site.setTarget(handle);
  return frozen;
}
origin: org.jruby/jruby-complete

public IRubyObject cache(IRubyObject t) {
  MethodHandle constant = null;
  if (t instanceof Constantizable) {
    constant = (MethodHandle) ((Constantizable) t).constant();
  }
  if (constant == null) {
    constant = Binder.from(type())
        .dropAll()
        .constant(t);
  }
  setTarget(constant);
  return t;
}
origin: org.jruby/jruby-core

public IRubyObject cache(IRubyObject t) {
  MethodHandle constant = null;
  if (t instanceof Constantizable) {
    constant = (MethodHandle) ((Constantizable) t).constant();
  }
  if (constant == null) {
    constant = Binder.from(type())
        .dropAll()
        .constant(t);
  }
  setTarget(constant);
  return t;
}
origin: org.jruby/jruby-complete

  public RubyRegexp construct(ThreadContext context, RubyString[] pieces) throws Throwable {
    RubyString pattern = RubyRegexp.preprocessDRegexp(context.runtime, pieces, options);
    RubyRegexp re = RubyRegexp.newDRegexp(context.runtime, pattern, options);
    re.setLiteral();

    if (options.isOnce()) {
      if (cache != null) {
        // we cached a value, so re-call this site's target handle to get it
        return cache;
      }

      // we don't care if this succeeds, just that it only gets set once
      UPDATER.compareAndSet(this, null, cache);

      setTarget(Binder.from(type()).dropAll().constant(cache));
    }

    return re;
  }
}
origin: org.jruby/jruby-core

  public RubyRegexp construct(ThreadContext context, RubyString[] pieces) throws Throwable {
    RubyString pattern = RubyRegexp.preprocessDRegexp(context.runtime, pieces, options);
    RubyRegexp re = RubyRegexp.newDRegexp(context.runtime, pattern, options);
    re.setLiteral();

    if (options.isOnce()) {
      if (cache != null) {
        // we cached a value, so re-call this site's target handle to get it
        return cache;
      }

      // we don't care if this succeeds, just that it only gets set once
      UPDATER.compareAndSet(this, null, cache);

      setTarget(Binder.from(type()).dropAll().constant(cache));
    }

    return re;
  }
}
com.headius.invokebinderBinderdropAll

Javadoc

Drop all arguments from this handle chain

Popular methods of Binder

  • from
    Construct a new Binder, starting from a given MethodType.
  • insert
    Insert at the given index the given argument value(s).
  • invoke
    Apply the chain of transforms and bind them to a static method specified using the end signature plu
  • collect
    Box all incoming arguments from the given position onward into the given array type.
  • constant
    Apply the tranforms, binding them to a constant value that will propagate back through the chain. Th
  • drop
    Drop from the given index a number of arguments.
  • filter
    Filter incoming arguments, from the given index, replacing each with the result of calling the assoc
  • fold
    Process the incoming arguments using the given handle, inserting the result as the first argument.
  • invokeVirtual
    Apply the chain of transforms and bind them to a virtual method specified using the end signature pl
  • permute
    Permute the incoming arguments to a new sequence specified by the given values. Arguments may be dup
  • cast
    Cast the incoming arguments to the given MethodType. The casts applied are equivalent to those in Me
  • filterReturn
    Filter return value, using a function that produces the current return type from another type. The n
  • cast,
  • filterReturn,
  • invokeStaticQuiet,
  • invokeVirtualQuiet,
  • tryFinally,
  • nop,
  • type,
  • append,
  • foldVoid,
  • identity

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JCheckBox (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now