Package jminusminus

Class CLAnnotation

java.lang.Object
jminusminus.CLAnnotation

class CLAnnotation extends Object
Representation of annotation structure.
  • Field Details

    • typeIndex

      public int typeIndex
      annotation.type_index item.
    • numElementValuePairs

      public int numElementValuePairs
      annotation.num_element_value_pairs item.
    • elementValuePairs

      public ArrayList<CLElementValuePair> elementValuePairs
      annotation.element_value_pairs item.
  • Constructor Details

    • CLAnnotation

      public CLAnnotation(int typeIndex, int numElementValuePairs, ArrayList<CLElementValuePair> elementValuePairs)
      Construct a CLAnnotation object.
      Parameters:
      typeIndex - annotation.type_index item.
      numElementValuePairs - annotation.num_element_value_pairs item.
      elementValuePairs - annotation.element_value_pairs item.
  • Method Details

    • write

      public void write(CLOutputStream out) throws IOException
      Write the contents of this object to the specified output stream.
      Parameters:
      out - output stream.
      Throws:
      IOException - if an error occurs while writing.