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

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

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

origin: org.jruby/jruby-complete

public static void checkpointFallback(MutableCallSite site, ThreadContext context) throws Throwable {
  Ruby runtime = context.runtime;
  Invalidator invalidator = runtime.getCheckpointInvalidator();
  MethodHandle target = Binder
      .from(void.class, ThreadContext.class)
      .nop();
  MethodHandle fallback = lookup().findStatic(Bootstrap.class, "checkpointFallback", methodType(void.class, MutableCallSite.class, ThreadContext.class));
  fallback = fallback.bindTo(site);
  target = ((SwitchPoint)invalidator.getData()).guardWithTest(target, fallback);
  site.setTarget(target);
}
origin: org.jruby/jruby-core

public static void checkpointFallback(MutableCallSite site, ThreadContext context) throws Throwable {
  Ruby runtime = context.runtime;
  Invalidator invalidator = runtime.getCheckpointInvalidator();
  MethodHandle target = Binder
      .from(void.class, ThreadContext.class)
      .nop();
  MethodHandle fallback = lookup().findStatic(Bootstrap.class, "checkpointFallback", methodType(void.class, MutableCallSite.class, ThreadContext.class));
  fallback = fallback.bindTo(site);
  target = ((SwitchPoint)invalidator.getData()).guardWithTest(target, fallback);
  site.setTarget(target);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

public static void checkpointFallback(MutableCallSite site, ThreadContext context) throws Throwable {
  Ruby runtime = context.runtime;
  Invalidator invalidator = runtime.getCheckpointInvalidator();
  
  MethodHandle target = Binder
      .from(void.class, ThreadContext.class)
      .nop();
  MethodHandle fallback = lookup().findStatic(InvokeDynamicSupport.class, "checkpointFallback", methodType(void.class, MutableCallSite.class, ThreadContext.class));
  fallback = fallback.bindTo(site);
  
  target = ((SwitchPoint)invalidator.getData()).guardWithTest(target, fallback);
  
  site.setTarget(target);
}

origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public static void checkpointFallback(MutableCallSite site, ThreadContext context) throws Throwable {
  Ruby runtime = context.runtime;
  Invalidator invalidator = runtime.getCheckpointInvalidator();
  
  MethodHandle target = Binder
      .from(void.class, ThreadContext.class)
      .nop();
  MethodHandle fallback = lookup().findStatic(InvokeDynamicSupport.class, "checkpointFallback", methodType(void.class, MutableCallSite.class, ThreadContext.class));
  fallback = fallback.bindTo(site);
  
  target = ((SwitchPoint)invalidator.getData()).guardWithTest(target, fallback);
  
  site.setTarget(target);
}

com.headius.invokebinderBindernop

Javadoc

Apply all transforms to an endpoint that does absolutely nothing. Useful for creating exception handlers in void methods that simply ignore the exception.

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

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • 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