Klasse Disassembler

java.lang.Object
org.aspectj.org.eclipse.jdt.core.util.ClassFileBytesDisassembler
org.aspectj.org.eclipse.jdt.internal.core.util.Disassembler

public class Disassembler extends ClassFileBytesDisassembler
Disassembler of .class files. It generates an output in the Writer that looks close to the javap output.
  • Konstruktordetails

    • Disassembler

      public Disassembler()
  • Methodendetails

    • escapeString

      public static String escapeString(String s)
    • disassemble

      public String disassemble(byte[] classFileBytes, String lineSeparator) throws ClassFormatException
      Beschreibung aus Klasse kopiert: ClassFileBytesDisassembler
      Answers back the disassembled string of the classfile bytes using the default mode. This is an output quite similar to the javap tool, using DEFAULT mode.
      Angegeben von:
      disassemble in Klasse ClassFileBytesDisassembler
      Parameter:
      classFileBytes - The bytes of the classfile
      lineSeparator - the line separator to use.
      Gibt zurück:
      the disassembled string of the IClassFileReader using the default mode.
      Löst aus:
      ClassFormatException - if the classfile bytes are ill-formed
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.core.util.ClassFileBytesDisassembler#disassemble(byte[], java.lang.String)
    • disassemble

      public String disassemble(byte[] classFileBytes, String lineSeparator, int mode) throws ClassFormatException
      Beschreibung aus Klasse kopiert: ClassFileBytesDisassembler
      Answers back the disassembled string of the classfile bytes according to the mode. This is an output quite similar to the javap tool.
      Angegeben von:
      disassemble in Klasse ClassFileBytesDisassembler
      Parameter:
      classFileBytes - The bytes of the classfile
      lineSeparator - the line separator to use.
      mode - the mode used to disassemble the IClassFileReader
      Gibt zurück:
      the disassembled string of the IClassFileReader according to the mode
      Löst aus:
      ClassFormatException - if the classfile bytes are ill-formed
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.core.util.ClassFileBytesDisassembler#disassemble(byte[], java.lang.String, int)
    • disassemble

      public String disassemble(IClassFileReader classFileReader, String lineSeparator)
      Siehe auch:
    • disassemble

      public String disassemble(IClassFileReader classFileReader, String lineSeparator, int mode)
      Answers back the disassembled string of the IClassFileReader according to the mode. This is an output quite similar to the javap tool.
      Parameter:
      classFileReader - The classFileReader to be disassembled
      lineSeparator - the line separator to use.
      mode - the mode used to disassemble the IClassFileReader
      Gibt zurück:
      the disassembled string of the IClassFileReader according to the mode
    • getDescription

      public String getDescription()
      Beschreibung aus Klasse kopiert: ClassFileBytesDisassembler
      Answers a readable short description of this disassembler
      Angegeben von:
      getDescription in Klasse ClassFileBytesDisassembler
      Gibt zurück:
      String - a string description of the disassembler
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.core.util.ClassFileBytesDisassembler#getDescription()