Package jadx.core.dex.attributes.nodes

Examples of jadx.core.dex.attributes.nodes.SourceFileAttr


        case DBG_SET_FILE: {
          int idx = section.readUleb128() - 1;
          if (idx != DexNode.NO_INDEX) {
            String sourceFile = dex.getString(idx);
            mth.addAttr(new SourceFileAttr(sourceFile));
          }
          break;
        }

        default: {
View Full Code Here


      int sfIdx = cls.getSourceFileIndex();
      if (sfIdx != DexNode.NO_INDEX) {
        String fileName = dex.getString(sfIdx);
        if (!this.getFullName().contains(fileName.replace(".java", ""))
            && !fileName.equals("SourceFile")) {
          this.addAttr(new SourceFileAttr(fileName));
          LOG.debug("Class '{}' compiled from '{}'", this, fileName);
        }
      }

      // restore original access flags from dalvik annotation if present
View Full Code Here

    }
    return searchCollision(dex, useCls.getParentClass(), searchCls);
  }

  private void insertSourceFileInfo(CodeWriter code, AttrNode node) {
    SourceFileAttr sourceFileAttr = node.get(AType.SOURCE_FILE);
    if (sourceFileAttr != null) {
      code.startLine("/* compiled from: ").add(sourceFileAttr.getFileName()).add(" */");
    }
  }
 
View Full Code Here

TOP

Related Classes of jadx.core.dex.attributes.nodes.SourceFileAttr

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.