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

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now