Codota Logo
IndexedSection.getOptionalItemByIndex
Code IndexAdd Codota to your IDE (free)

How to use
getOptionalItemByIndex
method
in
org.jf.dexlib.IndexedSection

Best Java code snippets using org.jf.dexlib.IndexedSection.getOptionalItemByIndex (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: sonyxperiadev/ApkAnalyser

IndexedSection<StringIdItem> stringIdSection = dexFile.StringIdsSection;
for (int i=0; i<parameterNames.length; i++) {
  parameterNames[i] = stringIdSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
origin: sonyxperiadev/ApkAnalyser

/** {@inheritDoc} */
protected void readItem(Input in, ReadContext readContext) {
  classType = dexFile.TypeIdsSection.getItemByIndex(in.readInt());
  accessFlags = in.readInt();
  superType = dexFile.TypeIdsSection.getOptionalItemByIndex(in.readInt());
  implementedInterfaces = (TypeListItem)readContext.getOptionalOffsettedItemByOffset(ItemType.TYPE_TYPE_LIST,
      in.readInt());
  sourceFile = dexFile.StringIdsSection.getOptionalItemByIndex(in.readInt());
  annotations = (AnnotationDirectoryItem)readContext.getOptionalOffsettedItemByOffset(
      ItemType.TYPE_ANNOTATIONS_DIRECTORY_ITEM, in.readInt());
  classData = (ClassDataItem)readContext.getOptionalOffsettedItemByOffset(ItemType.TYPE_CLASS_DATA_ITEM, in.readInt());
  staticFieldInitializers = (EncodedArrayItem)readContext.getOptionalOffsettedItemByOffset(
      ItemType.TYPE_ENCODED_ARRAY_ITEM, in.readInt());
  if (classData != null) {
    classData.setParent(this);
  }
  if (annotations != null) {
    annotations.setParent(this);
  }
}
origin: sonyxperiadev/ApkAnalyser

StringIdItem name = dexFile.StringIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
TypeIdItem type = dexFile.TypeIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
locals[registerNum] = new Local(registerNum, name, type, null);
processDecodedDebugInstruction.ProcessStartLocal(currentCodeAddress,
StringIdItem name = dexFile.StringIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
TypeIdItem type = dexFile.TypeIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
StringIdItem signature =
    dexFile.StringIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
locals[registerNum] = new Local(registerNum, name, type, signature);
processDecodedDebugInstruction.ProcessStartLocalExtended(currentCodeAddress,
StringIdItem name = dexFile.StringIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
processDecodedDebugInstruction.ProcessSetFile(currentCodeAddress, in.getCursor() - startDebugOffset, name);
break;
origin: org.smali/dexlib

IndexedSection<StringIdItem> stringIdSection = dexFile.StringIdsSection;
for (int i=0; i<parameterNames.length; i++) {
  parameterNames[i] = stringIdSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
origin: org.smali/dexlib

/** {@inheritDoc} */
protected void readItem(Input in, ReadContext readContext) {
  classType = dexFile.TypeIdsSection.getItemByIndex(in.readInt());
  accessFlags = in.readInt();
  superType = dexFile.TypeIdsSection.getOptionalItemByIndex(in.readInt());
  implementedInterfaces = (TypeListItem)readContext.getOptionalOffsettedItemByOffset(ItemType.TYPE_TYPE_LIST,
      in.readInt());
  sourceFile = dexFile.StringIdsSection.getOptionalItemByIndex(in.readInt());
  annotations = (AnnotationDirectoryItem)readContext.getOptionalOffsettedItemByOffset(
      ItemType.TYPE_ANNOTATIONS_DIRECTORY_ITEM, in.readInt());
  classData = (ClassDataItem)readContext.getOptionalOffsettedItemByOffset(ItemType.TYPE_CLASS_DATA_ITEM, in.readInt());
  staticFieldInitializers = (EncodedArrayItem)readContext.getOptionalOffsettedItemByOffset(
      ItemType.TYPE_ENCODED_ARRAY_ITEM, in.readInt());
  if (classData != null) {
    classData.setParent(this);
  }
  if (annotations != null) {
    annotations.setParent(this);
  }
}
origin: org.smali/dexlib

StringIdItem name = dexFile.StringIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
TypeIdItem type = dexFile.TypeIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
locals[registerNum] = new Local(registerNum, name, type, null);
processDecodedDebugInstruction.ProcessStartLocal(currentCodeAddress,
StringIdItem name = dexFile.StringIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
TypeIdItem type = dexFile.TypeIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
StringIdItem signature =
    dexFile.StringIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
locals[registerNum] = new Local(registerNum, name, type, signature);
processDecodedDebugInstruction.ProcessStartLocalExtended(currentCodeAddress,
StringIdItem name = dexFile.StringIdsSection.getOptionalItemByIndex(in.readUnsignedLeb128() - 1);
processDecodedDebugInstruction.ProcessSetFile(currentCodeAddress, in.getCursor() - startDebugOffset, name);
break;
org.jf.dexlibIndexedSectiongetOptionalItemByIndex

Javadoc

Gets the item at the specified index in this section, or null if the index is -1

Popular methods of IndexedSection

  • getItems
  • getInternedItem
  • getItemByIndex
    Gets the item at the specified index in this section
  • getOffset
  • intern
  • placeAt

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JOptionPane (javax.swing)
  • Runner (org.openjdk.jmh.runner)
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