Codota Logo
Binder.invokeStaticQuiet
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using com.headius.invokebinder.Binder.invokeStaticQuiet (Showing top 20 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: com.ning.billing/killbill-osgi-bundles-jruby

public static CallSite string(Lookup lookup, String name, MethodType type, String value, int encoding) {
  MethodHandle handle = Binder
      .from(IRubyObject.class, ThreadContext.class)
      .insert(0, new Class[]{String.class, int.class}, value, encoding)
      .invokeStaticQuiet(MethodHandles.lookup(), Bootstrap.class, "string");
  CallSite site = new ConstantCallSite(handle);
  return site;
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

public static CallSite inheritanceSearchConst(Lookup lookup, String name, MethodType type) {
  MutableCallSite site = new MutableCallSite(type);
  String[] bits = name.split(":");
  String constName = bits[1];
  MethodHandle handle = Binder
      .from(type)
      .insert(0, site, constName)
      .invokeStaticQuiet(MethodHandles.lookup(), Bootstrap.class, "inheritanceSearchConst");
  site.setTarget(handle);
  return site;
}
origin: org.jruby/jruby-complete

public static CallSite kwargsHash(Lookup lookup, String name, MethodType type) {
  MethodHandle handle = Binder
      .from(lookup, type)
      .collect(2, IRubyObject[].class)
      .invokeStaticQuiet(LOOKUP, Bootstrap.class, "kwargsHash");
  CallSite site = new ConstantCallSite(handle);
  return site;
}
origin: org.jruby/jruby-complete

public static CallSite array(Lookup lookup, String name, MethodType type) {
  MethodHandle handle = Binder
      .from(type)
      .collect(1, IRubyObject[].class)
      .invokeStaticQuiet(LOOKUP, Bootstrap.class, "array");
  CallSite site = new ConstantCallSite(handle);
  return site;
}
origin: com.headius/invokebinder

/**
 * Process the incoming arguments by calling the given static method on the
 * given class, inserting the result as the first argument.
 *
 * @param lookup the java.lang.invoke.MethodHandles.Lookup to use
 * @param target the class on which the method is defined
 * @param method the method to invoke on the first argument
 * @return a new Binder
 */
public Binder foldStatic(MethodHandles.Lookup lookup, Class<?> target, String method) {
  return fold(Binder.from(type()).invokeStaticQuiet(lookup, target, method));
}
origin: org.jruby/jruby-core

public static CallSite kwargsHash(Lookup lookup, String name, MethodType type) {
  MethodHandle handle = Binder
      .from(lookup, type)
      .collect(2, IRubyObject[].class)
      .invokeStaticQuiet(LOOKUP, Bootstrap.class, "kwargsHash");
  CallSite site = new ConstantCallSite(handle);
  return site;
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public static CallSite symbol(Lookup lookup, String name, MethodType type, String sym) {
  MutableCallSite site = new MutableCallSite(type);
  MethodHandle handle = Binder
      .from(IRubyObject.class, ThreadContext.class)
      .insert(0, site, sym)
      .invokeStaticQuiet(MethodHandles.lookup(), Bootstrap.class, "symbol");
  site.setTarget(handle);
  return site;
}
origin: org.jruby/jruby-complete

public static CallSite hash(Lookup lookup, String name, MethodType type) {
  MethodHandle handle = Binder
      .from(lookup, type)
      .collect(1, IRubyObject[].class)
      .invokeStaticQuiet(LOOKUP, Bootstrap.class, "hash");
  CallSite site = new ConstantCallSite(handle);
  return site;
}
origin: org.jruby/jruby-core

public static CallSite array(Lookup lookup, String name, MethodType type) {
  MethodHandle handle = Binder
      .from(type)
      .collect(1, IRubyObject[].class)
      .invokeStaticQuiet(LOOKUP, Bootstrap.class, "array");
  CallSite site = new ConstantCallSite(handle);
  return site;
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public static CallSite fixnum(Lookup lookup, String name, MethodType type, long value) {
  MutableCallSite site = new MutableCallSite(type);
  MethodHandle handle = Binder
      .from(IRubyObject.class, ThreadContext.class)
      .insert(0, site, value)
      .cast(IRubyObject.class, MutableCallSite.class, long.class, ThreadContext.class)
      .invokeStaticQuiet(MethodHandles.lookup(), Bootstrap.class, "fixnum");
  site.setTarget(handle);
  return site;
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

public static CallSite flote(Lookup lookup, String name, MethodType type, double value) {
  MutableCallSite site = new MutableCallSite(type);
  MethodHandle handle = Binder
      .from(IRubyObject.class, ThreadContext.class)
      .insert(0, site, value)
      .cast(IRubyObject.class, MutableCallSite.class, double.class, ThreadContext.class)
      .invokeStaticQuiet(MethodHandles.lookup(), Bootstrap.class, "flote");
  site.setTarget(handle);
  return site;
}
origin: org.jruby/jruby-complete

public static CallSite contextValue(Lookup lookup, String name, MethodType type) {
  MutableCallSite site = new MutableCallSite(type);
  site.setTarget(Binder.from(type).append(site).invokeStaticQuiet(lookup, Bootstrap.class, name));
  return site;
}
origin: org.jruby/jruby-complete

public static CallSite contextValueString(Lookup lookup, String name, MethodType type, String str) {
  MutableCallSite site = new MutableCallSite(type);
  site.setTarget(Binder.from(type).append(site, str).invokeStaticQuiet(lookup, Bootstrap.class, name));
  return site;
}
origin: org.jruby/jruby-core

public static CallSite contextValueString(Lookup lookup, String name, MethodType type, String str) {
  MutableCallSite site = new MutableCallSite(type);
  site.setTarget(Binder.from(type).append(site, str).invokeStaticQuiet(lookup, Bootstrap.class, name));
  return site;
}
origin: org.jruby/jruby-complete

public boolean init(IRubyObject obj) {
  IRubyObject nil = obj.getRuntime().getNil();
  setTarget(
      Binder.from(type())
          .insert(0, RubyNil.class, nil)
          .invokeStaticQuiet(LOOKUP, IsNilSite.class, "isNil")
  );
  return nil == obj;
}
origin: org.jruby/jruby-core

public static CallSite fstring(Lookup lookup, String name, MethodType type, String value, String encodingName, int cr, String file, int line) {
  MutableCallSite site = new MutableCallSite(type);
  Binder binder = Binder
      .from(RubyString.class, ThreadContext.class)
      .insert(0, arrayOf(MutableCallSite.class, ByteList.class, int.class, String.class, int.class), site, bytelist(value, encodingName), cr, file, line);
  site.setTarget(binder.invokeStaticQuiet(lookup, Bootstrap.class, "frozenString"));
  return site;
}
origin: org.jruby/jruby-core

public static CallSite string(Lookup lookup, String name, MethodType type, String value, String encodingName, int cr) {
  MutableCallSite site = new MutableCallSite(type);
  Binder binder = Binder
      .from(RubyString.class, ThreadContext.class)
      .insert(0, arrayOf(MutableCallSite.class, ByteList.class, int.class), site, bytelist(value, encodingName), cr);
  site.setTarget(binder.invokeStaticQuiet(lookup, Bootstrap.class, "string"));
  return site;
}
origin: org.jruby/jruby-complete

public static CallSite fstring(Lookup lookup, String name, MethodType type, String value, String encodingName, int cr, String file, int line) {
  MutableCallSite site = new MutableCallSite(type);
  Binder binder = Binder
      .from(RubyString.class, ThreadContext.class)
      .insert(0, arrayOf(MutableCallSite.class, ByteList.class, int.class, String.class, int.class), site, bytelist(value, encodingName), cr, file, line);
  site.setTarget(binder.invokeStaticQuiet(lookup, Bootstrap.class, "frozenString"));
  return site;
}
origin: org.jruby/jruby-complete

public static CallSite string(Lookup lookup, String name, MethodType type, String value, String encodingName, int cr) {
  MutableCallSite site = new MutableCallSite(type);
  Binder binder = Binder
      .from(RubyString.class, ThreadContext.class)
      .insert(0, arrayOf(MutableCallSite.class, ByteList.class, int.class), site, bytelist(value, encodingName), cr);
  site.setTarget(binder.invokeStaticQuiet(lookup, Bootstrap.class, "string"));
  return site;
}
origin: org.jruby/jruby-complete

public boolean init(IRubyObject obj) {
  Ruby runtime = obj.getRuntime();
  IRubyObject nil = runtime.getNil();
  IRubyObject fals = runtime.getFalse();
  setTarget(
      Binder.from(type())
          .insert(0, RubyBoolean.False.class, fals)
          .insert(0, RubyNil.class, nil)
          .invokeStaticQuiet(LOOKUP, IsTrueSite.class, "isTruthy")
  );
  return nil != obj && fals != obj;
}
com.headius.invokebinderBinderinvokeStaticQuiet

Javadoc

Apply the chain of transforms and bind them to a static method specified using the end signature plus the given class and name. The method will be retrieved using the given Lookup and must match the end signature exactly. If the final handle's type does not exactly match the initial type for this Binder, an additional cast will be attempted. This version is "quiet" in that it throws an unchecked InvalidTransformException if the target method does not exist or is inaccessible.

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,
  • invokeVirtualQuiet,
  • tryFinally,
  • nop,
  • type,
  • append,
  • foldVoid,
  • identity

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
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