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

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

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

origin: com.headius/invokebinder

/**
 * Terminate this binder by looking up the named virtual method on the
 * first argument's type. Perform the actual method lookup using the given
 * Lookup object. If the lookup fails, a RuntimeException will be raised,
 * containing the actual reason. This method is for convenience in (for
 * example) field declarations, where checked exceptions noise up code
 * that can't recover anyway.
 *
 * Use this in situations where you would not expect your library to be
 * usable if the target method can't be acquired.
 *
 * @param lookup the Lookup to use for handle lookups
 * @param name   the name of the target virtual method
 * @return a SmartHandle with this binder's starting signature, bound
 * to the target method
 */
public SmartHandle invokeVirtualQuiet(Lookup lookup, String name) {
  return new SmartHandle(start, binder.invokeVirtualQuiet(lookup, name));
}
origin: org.jruby/jruby-complete

private MethodHandle bindToFail() {
  MethodHandle target;
  setTarget(target = prepareBinder(false).invokeVirtualQuiet(LOOKUP, "fail"));
  return target;
}
origin: org.jruby/jruby-core

private MethodHandle bindToFail() {
  MethodHandle target;
  setTarget(target = prepareBinder(false).invokeVirtualQuiet(LOOKUP, "fail"));
  return target;
}
origin: org.jruby/jruby-complete

public CallSite bootstrap(MethodHandles.Lookup lookup) {
  MethodHandle handle = prepareBinder()
      .insert(0, this)
      .invokeVirtualQuiet(lookup, "construct");
  setTarget(handle);
  return this;
}
origin: org.jruby/jruby-complete

private MethodHandle SMFC() {
  if (_SMFC != null) return _SMFC;
  return _SMFC = Binder.from(type())
      .insert(0, this)
      .invokeVirtualQuiet(Bootstrap.LOOKUP, "searchModuleForConst");
}
origin: org.jruby/jruby-complete

private MethodHandle ISC() {
  if (_ISC != null) return _ISC;
  return _ISC = Binder.from(type())
      .insert(0, this)
      .invokeVirtualQuiet(Bootstrap.LOOKUP, "inheritanceSearchConst");
}
origin: org.jruby/jruby-core

  private MethodHandle noCacheISC() {
    if (_noCacheISC != null) return _noCacheISC;
    return _noCacheISC = Binder.from(type())
        .insert(0, this)
        .invokeVirtualQuiet(Bootstrap.LOOKUP, "noCacheInheritanceSearchConst");
  }
}
origin: org.jruby/jruby-core

private MethodHandle noCacheSMFC() {
  if (_noCacheSMFC != null) return _noCacheSMFC;
  return _noCacheSMFC = Binder.from(type())
      .insert(0, this)
      .invokeVirtualQuiet(Bootstrap.LOOKUP, "noCacheSearchModuleForConst");
}
origin: com.headius/invokebinder

/**
 * Process the incoming arguments by calling the given method on the first
 * argument, inserting the result as the first argument.
 *
 * @param lookup the java.lang.invoke.MethodHandles.Lookup to use
 * @param method the method to invoke on the first argument
 * @return a new Binder
 */
public Binder foldVirtual(MethodHandles.Lookup lookup, String method) {
  return fold(Binder.from(type()).invokeVirtualQuiet(lookup, method));
}
origin: org.jruby/jruby-complete

private MethodHandle noCacheSMFC() {
  if (_noCacheSMFC != null) return _noCacheSMFC;
  return _noCacheSMFC = Binder.from(type())
      .insert(0, this)
      .invokeVirtualQuiet(Bootstrap.LOOKUP, "noCacheSearchModuleForConst");
}
origin: org.jruby/jruby-complete

  private MethodHandle noCacheISC() {
    if (_noCacheISC != null) return _noCacheISC;
    return _noCacheISC = Binder.from(type())
        .insert(0, this)
        .invokeVirtualQuiet(Bootstrap.LOOKUP, "noCacheInheritanceSearchConst");
  }
}
origin: org.jruby/jruby-core

private MethodHandle ISC() {
  if (_ISC != null) return _ISC;
  return _ISC = Binder.from(type())
      .insert(0, this)
      .invokeVirtualQuiet(Bootstrap.LOOKUP, "inheritanceSearchConst");
}
origin: org.jruby/jruby-core

private MethodHandle SMFC() {
  if (_SMFC != null) return _SMFC;
  return _SMFC = Binder.from(type())
      .insert(0, this)
      .invokeVirtualQuiet(Bootstrap.LOOKUP, "searchModuleForConst");
}
origin: org.jruby/jruby-core

public CallSite bootstrap(MethodHandles.Lookup lookup) {
  MethodHandle handle = prepareBinder()
      .insert(0, this)
      .invokeVirtualQuiet(lookup, "construct");
  setTarget(handle);
  return this;
}
origin: org.jruby/jruby-complete

public IsTrueSite() {
  super(TYPE);
  setTarget(Binder.from(TYPE.insertParameterTypes(0, IsTrueSite.class)).invokeVirtualQuiet(LOOKUP, "init").bindTo(this));
}
origin: org.jruby/jruby-complete

public static CallSite constLookup(MethodHandles.Lookup lookup, String searchType, MethodType type, String constName, int publicOnly, int callConstMissing) {
  ConstantLookupSite site = new ConstantLookupSite(type, constName, publicOnly == 0 ? false : true, callConstMissing == 0 ? false : true);
  MethodHandle handle = Binder
      .from(lookup, type)
      .insert(0, site)
      .invokeVirtualQuiet(lookup, searchType);
  site.setTarget(handle);
  return site;
}
origin: org.jruby/jruby-core

public static CallSite constLookup(MethodHandles.Lookup lookup, String searchType, MethodType type, String constName, int publicOnly, int callConstMissing) {
  ConstantLookupSite site = new ConstantLookupSite(type, constName, publicOnly == 0 ? false : true, callConstMissing == 0 ? false : true);
  MethodHandle handle = Binder
      .from(lookup, type)
      .insert(0, site)
      .invokeVirtualQuiet(lookup, searchType);
  site.setTarget(handle);
  return site;
}
origin: org.jruby/jruby-complete

public IsNilSite() {
  super(TYPE);
  setTarget(Binder.from(TYPE.insertParameterTypes(0, IsNilSite.class)).invokeVirtualQuiet(LOOKUP, "init").bindTo(this));
}
origin: org.jruby/jruby-core

public IsTrueSite() {
  super(TYPE);
  setTarget(Binder.from(TYPE.insertParameterTypes(0, IsTrueSite.class)).invokeVirtualQuiet(LOOKUP, "init").bindTo(this));
}
origin: org.jruby/jruby-core

public IsNilSite() {
  super(TYPE);
  setTarget(Binder.from(TYPE.insertParameterTypes(0, IsNilSite.class)).invokeVirtualQuiet(LOOKUP, "init").bindTo(this));
}
com.headius.invokebinderBinderinvokeVirtualQuiet

Javadoc

Apply the chain of transforms and bind them to a virtual 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,
  • invokeStaticQuiet,
  • tryFinally,
  • nop,
  • type,
  • append,
  • foldVoid,
  • identity

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
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