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

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

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

origin: nikita36078/J2ME-Loader

/**
 * Returns the unique instance corresponding to the
 * given method descriptor. See vmspec-2 sec4.3.3 for details on the
 * field descriptor syntax.
 *
 * @param descriptor {@code non-null;} the descriptor
 * @return {@code non-null;} the corresponding instance
 * @throws IllegalArgumentException thrown if the descriptor has
 * invalid syntax
 */
public static Prototype intern(String descriptor) {
  if (descriptor == null) {
    throw new NullPointerException("descriptor == null");
  }
  Prototype result = internTable.get(descriptor);
  if (result != null) {
    return result;
  }
  result = fromDescriptor(descriptor);
  return putIntern(result);
}
origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Returns the unique instance corresponding to the
 * given method descriptor. See vmspec-2 sec4.3.3 for details on the
 * field descriptor syntax.
 *
 * @param descriptor {@code non-null;} the descriptor
 * @return {@code non-null;} the corresponding instance
 * @throws IllegalArgumentException thrown if the descriptor has
 * invalid syntax
 */
public static Prototype intern(String descriptor) {
  if (descriptor == null) {
    throw new NullPointerException("descriptor == null");
  }
  Prototype result = internTable.get(descriptor);
  if (result != null) {
    return result;
  }
  result = fromDescriptor(descriptor);
  return putIntern(result);
}
origin: gdpancheng/LoonAndroid3

/**
 * 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.
 *
 * @param param {@code non-null;} the new first parameter
 * @return {@code non-null;} an appropriately-constructed instance
 */
public Prototype withFirstParameter(Type param) {
  String newDesc = "(" + param.getDescriptor() + descriptor.substring(1);
  StdTypeList newParams = parameterTypes.withFirst(param);
  newParams.setImmutable();
  Prototype result =
    new Prototype(newDesc, returnType, newParams);
  return putIntern(result);
}
origin: com.android/dx

/**
 * 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.
 *
 * @param param {@code non-null;} the new first parameter
 * @return {@code non-null;} an appropriately-constructed instance
 */
public Prototype withFirstParameter(Type param) {
  String newDesc = "(" + param.getDescriptor() + descriptor.substring(1);
  StdTypeList newParams = parameterTypes.withFirst(param);
  newParams.setImmutable();
  Prototype result =
    new Prototype(newDesc, returnType, newParams);
  return putIntern(result);
}
origin: com.google.dexmaker/dexmaker-dx

/**
 * 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.
 *
 * @param param {@code non-null;} the new first parameter
 * @return {@code non-null;} an appropriately-constructed instance
 */
public Prototype withFirstParameter(Type param) {
  String newDesc = "(" + param.getDescriptor() + descriptor.substring(1);
  StdTypeList newParams = parameterTypes.withFirst(param);
  newParams.setImmutable();
  Prototype result =
    new Prototype(newDesc, returnType, newParams);
  return putIntern(result);
}
origin: com.android.tools.build/builder

/**
 * 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.
 *
 * @param param {@code non-null;} the new first parameter
 * @return {@code non-null;} an appropriately-constructed instance
 */
public Prototype withFirstParameter(Type param) {
  String newDesc = "(" + param.getDescriptor() + descriptor.substring(1);
  StdTypeList newParams = parameterTypes.withFirst(param);
  newParams.setImmutable();
  Prototype result =
    new Prototype(newDesc, returnType, newParams);
  return putIntern(result);
}
origin: nikita36078/J2ME-Loader

/**
 * 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.
 *
 * @param param {@code non-null;} the new first parameter
 * @return {@code non-null;} an appropriately-constructed instance
 */
public Prototype withFirstParameter(Type param) {
  String newDesc = "(" + param.getDescriptor() + descriptor.substring(1);
  StdTypeList newParams = parameterTypes.withFirst(param);
  newParams.setImmutable();
  Prototype result =
    new Prototype(newDesc, returnType, newParams);
  return putIntern(result);
}
origin: com.google.android.tools/dx

/**
 * 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.
 *
 * @param param {@code non-null;} the new first parameter
 * @return {@code non-null;} an appropriately-constructed instance
 */
public Prototype withFirstParameter(Type param) {
  String newDesc = "(" + param.getDescriptor() + descriptor.substring(1);
  StdTypeList newParams = parameterTypes.withFirst(param);
  newParams.setImmutable();
  Prototype result =
    new Prototype(newDesc, returnType, newParams);
  return putIntern(result);
}
origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * 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.
 *
 * @param param {@code non-null;} the new first parameter
 * @return {@code non-null;} an appropriately-constructed instance
 */
public Prototype withFirstParameter(Type param) {
  String newDesc = "(" + param.getDescriptor() + descriptor.substring(1);
  StdTypeList newParams = parameterTypes.withFirst(param);
  newParams.setImmutable();
  Prototype result =
    new Prototype(newDesc, returnType, newParams);
  return putIntern(result);
}
origin: dragome/dragome-sdk

/**
 * 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.
 * 
 * @param param {@code non-null;} the new first parameter
 * @return {@code non-null;} an appropriately-constructed instance
 */
public Prototype withFirstParameter(Type param) {
  String newDesc = "(" + param.getDescriptor() + descriptor.substring(1);
  StdTypeList newParams = parameterTypes.withFirst(param);
  newParams.setImmutable();
  Prototype result =
    new Prototype(newDesc, returnType, newParams);
  return putIntern(result);
}
origin: com.android.tools.build/builder

return putIntern(result);
origin: com.android/dx

return putIntern(result);
origin: com.google.android.tools/dx

return putIntern(result);
origin: com.google.dexmaker/dexmaker-dx

return putIntern(result);
origin: dragome/dragome-sdk

return putIntern(result);
origin: gdpancheng/LoonAndroid3

return putIntern(result);
com.android.dx.rop.typePrototypeputIntern

Javadoc

Puts the given instance in the intern table if it's not already there. If a conflicting value is already in the table, then leave it. Return the interned value.

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
  • withFirstParameter
    Returns a new interned instance, which is the same as this instance, except that it has an additiona
  • 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

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Join (org.hibernate.mapping)
  • Top Sublime Text 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