Examples of SourceFileAttr


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

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

      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

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

    }
    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

Examples of org.cojen.classfile.attribute.SourceFileAttr

     * Set the source file of this class file by adding a source file
     * attribute. The source doesn't actually have to be a file,
     * but the virtual machine spec names the attribute "SourceFile_attribute".
     */
    public void setSourceFile(String fileName) {
        addAttribute(new SourceFileAttr(mCp, fileName));
    }
View Full Code Here

Examples of org.cojen.classfile.attribute.SourceFileAttr

                        return new RuntimeInvisibleParameterAnnotationsAttr(cp, name, length, din);
                    }
                    break;
                case 'S':
                    if (name.equals(SOURCE_FILE)) {
                        return new SourceFileAttr(cp, name, length, din);
                    } else if (name.equals(SYNTHETIC)) {
                        return new SyntheticAttr(cp, name, length, din);
                    } else if (name.equals(SIGNATURE)) {
                        return new SignatureAttr(cp, name, length, din);
                    } else if (name.equals(STACK_MAP_TABLE)) {
View Full Code Here

Examples of org.cojen.classfile.attribute.SourceFileAttr

                        return new RuntimeInvisibleParameterAnnotationsAttr(cp, name, length, din);
                    }
                    break;
                case 'S':
                    if (name.equals(SOURCE_FILE)) {
                        return new SourceFileAttr(cp, name, length, din);
                    } else if (name.equals(SYNTHETIC)) {
                        return new SyntheticAttr(cp, name, length, din);
                    } else if (name.equals(SIGNATURE)) {
                        return new SignatureAttr(cp, name, length, din);
                    } else if (name.equals(STACK_MAP_TABLE)) {
View Full Code Here

Examples of org.cojen.classfile.attribute.SourceFileAttr

     * Set the source file of this class file by adding a source file
     * attribute. The source doesn't actually have to be a file,
     * but the virtual machine spec names the attribute "SourceFile_attribute".
     */
    public void setSourceFile(String fileName) {
        addAttribute(new SourceFileAttr(mCp, fileName));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.