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

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

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

origin: linkedin/dexmaker

Prototype prototype(boolean includeThis) {
  return Prototype.intern(descriptor(includeThis));
}
origin: dodola/RocooFix

private void addDependencies(DirectClassFile classFile) {
  for (Constant constant : classFile.getConstantPool().getEntries()) {
    if (constant instanceof CstType) {
      checkDescriptor(((CstType) constant).getClassType().getDescriptor());
    } else if (constant instanceof CstFieldRef) {
      checkDescriptor(((CstFieldRef) constant).getType().getDescriptor());
    } else if (constant instanceof CstBaseMethodRef) {
      checkPrototype(((CstBaseMethodRef) constant).getPrototype());
    }
  }
  FieldList fields = classFile.getFields();
  int nbField = fields.size();
  for (int i = 0; i < nbField; i++) {
   checkDescriptor(fields.get(i).getDescriptor().getString());
  }
  MethodList methods = classFile.getMethods();
  int nbMethods = methods.size();
  for (int i = 0; i < nbMethods; i++) {
   checkPrototype(Prototype.intern(methods.get(i).getDescriptor().getString()));
  }
}
private void checkPrototype(Prototype proto) {
origin: com.google.android.tools/dx

Prototype prototype(boolean includeThis) {
  return Prototype.intern(descriptor(includeThis));
}
origin: com.linkedin.dexmaker/dexmaker

Prototype prototype(boolean includeThis) {
  return Prototype.intern(descriptor(includeThis));
}
origin: gdpancheng/LoonAndroid3

Prototype prototype(boolean includeThis) {
  return Prototype.intern(descriptor(includeThis));
}
origin: gdpancheng/LoonAndroid3

/**
 * Interns an instance which consists of the given number of
 * {@code int}s along with the given return type
 *
 * @param returnType {@code non-null;} the return type
 * @param count {@code > 0;} the number of elements in the prototype
 * @return {@code non-null;} the interned instance
 */
public static Prototype internInts(Type returnType, int count) {
  // Make the descriptor...
  StringBuffer sb = new StringBuffer(100);
  sb.append('(');
  for (int i = 0; i < count; i++) {
    sb.append('I');
  }
  sb.append(')');
  sb.append(returnType.getDescriptor());
  // ...and intern it.
  return intern(sb.toString());
}
origin: nikita36078/J2ME-Loader

/**
 * Interns an instance which consists of the given number of
 * {@code int}s along with the given return type
 *
 * @param returnType {@code non-null;} the return type
 * @param count {@code > 0;} the number of elements in the prototype
 * @return {@code non-null;} the interned instance
 */
public static Prototype internInts(Type returnType, int count) {
  // Make the descriptor...
  StringBuffer sb = new StringBuffer(100);
  sb.append('(');
  for (int i = 0; i < count; i++) {
    sb.append('I');
  }
  sb.append(')');
  sb.append(returnType.getDescriptor());
  // ...and intern it.
  return intern(sb.toString());
}
origin: com.google.android.tools/dx

/**
 * Interns an instance which consists of the given number of
 * {@code int}s along with the given return type
 *
 * @param returnType {@code non-null;} the return type
 * @param count {@code > 0;} the number of elements in the prototype
 * @return {@code non-null;} the interned instance
 */
public static Prototype internInts(Type returnType, int count) {
  // Make the descriptor...
  StringBuffer sb = new StringBuffer(100);
  sb.append('(');
  for (int i = 0; i < count; i++) {
    sb.append('I');
  }
  sb.append(')');
  sb.append(returnType.getDescriptor());
  // ...and intern it.
  return intern(sb.toString());
}
origin: com.google.android.tools/dx

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the type of the defining class
 * @param nat {@code non-null;} the name-and-type
 */
/*package*/ CstBaseMethodRef(CstType definingClass, CstNat nat) {
  super(definingClass, nat);
  String descriptor = getNat().getDescriptor().getString();
  this.prototype = Prototype.intern(descriptor);
  this.instancePrototype = null;
}
origin: com.google.dexmaker/dexmaker-dx

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the type of the defining class
 * @param nat {@code non-null;} the name-and-type
 */
/*package*/ CstBaseMethodRef(CstType definingClass, CstNat nat) {
  super(definingClass, nat);
  String descriptor = getNat().getDescriptor().getString();
  this.prototype = Prototype.intern(descriptor);
  this.instancePrototype = null;
}
origin: com.android.tools.build/builder

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the type of the defining class
 * @param nat {@code non-null;} the name-and-type
 */
/*package*/ CstBaseMethodRef(CstType definingClass, CstNat nat) {
  super(definingClass, nat);
  String descriptor = getNat().getDescriptor().getString();
  this.prototype = Prototype.intern(descriptor);
  this.instancePrototype = null;
}
origin: com.android/dx

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the type of the defining class
 * @param nat {@code non-null;} the name-and-type
 */
/*package*/ CstBaseMethodRef(CstType definingClass, CstNat nat) {
  super(definingClass, nat);
  String descriptor = getNat().getDescriptor().getString();
  this.prototype = Prototype.intern(descriptor);
  this.instancePrototype = null;
}
origin: gdpancheng/LoonAndroid3

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the type of the defining class
 * @param nat {@code non-null;} the name-and-type
 */
/*package*/ CstBaseMethodRef(CstType definingClass, CstNat nat) {
  super(definingClass, nat);
  String descriptor = getNat().getDescriptor().getString();
  this.prototype = Prototype.intern(descriptor);
  this.instancePrototype = null;
}
origin: dragome/dragome-sdk

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the type of the defining class
 * @param nat {@code non-null;} the name-and-type
 */
/*package*/ CstBaseMethodRef(CstType definingClass, CstNat nat) {
  super(definingClass, nat);
  String descriptor = getNat().getDescriptor().getString();
  this.prototype = Prototype.intern(descriptor);
  this.instancePrototype = null;
}
origin: nikita36078/J2ME-Loader

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the defining class
 * @param accessFlags access flags
 * @param nat {@code non-null;} member name and type (descriptor)
 * @param attributes {@code non-null;} list of associated attributes
 */
public StdMethod(CstType definingClass, int accessFlags, CstNat nat,
    AttributeList attributes) {
  super(definingClass, accessFlags, nat, attributes);
  String descStr = getDescriptor().getString();
  effectiveDescriptor =
    Prototype.intern(descStr, definingClass.getClassType(),
                AccessFlags.isStatic(accessFlags),
                nat.isInstanceInit());
}
origin: com.android/dx

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the defining class
 * @param accessFlags access flags
 * @param nat {@code non-null;} member name and type (descriptor)
 * @param attributes {@code non-null;} list of associated attributes
 */
public StdMethod(CstType definingClass, int accessFlags, CstNat nat,
    AttributeList attributes) {
  super(definingClass, accessFlags, nat, attributes);
  String descStr = getDescriptor().getString();
  effectiveDescriptor =
    Prototype.intern(descStr, definingClass.getClassType(),
                AccessFlags.isStatic(accessFlags),
                nat.isInstanceInit());
}
origin: com.android.tools.build/builder

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the defining class
 * @param accessFlags access flags
 * @param nat {@code non-null;} member name and type (descriptor)
 * @param attributes {@code non-null;} list of associated attributes
 */
public StdMethod(CstType definingClass, int accessFlags, CstNat nat,
    AttributeList attributes) {
  super(definingClass, accessFlags, nat, attributes);
  String descStr = getDescriptor().getString();
  effectiveDescriptor =
    Prototype.intern(descStr, definingClass.getClassType(),
                AccessFlags.isStatic(accessFlags),
                nat.isInstanceInit());
}
origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the defining class
 * @param accessFlags access flags
 * @param nat {@code non-null;} member name and type (descriptor)
 * @param attributes {@code non-null;} list of associated attributes
 */
public StdMethod(CstType definingClass, int accessFlags, CstNat nat,
    AttributeList attributes) {
  super(definingClass, accessFlags, nat, attributes);
  String descStr = getDescriptor().getString();
  effectiveDescriptor =
    Prototype.intern(descStr, definingClass.getClassType(),
                AccessFlags.isStatic(accessFlags),
                nat.isInstanceInit());
}
origin: com.google.android.tools/dx

/**
 * Constructs an instance.
 *
 * @param definingClass {@code non-null;} the defining class
 * @param accessFlags access flags
 * @param nat {@code non-null;} member name and type (descriptor)
 * @param attributes {@code non-null;} list of associated attributes
 */
public StdMethod(CstType definingClass, int accessFlags, CstNat nat,
    AttributeList attributes) {
  super(definingClass, accessFlags, nat, attributes);
  String descStr = getDescriptor().getString();
  effectiveDescriptor =
    Prototype.intern(descStr, definingClass.getClassType(),
                AccessFlags.isStatic(accessFlags),
                nat.isInstanceInit());
}
origin: dragome/dragome-sdk

/**
 * Constructs an instance.
 * 
 * @param definingClass {@code non-null;} the defining class
 * @param accessFlags access flags
 * @param nat {@code non-null;} member name and type (descriptor)
 * @param attributes {@code non-null;} list of associated attributes
 */
public StdMethod(CstType definingClass, int accessFlags, CstNat nat,
    AttributeList attributes) {
  super(definingClass, accessFlags, nat, attributes);
  String descStr = getDescriptor().getString();
  effectiveDescriptor =
    Prototype.intern(descStr, definingClass.getClassType(),
                AccessFlags.isStatic(accessFlags),
                nat.isInstanceInit());
}
com.android.dx.rop.typePrototypeintern

Javadoc

Returns the unique instance corresponding to the given method descriptor. See vmspec-2 sec4.3.3 for details on the field descriptor syntax.

Popular methods of Prototype

  • 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
  • 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

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Github Copilot alternatives
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