Package org.openjdk.asmtools.jdis

## Class CodeData

- java.lang.Object
- - org.openjdk.asmtools.jdis.Indenter
  - - org.openjdk.asmtools.jdis.CodeData

-     public class CodeData
      extends Indenter

  Code data for a code attribute in method members in a class of the Java Disassembler

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `CodeData.LocVarData` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected java.util.ArrayList<AttrData>` | `attrs` | The remaining attributes of this class
    `protected ClassData` | `cls` |
    `protected byte[]` | `code` | Raw byte array for the byte codes
    `protected int` | `max_locals` | Limit for the number of local vars
    `protected int` | `max_stack` | Limit for the stack size
    `protected MethodData` | `meth` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CodeData​(MethodData meth)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected org.openjdk.asmtools.jdis.iAtt` | `get_iAtt​(int pc)` |
    `void` | `print()` | print
    `void` | `read​(java.io.DataInputStream in, int codeattrlen)` | read

    - ### Methods inherited from class org.openjdk.asmtools.jdis.Indenter

      `decreaseIndent, getIndentString, increaseIndent, indent, setIndent`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### code

          protected byte[] code

      Raw byte array for the byte codes

    - #### max_stack

          protected int max_stack

      Limit for the stack size

    - #### max_locals

          protected int max_locals

      Limit for the number of local vars

    - #### attrs

          protected java.util.ArrayList<AttrData> attrs

      The remaining attributes of this class

    - #### cls

          protected ClassData cls

    - #### meth

          protected MethodData meth

  - ### Constructor Detail

    - #### CodeData

          public CodeData​(MethodData meth)

  - ### Method Detail

    - #### get_iAtt

          protected org.openjdk.asmtools.jdis.iAtt get_iAtt​(int pc)

    - #### read

          public void read​(java.io.DataInputStream in,
                           int codeattrlen)
                    throws java.io.IOException

      read

      read and resolve the code attribute data called from MethodData. precondition: NumFields has already been read from the stream.

      Throws:
        `java.io.IOException`

    - #### print

          public void print()
                     throws java.io.IOException

      print

      prints the code data to the current output stream. called from MethodData.

      Throws:
        `java.io.IOException`