Tabnine Logo
Binder.invokeStaticQuiet
Code IndexAdd Tabnine 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)

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 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.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: 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 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 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

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • JOptionPane (javax.swing)
  • 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