Tabnine Logo
DexBackedClassDef
Code IndexAdd Tabnine to your IDE (free)

How to use
DexBackedClassDef
in
org.jf.dexlib2.dexbacked

Best Java code snippets using org.jf.dexlib2.dexbacked.DexBackedClassDef (Showing top 20 results out of 315)

origin: JesusFreke/smali

@Nonnull
@Override
public Iterable<? extends DexBackedMethod> getMethods() {
  return Iterables.concat(getDirectMethods(), getVirtualMethods());
}
origin: JesusFreke/smali

@Nonnull
@Override
public Iterable<? extends DexBackedField> getFields() {
  return Iterables.concat(getStaticFields(), getInstanceFields());
}
origin: JesusFreke/smali

@Nonnull @Override public String getDefiningClass() { return classDef.getType(); }
@Override public int getAccessFlags() { return accessFlags; }
origin: JesusFreke/smali

@Nonnull
public Iterable<? extends DexBackedMethod> getDirectMethods(final boolean skipDuplicates) {
  if (directMethodCount > 0) {
    DexReader reader = dexFile.readerAt(getDirectMethodsOffset());
    final AnnotationsDirectory annotationsDirectory = getAnnotationsDirectory();
    final int methodsStartOffset = reader.getOffset();
origin: JesusFreke/smali

@Nonnull
@Override
public Iterable<? extends DexBackedField> getStaticFields() {
  return getStaticFields(true);
}
origin: JesusFreke/smali

int interfacesLength = getInterfaces().size();
if (interfacesLength > 0) {
AnnotationsDirectory directory = getAnnotationsDirectory();
if (!AnnotationsDirectory.EMPTY.equals(directory)) {
  size += 4 * 4; //4 uints in annotations_directory_item
for (DexBackedField dexBackedField : getFields()) {
  size += dexBackedField.getSize();
for (DexBackedMethod dexBackedMethod : getMethods()) {
  size += dexBackedMethod.getSize();
origin: JesusFreke/smali

@Nonnull
@Override
public Iterable<? extends DexBackedMethod> getVirtualMethods() {
  return getVirtualMethods(true);
}
origin: JesusFreke/smali

@Nonnull
@Override
public Iterable<? extends DexBackedMethod> getDirectMethods() {
  return getDirectMethods(true);
}
origin: JesusFreke/smali

@Nonnull
@Override
public Iterable<? extends DexBackedField> getInstanceFields() {
  return getInstanceFields(true);
}
origin: com.taobao.android/dex_patch

  if (DexDiffer.getDalvikClassName(dexBackedClassDef.getType()).equals(outterClassName)) {
    oldDexBackClassDef = dexBackedClassDef;
  if (DexDiffer.getDalvikClassName(dexBackedClassDef.getType()).equals(outterClassName)) {
    newDexBackClassDef = dexBackedClassDef;
disassemble(newTemp, newDexBackClassDef);
Iterable<? extends DexBackedMethod> oldDexBackedMethods = oldDexBackClassDef.getMethods();
Iterable<? extends DexBackedMethod> newDexBackedMethods = newDexBackClassDef.getMethods();
boolean find = false;
for (DexBackedMethod dexBackedMethod : newDexBackedMethods) {
origin: JesusFreke/smali

@Nonnull
public Iterable<? extends DexBackedMethod> getVirtualMethods(final boolean skipDuplicates) {
  if (virtualMethodCount > 0) {
    DexReader reader = dexFile.readerAt(getVirtualMethodsOffset());
    final AnnotationsDirectory annotationsDirectory = getAnnotationsDirectory();
    final int methodsStartOffset = reader.getOffset();
origin: JesusFreke/smali

@Nonnull
public Iterable<? extends DexBackedField> getInstanceFields(final boolean skipDuplicates) {
  if (instanceFieldCount > 0) {
    DexReader reader = dexFile.readerAt(getInstanceFieldsOffset());
    final AnnotationsDirectory annotationsDirectory = getAnnotationsDirectory();
    final int fieldsStartOffset = reader.getOffset();
origin: com.taobao.android/dex_patch

public static void getClassAnnotaionPrepareClasses(DexBackedClassDef classDef, Set<String> prepareclasses,DexDiffInfo dexDiffInfo){
    if (classDef.getType().equals(modifyClasses.getType())){
      if (classDef.getAnnotations()!= null){
        Set<? extends DexBackedAnnotation>annotations = classDef.getAnnotations();
        for (DexBackedAnnotation annotation:annotations){
          String type = annotation.getType();
origin: JesusFreke/smali

@Nonnull
@Override
public Set<? extends DexBackedAnnotation> getAnnotations() {
  return getAnnotationsDirectory().getClassAnnotations();
}
origin: JesusFreke/smali

@Nonnull
@Override
public DexBackedClassDef readItem(int index) {
  return new DexBackedClassDef(DexBackedDexFile.this, getClassDefItemOffset(index));
}
origin: JesusFreke/smali

private int getVirtualMethodsOffset() {
  if (virtualMethodsOffset > 0) {
    return virtualMethodsOffset;
  }
  DexReader reader = dexFile.readerAt(getDirectMethodsOffset());
  DexBackedMethod.skipMethods(reader, directMethodCount);
  virtualMethodsOffset = reader.getOffset();
  return virtualMethodsOffset;
}
origin: JesusFreke/smali

private int getDirectMethodsOffset() {
  if (directMethodsOffset > 0) {
    return directMethodsOffset;
  }
  DexReader reader = dexFile.readerAt(getInstanceFieldsOffset());
  DexBackedField.skipFields(reader, instanceFieldCount);
  directMethodsOffset = reader.getOffset();
  return directMethodsOffset;
}
origin: com.taobao.android/dex_patch

             ClassDiffInfo classDiffInfo) throws PatchException {
Map<String, DexBackedField> baseFieldMaps = Maps.newHashMap();
for (DexBackedField backedField : baseClassDef.getFields()) {
  baseFieldMaps.put(ReferenceUtil.getFieldDescriptor(backedField), backedField);
for (DexBackedField newField : newClassDef.getFields()) {
  FieldDiffInfo fieldDiffInfo = new FieldDiffInfo();
  fieldDiffInfo.setBackedField(newField);
origin: org.smali/dexlib2

@Nonnull
@Override
public Iterable<? extends DexBackedField> getStaticFields() {
  return getStaticFields(true);
}
origin: org.smali/dexlib2

int interfacesLength = getInterfaces().size();
if (interfacesLength > 0) {
AnnotationsDirectory directory = getAnnotationsDirectory();
if (!AnnotationsDirectory.EMPTY.equals(directory)) {
  size += 4 * 4; //4 uints in annotations_directory_item
for (DexBackedField dexBackedField : getFields()) {
  size += dexBackedField.getSize();
for (DexBackedMethod dexBackedMethod : getMethods()) {
  size += dexBackedMethod.getSize();
org.jf.dexlib2.dexbackedDexBackedClassDef

Most used methods

  • getDirectMethods
  • getInstanceFields
  • getStaticFields
  • getVirtualMethods
  • getType
  • <init>
  • getAnnotationsDirectory
  • getDirectMethodsOffset
  • getFields
  • getInstanceFieldsOffset
  • getInterfaces
  • getMethods
  • getInterfaces,
  • getMethods,
  • getVirtualMethodsOffset,
  • equals,
  • getAccessFlags,
  • getAnnotations,
  • getSuperclass,
  • isValid

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JCheckBox (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook extensions
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