Class CodeHTML

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

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

    • class_name

      private final String class_name
    • file

      private final PrintWriter file
    • goto_set

      private BitSet goto_set
    • constant_pool

      private final ConstantPool constant_pool
    • constant_html

      private final ConstantHTML constant_html
    • wide

      private static boolean wide
  • Constructor Details

  • Method Details

    • codeToHTML

      private String codeToHTML(ByteSequence bytes, int method_number) 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 method_number) throws IOException
      Write a single method with the byte code associated with it.
      Throws:
      IOException