Tabnine Logo
Binder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.headius.invokebinder.Binder
constructor

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

origin: stackoverflow.com

WakeLock(int flags, String tag) {
   mFlags = flags;
   mTag = tag;
   mToken = new Binder();
 }
origin: stackoverflow.com

Binder tmpBinder = new Binder();
tmpBinder.attachInterface(null, "fake");
serviceManagerObject = tempInterfaceMethod.invoke(null, tmpBinder);
origin: stackoverflow.com

    "asInterface", IBinder.class);
Binder tmpBinder = new Binder();
tmpBinder.attachInterface(null, "fake");
origin: com.headius/invokebinder

/**
 * Construct a new Binder, starting from a given MethodType.
 *
 * @param start the starting MethodType, for calls entering the eventual chain
 * @return the Binder object
 */
public static Binder from(MethodType start) {
  return new Binder(start);
}
origin: com.headius/invokebinder

/**
 * Construct a new Binder, starting from a given MethodType.
 *
 * @param lookup the Lookup context to use for direct handles
 * @param start  the starting MethodType, for calls entering the eventual chain
 * @return the Binder object
 */
public static Binder from(MethodHandles.Lookup lookup, MethodType start) {
  return new Binder(lookup, start);
}
origin: com.headius/invokebinder

/**
 * Construct a new Binder, starting from a given invokebinder.
 *
 * @param start the starting invokebinder; the new one will start with the current endpoint type
 *              of the given invokebinder
 * @return the Binder object
 */
public static Binder from(Binder start) {
  return new Binder(start);
}
origin: com.headius/invokebinder

/**
 * Insert at the given index the given float value.
 *
 * @param index the index at which to insert the argument value
 * @param value the value to insert
 * @return a new Binder
 */
public Binder insert(int index, float value) {
  return new Binder(this, new Insert(index, value));
}
origin: com.headius/invokebinder

/**
 * Insert at the given index the given argument value(s).
 *
 * @param index  the index at which to insert the argument value
 * @param values the value(s) to insert
 * @return a new Binder
 */
public Binder insert(int index, Object... values) {
  return new Binder(this, new Insert(index, values));
}
origin: com.headius/invokebinder

/**
 * Insert at the given index the given argument value(s).
 *
 * @param index  the index at which to insert the argument value
 * @param types  the actual types to use, rather than getClass
 * @param values the value(s) to insert
 * @return a new Binder
 */
public Binder insert(int index, Class<?>[] types, Object... values) {
  return new Binder(this, new Insert(index, types, values));
}
origin: com.headius/invokebinder

/**
 * Prepend to the argument list the given byte value.
 *
 * @param value the value to prepend
 * @return a new Binder
 */
public Binder prepend(byte value) {
  return new Binder(this, new Insert(0, value));
}
origin: com.headius/invokebinder

/**
 * Catch the given exception type from the downstream chain and handle it with the
 * given function.
 *
 * @param throwable the exception type to catch
 * @param function  the function to use for handling the exception
 * @return a new Binder
 */
public Binder catchException(Class<? extends Throwable> throwable, MethodHandle function) {
  return new Binder(this, new Catch(throwable, function));
}
origin: com.headius/invokebinder

/**
 * Prepend to the argument list the given float value.
 *
 * @param value the value to prepend
 * @return a new Binder
 */
public Binder prepend(float value) {
  return new Binder(this, new Insert(0, value));
}
origin: com.headius/invokebinder

/**
 * Cast the incoming arguments to the given MethodType. The casts
 * applied are equivalent to those in MethodHandle.explicitCastArguments(MethodType).
 *
 * @param returnType the target return type
 * @param firstType  the first argument type, usually a target type
 * @param restTypes  the remaining target argument types
 * @return a new Binder
 */
public Binder castVirtual(Class<?> returnType, Class<?> firstType, Class<?>... restTypes) {
  return new Binder(this, new Cast(type()), MethodType.methodType(returnType, firstType, restTypes));
}
origin: com.headius/invokebinder

/**
 * Convert the incoming arguments to the given MethodType. The conversions
 * applied are equivalent to those in MethodHandle.asType(MethodType).
 *
 * @param target the target MethodType
 * @return a new Binder
 */
public Binder convert(MethodType target) {
  return new Binder(this, new Convert(type()), target);
}
origin: com.headius/invokebinder

/**
 * Box a range of incoming arguments into the given array type.
 *
 * @param index the index from which to start boxing args
 * @param count the count of arguments to box
 * @param type  the array type into which the args will be boxed
 * @return a new Binder
 */
public Binder collect(int index, int count, Class<?> type) {
  return new Binder(this, new Collect(type(), index, count, type));
}
origin: com.headius/invokebinder

/**
 * Box all incoming arguments from the given position onward into the given array type.
 *
 * @param index the index from which to start boxing args
 * @param type  the array type into which the args will be boxed
 * @return a new Binder
 */
public Binder collect(int index, Class<?> type) {
  return new Binder(this, new Collect(type(), index, type));
}
origin: com.headius/invokebinder

/**
 * Append to the argument list the given short value.
 *
 * @param value the value to append
 * @return a new Binder
 */
public Binder append(short value) {
  return new Binder(this, new Insert(type().parameterCount(), value));
}
origin: com.headius/invokebinder

/**
 * Append to the argument list the given float value.
 *
 * @param value the value to append
 * @return a new Binder
 */
public Binder append(float value) {
  return new Binder(this, new Insert(type().parameterCount(), value));
}
origin: com.headius/invokebinder

/**
 * Append to the argument list the given double value.
 *
 * @param value the value to append
 * @return a new Binder
 */
public Binder append(double value) {
  return new Binder(this, new Insert(type().parameterCount(), value));
}
origin: com.headius/invokebinder

/**
 * Append to the argument list the given argument value with the specified type.
 *
 * @param type  the actual type to use, rather than getClass
 * @param value the value to append
 * @return a new Binder
 */
public Binder append(Class<?> type, Object value) {
  return new Binder(this, new Insert(type().parameterCount(), new Class[]{type}, value));
}
com.headius.invokebinderBinder<init>

Javadoc

Construct a new Binder using the given invokebinder.

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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top Vim plugins
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