Class CodeHTML

java.lang.Object
org.apache.bcel.util.CodeHTML

final class CodeHTML extends Object
Convert code into HTML file.
  • Field Details

    • wide

      private static boolean wide
    • className

      private final String className
    • printWriter

      private final PrintWriter printWriter
    • gotoSet

      private BitSet gotoSet
    • constantPool

      private final ConstantPool constantPool
    • constantHtml

      private final ConstantHTML constantHtml
  • Constructor Details

  • Method Details

    • codeToHTML

      private String codeToHTML(ByteSequence bytes, int methodNumber) throws IOException
      Disassemble a stream of byte codes and return the string representation.
      Parameters:
      stream - data input stream
      Returns:
      String representation of byte code
      Throws:
      IOException
    • findGotos

      private void findGotos(ByteSequence bytes, Code code) throws IOException
      Find all target addresses in code, so that they can be marked with <A NAME = ...>. Target addresses are kept in an BitSet object.
      Throws:
      IOException
    • writeMethod

      private void writeMethod(Method method, int methodNumber) throws IOException
      Write a single method with the byte code associated with it.
      Throws:
      IOException