Tabnine Logo
com.headius.invokebinder
Code IndexAdd Tabnine to your IDE (free)

How to use com.headius.invokebinder

Best Java code snippets using com.headius.invokebinder (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);
IBinder retbinder = (IBinder) getService.invoke(serviceManagerObject, "phone");
origin: com.headius/invokebinder

/**
 * Insert an argument into the argument list at the given index with the
 * given name and value.
 *
 * @param index the index at which to insert the argument
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the insert applied
 */
public SmartBinder insert(int index, String name, byte value) {
  return new SmartBinder(this, signature().insertArg(index, name, byte.class), binder.insert(index, value));
}
origin: com.headius/invokebinder

/**
 * Prepend the given argument to the argument list, assigning it the
 * given name.
 *
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the prepend applied
 */
public SmartBinder prepend(String name, byte value) {
  return new SmartBinder(this, signature().prependArg(name, byte.class), binder.prepend(value));
}
origin: com.headius/invokebinder

/**
 * Append the given argument to the argument list, assigning it the
 * given name.
 *
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the append applied
 */
public SmartBinder append(String name, int value) {
  return new SmartBinder(this, signature().appendArg(name, int.class), binder.append(value));
}
origin: com.headius/invokebinder

/**
 * Cast the incoming arguments to the types in the given signature. The
 * argument count must match, but the names in the target signature are
 * ignored.
 *
 * @param target the Signature to which arguments should be cast
 * @return a new SmartBinder with the cast applied
 */
public SmartBinder cast(Signature target) {
  return new SmartBinder(target, binder.cast(target.type()));
}
origin: com.headius/invokebinder

/**
 * Prepend the given arguments to the argument list, assigning them the
 * given name.
 *
 * @param names  the names of the new arguments
 * @param types  the types to use in the new signature
 * @param values the values of the new arguments
 * @return a new SmartBinder with the prepend applied
 */
public SmartBinder prepend(String[] names, Class<?>[] types, Object... values) {
  return new SmartBinder(this, signature().prependArgs(names, types), binder.prepend(types, values));
}
origin: com.headius/invokebinder

/**
 * Spread a trailing array into the specified argument types.
 *
 * @param spreadNames the names for the spread out arguments
 * @param spreadTypes the types as which to spread the incoming array
 * @return a new SmartBinder with the spread applied
 */
public SmartBinder spread(String[] spreadNames, Class<?>... spreadTypes) {
  return new SmartBinder(this, signature().spread(spreadNames, spreadTypes), binder.spread(spreadTypes));
}
origin: com.headius/invokebinder

/**
 * Drop the last N arguments.
 *
 * @param count the count of arguments to drop
 * @return a new SmartBinder with the drop applied
 */
public SmartBinder dropLast(int count) {
  return new SmartBinder(this, signature().dropLast(count), binder.dropLast(count));
}
origin: com.headius/invokebinder

/**
 * Insert an argument into the argument list at the given index with the
 * given name and value.
 *
 * @param index the index at which to insert the argument
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the insert applied
 */
public SmartBinder insert(int index, String name, short value) {
  return new SmartBinder(this, signature().insertArg(index, name, short.class), binder.insert(index, value));
}
origin: com.headius/invokebinder

/**
 * Prepend the given argument to the argument list, assigning it the
 * given name.
 *
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the prepend applied
 */
public SmartBinder prepend(String name, short value) {
  return new SmartBinder(this, signature().prependArg(name, short.class), binder.prepend(value));
}
origin: com.headius/invokebinder

/**
 * Append the given argument to the argument list, assigning it the
 * given name.
 *
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the append applied
 */
public SmartBinder append(String name, float value) {
  return new SmartBinder(this, signature().appendArg(name, float.class), binder.append(value));
}
origin: stackoverflow.com

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

/**
 * Insert an argument into the argument list at the given index with the
 * given name and value.
 *
 * @param index the index at which to insert the argument
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the insert applied
 */
public SmartBinder insert(int index, String name, char value) {
  return new SmartBinder(this, signature().insertArg(index, name, char.class), binder.insert(index, value));
}
origin: com.headius/invokebinder

/**
 * Prepend the given argument to the argument list, assigning it the
 * given name.
 *
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the prepend applied
 */
public SmartBinder prepend(String name, int value) {
  return new SmartBinder(this, signature().prependArg(name, int.class), binder.prepend(value));
}
origin: com.headius/invokebinder

/**
 * Append the given argument to the argument list, assigning it the
 * given name.
 *
 * @param name  the name of the new argument
 * @param type  the type to use in the new signature
 * @param value the value of the new argument
 * @return a new SmartBinder with the append applied
 */
public SmartBinder append(String name, Class<?> type, Object value) {
  return new SmartBinder(this, signature().appendArg(name, type), binder.append(new Class<?>[]{type}, value));
}
origin: com.headius/invokebinder

/**
 * Insert an argument into the argument list at the given index with the
 * given name and value.
 *
 * @param index the index at which to insert the argument
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the insert applied
 */
public SmartBinder insert(int index, String name, long value) {
  return new SmartBinder(this, signature().insertArg(index, name, long.class), binder.insert(index, value));
}
origin: com.headius/invokebinder

/**
 * Prepend the given argument to the argument list, assigning it the
 * given name.
 *
 * @param name  the name of the new argument
 * @param type  the type to use in the new signature
 * @param value the value of the new argument
 * @return a new SmartBinder with the prepend applied
 */
public SmartBinder prepend(String name, Class<?> type, Object value) {
  return new SmartBinder(this, signature().prependArg(name, type), binder.prepend(type, value));
}
origin: com.headius/invokebinder

/**
 * Insert an argument into the argument list at the given index with the
 * given name and value.
 *
 * @param index the index at which to insert the argument
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the insert applied
 */
public SmartBinder insert(int index, String name, float value) {
  return new SmartBinder(this, signature().insertArg(index, name, float.class), binder.insert(index, value));
}
origin: com.headius/invokebinder

/**
 * Prepend the given argument to the argument list, assigning it the
 * given name.
 *
 * @param name  the name of the new argument
 * @param value the value of the new argument
 * @return a new SmartBinder with the prepend applied
 */
public SmartBinder prepend(String name, double value) {
  return new SmartBinder(this, signature().prependArg(name, double.class), binder.prepend(value));
}
com.headius.invokebinder

Most used classes

  • Binder
    The Binder class provides a DSL for building a chain of MethodHandles using various of the adaptatio
  • Signature
    Signature represents a series of method arguments plus their symbolic names. In order to make it eas
  • SmartBinder
    Maintains both a Binder, for building a series of transformations, and a current Signature that maps
  • SmartHandle
    A tuple of a Signature and a java.lang.invoke.MethodHandle, providing features of both plus a number
  • InvalidTransformException
    Exception raised when a Binder transform is not valid for the current signature.
  • Cast,
  • Catch,
  • Collect$Permutes,
  • Collect,
  • Convert,
  • Drop,
  • Filter,
  • FilterReturn,
  • Fold,
  • Insert,
  • Permute,
  • Spread,
  • Transform,
  • TryFinally
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