Codota Logo
TypeIdItem.toShorty
Code IndexAdd Codota to your IDE (free)

How to use
toShorty
method
in
org.jf.dexlib.TypeIdItem

Best Java code snippets using org.jf.dexlib.TypeIdItem.toShorty (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: sonyxperiadev/ApkAnalyser

/**
 * @return a string consisting of the shorty form of the type descriptors in this
 * <code>TypeListItem</code> that are directly concatenated together
 */
public String getShortyString() {
  StringBuilder sb = new StringBuilder();
  for (TypeIdItem typeIdItem: typeList) {
    sb.append(typeIdItem.toShorty());
  }
  return sb.toString();
}
origin: sonyxperiadev/ApkAnalyser

/**
 * Creates a new <code>ProtoIdItem</code> with the given values
 * @param dexFile The <code>DexFile</code> that this item belongs to
 * @param returnType the return type
 * @param parameters a <code>TypeListItem</code> containing a list of the parameter types
 */
private ProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) {
  this(dexFile);
  String shortyString = returnType.toShorty();
  if (parameters != null) {
    shortyString += parameters.getShortyString();
  }
  this.shortyDescriptor = StringIdItem.internStringIdItem(dexFile, shortyString);
  this.returnType = returnType;
  this.parameters = parameters;
}
origin: org.smali/dexlib

/**
 * @return a string consisting of the shorty form of the type descriptors in this
 * <code>TypeListItem</code> that are directly concatenated together
 */
public String getShortyString() {
  StringBuilder sb = new StringBuilder();
  for (TypeIdItem typeIdItem: typeList) {
    sb.append(typeIdItem.toShorty());
  }
  return sb.toString();
}
origin: org.smali/dexlib

/**
 * Creates a new <code>ProtoIdItem</code> with the given values
 * @param dexFile The <code>DexFile</code> that this item belongs to
 * @param returnType the return type
 * @param parameters a <code>TypeListItem</code> containing a list of the parameter types
 */
private ProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) {
  this(dexFile);
  String shortyString = returnType.toShorty();
  if (parameters != null) {
    shortyString += parameters.getShortyString();
  }
  this.shortyDescriptor = StringIdItem.internStringIdItem(dexFile, shortyString);
  this.returnType = returnType;
  this.parameters = parameters;
}
org.jf.dexlibTypeIdItemtoShorty

Javadoc

Returns the "shorty" representation of this type, used to create the shorty prototype string for a method

Popular methods of TypeIdItem

  • getTypeDescriptor
    Returns the type descriptor as a String for the given type
  • <init>
    Creates a new TypeIdItem for the given StringIdItem
  • compareTo
  • getIndex
  • getRegisterCount
    Calculates the number of 2-byte registers that an instance of this type requires
  • hashCode
  • internTypeIdItem
    Returns a TypeIdItem for the given values, and that has been interned into the given DexFile
  • lookupTypeIdItem
    Looks up the TypeIdItem from the given DexFile for the given type descriptor

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
  • requestLocationUpdates (LocationManager)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • BoxLayout (javax.swing)
  • JList (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now