Tabnine Logo
Prototype.withFirstParameter
Code IndexAdd Tabnine to your IDE (free)

How to use
withFirstParameter
method
in
com.android.dx.rop.type.Prototype

Best Java code snippets using com.android.dx.rop.type.Prototype.withFirstParameter (Showing top 20 results out of 315)

origin: com.google.android.tools/dx

/**
 * Gets the prototype of this method as either a
 * {@code static} or instance method. In the case of a
 * {@code static} method, this is the same as the raw
 * prototype. In the case of an instance method, this has an
 * appropriately-typed {@code this} argument as the first
 * one.
 *
 * @param isStatic whether the method should be considered static
 * @return {@code non-null;} the method prototype
 */
public final Prototype getPrototype(boolean isStatic) {
  if (isStatic) {
    return prototype;
  } else {
    if (instancePrototype == null) {
      Type thisType = getDefiningClass().getClassType();
      instancePrototype = prototype.withFirstParameter(thisType);
    }
    return instancePrototype;
  }
}
origin: gdpancheng/LoonAndroid3

/**
 * Gets the prototype of this method as either a
 * {@code static} or instance method. In the case of a
 * {@code static} method, this is the same as the raw
 * prototype. In the case of an instance method, this has an
 * appropriately-typed {@code this} argument as the first
 * one.
 *
 * @param isStatic whether the method should be considered static
 * @return {@code non-null;} the method prototype
 */
public final Prototype getPrototype(boolean isStatic) {
  if (isStatic) {
    return prototype;
  } else {
    if (instancePrototype == null) {
      Type thisType = getDefiningClass().getClassType();
      instancePrototype = prototype.withFirstParameter(thisType);
    }
    return instancePrototype;
  }
}
origin: com.google.dexmaker/dexmaker-dx

/**
 * Gets the prototype of this method as either a
 * {@code static} or instance method. In the case of a
 * {@code static} method, this is the same as the raw
 * prototype. In the case of an instance method, this has an
 * appropriately-typed {@code this} argument as the first
 * one.
 *
 * @param isStatic whether the method should be considered static
 * @return {@code non-null;} the method prototype
 */
public final Prototype getPrototype(boolean isStatic) {
  if (isStatic) {
    return prototype;
  } else {
    if (instancePrototype == null) {
      Type thisType = getDefiningClass().getClassType();
      instancePrototype = prototype.withFirstParameter(thisType);
    }
    return instancePrototype;
  }
}
origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Interns an instance, adding to the descriptor as necessary based
 * on the given definer, name, and flags. For example, an init
 * method has an uninitialized object of type {@code definer}
 * as its first argument.
 *
 * @param descriptor {@code non-null;} the descriptor string
 * @param definer {@code non-null;} class the method is defined on
 * @param isStatic whether this is a static method
 * @param isInit whether this is an init method
 * @return {@code non-null;} the interned instance
 */
public static Prototype intern(String descriptor, Type definer,
    boolean isStatic, boolean isInit) {
  Prototype base = intern(descriptor);
  if (isStatic) {
    return base;
  }
  if (isInit) {
    definer = definer.asUninitialized(Integer.MAX_VALUE);
  }
  return base.withFirstParameter(definer);
}
origin: com.google.android.tools/dx

/**
 * Interns an instance, adding to the descriptor as necessary based
 * on the given definer, name, and flags. For example, an init
 * method has an uninitialized object of type {@code definer}
 * as its first argument.
 *
 * @param descriptor {@code non-null;} the descriptor string
 * @param definer {@code non-null;} class the method is defined on
 * @param isStatic whether this is a static method
 * @param isInit whether this is an init method
 * @return {@code non-null;} the interned instance
 */
public static Prototype intern(String descriptor, Type definer,
    boolean isStatic, boolean isInit) {
  Prototype base = intern(descriptor);
  if (isStatic) {
    return base;
  }
  if (isInit) {
    definer = definer.asUninitialized(Integer.MAX_VALUE);
  }
  return base.withFirstParameter(definer);
}
origin: com.android.tools.build/builder

/**
 * Gets the prototype of this method as either a
 * {@code static} or instance method. In the case of a
 * {@code static} method, this is the same as the raw
 * prototype. In the case of an instance method, this has an
 * appropriately-typed {@code this} argument as the first
 * one.
 *
 * @param isStatic whether the method should be considered static
 * @return {@code non-null;} the method prototype
 */
public final Prototype getPrototype(boolean isStatic) {
  if (isStatic) {
    return prototype;
  } else {
    if (instancePrototype == null) {
      Type thisType = getDefiningClass().getClassType();
      instancePrototype = prototype.withFirstParameter(thisType);
    }
    return instancePrototype;
  }
}
origin: nikita36078/J2ME-Loader

/**
 * Interns an instance, adding to the descriptor as necessary based
 * on the given definer, name, and flags. For example, an init
 * method has an uninitialized object of type {@code definer}
 * as its first argument.
 *
 * @param descriptor {@code non-null;} the descriptor string
 * @param definer {@code non-null;} class the method is defined on
 * @param isStatic whether this is a static method
 * @param isInit whether this is an init method
 * @return {@code non-null;} the interned instance
 */
public static Prototype intern(String descriptor, Type definer,
    boolean isStatic, boolean isInit) {
  Prototype base = intern(descriptor);
  if (isStatic) {
    return base;
  }
  if (isInit) {
    definer = definer.asUninitialized(Integer.MAX_VALUE);
  }
  return base.withFirstParameter(definer);
}
origin: dragome/dragome-sdk

/**
 * Interns an instance, adding to the descriptor as necessary based
 * on the given definer, name, and flags. For example, an init
 * method has an uninitialized object of type {@code definer}
 * as its first argument.
 * 
 * @param descriptor {@code non-null;} the descriptor string
 * @param definer {@code non-null;} class the method is defined on
 * @param isStatic whether this is a static method
 * @param isInit whether this is an init method
 * @return {@code non-null;} the interned instance
 */
public static Prototype intern(String descriptor, Type definer,
    boolean isStatic, boolean isInit) {
  Prototype base = intern(descriptor);
  if (isStatic) {
    return base;
  }
  if (isInit) {
    definer = definer.asUninitialized(Integer.MAX_VALUE);
  }
  return base.withFirstParameter(definer);
}
origin: nikita36078/J2ME-Loader

/**
 * Gets the prototype of this method as either a
 * {@code static} or instance method. In the case of a
 * {@code static} method, this is the same as the raw
 * prototype. In the case of an instance method, this has an
 * appropriately-typed {@code this} argument as the first
 * one.
 *
 * @param isStatic whether the method should be considered static
 * @return {@code non-null;} the method prototype
 */
public final Prototype getPrototype(boolean isStatic) {
  if (isStatic) {
    return prototype;
  } else {
    if (instancePrototype == null) {
      Type thisType = getDefiningClass().getClassType();
      instancePrototype = prototype.withFirstParameter(thisType);
    }
    return instancePrototype;
  }
}
origin: dragome/dragome-sdk

/**
 * Gets the prototype of this method as either a
 * {@code static} or instance method. In the case of a
 * {@code static} method, this is the same as the raw
 * prototype. In the case of an instance method, this has an
 * appropriately-typed {@code this} argument as the first
 * one.
 *
 * @param isStatic whether the method should be considered static
 * @return {@code non-null;} the method prototype
 */
public final Prototype getPrototype(boolean isStatic) {
  if (isStatic) {
    return prototype;
  } else {
    if (instancePrototype == null) {
      Type thisType = getDefiningClass().getClassType();
      instancePrototype = prototype.withFirstParameter(thisType);
    }
    return instancePrototype;
  }
}
origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Gets the prototype of this method as either a
 * {@code static} or instance method. In the case of a
 * {@code static} method, this is the same as the raw
 * prototype. In the case of an instance method, this has an
 * appropriately-typed {@code this} argument as the first
 * one.
 *
 * @param isStatic whether the method should be considered static
 * @return {@code non-null;} the method prototype
 */
public final Prototype getPrototype(boolean isStatic) {
  if (isStatic) {
    return prototype;
  } else {
    if (instancePrototype == null) {
      Type thisType = getDefiningClass().getClassType();
      instancePrototype = prototype.withFirstParameter(thisType);
    }
    return instancePrototype;
  }
}
origin: com.android/dx

/**
 * Gets the prototype of this method as either a
 * {@code static} or instance method. In the case of a
 * {@code static} method, this is the same as the raw
 * prototype. In the case of an instance method, this has an
 * appropriately-typed {@code this} argument as the first
 * one.
 *
 * @param isStatic whether the method should be considered static
 * @return {@code non-null;} the method prototype
 */
public final Prototype getPrototype(boolean isStatic) {
  if (isStatic) {
    return prototype;
  } else {
    if (instancePrototype == null) {
      Type thisType = getDefiningClass().getClassType();
      instancePrototype = prototype.withFirstParameter(thisType);
    }
    return instancePrototype;
  }
}
origin: com.android.tools.build/builder

/**
 * Interns an instance, adding to the descriptor as necessary based
 * on the given definer, name, and flags. For example, an init
 * method has an uninitialized object of type {@code definer}
 * as its first argument.
 *
 * @param descriptor {@code non-null;} the descriptor string
 * @param definer {@code non-null;} class the method is defined on
 * @param isStatic whether this is a static method
 * @param isInit whether this is an init method
 * @return {@code non-null;} the interned instance
 */
public static Prototype intern(String descriptor, Type definer,
    boolean isStatic, boolean isInit) {
  Prototype base = intern(descriptor);
  if (isStatic) {
    return base;
  }
  if (isInit) {
    definer = definer.asUninitialized(Integer.MAX_VALUE);
  }
  return base.withFirstParameter(definer);
}
origin: com.android/dx

/**
 * Interns an instance, adding to the descriptor as necessary based
 * on the given definer, name, and flags. For example, an init
 * method has an uninitialized object of type {@code definer}
 * as its first argument.
 *
 * @param descriptor {@code non-null;} the descriptor string
 * @param definer {@code non-null;} class the method is defined on
 * @param isStatic whether this is a static method
 * @param isInit whether this is an init method
 * @return {@code non-null;} the interned instance
 */
public static Prototype intern(String descriptor, Type definer,
    boolean isStatic, boolean isInit) {
  Prototype base = intern(descriptor);
  if (isStatic) {
    return base;
  }
  if (isInit) {
    definer = definer.asUninitialized(Integer.MAX_VALUE);
  }
  return base.withFirstParameter(definer);
}
origin: com.google.dexmaker/dexmaker-dx

/**
 * Interns an instance, adding to the descriptor as necessary based
 * on the given definer, name, and flags. For example, an init
 * method has an uninitialized object of type {@code definer}
 * as its first argument.
 *
 * @param descriptor {@code non-null;} the descriptor string
 * @param definer {@code non-null;} class the method is defined on
 * @param isStatic whether this is a static method
 * @param isInit whether this is an init method
 * @return {@code non-null;} the interned instance
 */
public static Prototype intern(String descriptor, Type definer,
    boolean isStatic, boolean isInit) {
  Prototype base = intern(descriptor);
  if (isStatic) {
    return base;
  }
  if (isInit) {
    definer = definer.asUninitialized(Integer.MAX_VALUE);
  }
  return base.withFirstParameter(definer);
}
origin: gdpancheng/LoonAndroid3

/**
 * Interns an instance, adding to the descriptor as necessary based
 * on the given definer, name, and flags. For example, an init
 * method has an uninitialized object of type {@code definer}
 * as its first argument.
 *
 * @param descriptor {@code non-null;} the descriptor string
 * @param definer {@code non-null;} class the method is defined on
 * @param isStatic whether this is a static method
 * @param isInit whether this is an init method
 * @return {@code non-null;} the interned instance
 */
public static Prototype intern(String descriptor, Type definer,
    boolean isStatic, boolean isInit) {
  Prototype base = intern(descriptor);
  if (isStatic) {
    return base;
  }
  if (isInit) {
    definer = definer.asUninitialized(Integer.MAX_VALUE);
  }
  return base.withFirstParameter(definer);
}
origin: nikita36078/J2ME-Loader

Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeVirtual(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeSuper(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeDirect(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeInterface(meth);
Prototype proto = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
Prototype meth = proto.withFirstParameter(definer.getClassType());
return opInvokePolymorphic(meth);
origin: com.google.android.tools/dx

Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeVirtual(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeSuper(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeDirect(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeInterface(meth);
origin: gdpancheng/LoonAndroid3

Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeVirtual(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeSuper(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeDirect(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeInterface(meth);
origin: com.android.tools.build/builder

Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeVirtual(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeSuper(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeDirect(meth);
Prototype meth = cstMeth.getPrototype();
CstType definer = cstMeth.getDefiningClass();
meth = meth.withFirstParameter(definer.getClassType());
return opInvokeInterface(meth);
com.android.dx.rop.typePrototypewithFirstParameter

Javadoc

Returns a new interned instance, which is the same as this instance, except that it has an additional parameter prepended to the original's argument list.

Popular methods of Prototype

  • intern
    Interns an instance, adding to the descriptor as necessary based on the given definer, name, and fla
  • getParameterTypes
    Gets the list of parameter types.
  • getReturnType
    Gets the return type.
  • <init>
    Constructs an instance. This is a private constructor; use one of the public static methods to get i
  • compareTo
  • getDescriptor
    Gets the descriptor string.
  • getParameterFrameTypes
    Gets the list of frame types corresponding to the list of parameter types. The difference between th
  • makeParameterArray
    Helper for #intern which returns an empty array to populate with parsed parameter types, and which a
  • putIntern
    Puts the given instance in the intern table if it's not already there. If a conflicting value is alr
  • internInts
    Interns an instance which consists of the given number of ints along with the given return type
  • clearInternTable
  • equals
  • clearInternTable,
  • equals,
  • fromDescriptor,
  • hashCode,
  • toString

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • 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