Codota Logo
Binder.dropAll
Code IndexAdd Codota 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)

  • Common ways to obtain Binder
private void myMethod () {
Binder b =
  • Codota IconMethodType start;Binder.from(start)
  • Codota IconClass returnType;Class[] argTypes;Object[] values;Binder.from(returnType, Throwable.class, argTypes).drop(int2, count).insert(int1, values)
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getSystemService (Context)
  • putExtra (Intent)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now