Package jminusminus

Class CLMemberInfo

java.lang.Object
jminusminus.CLMemberInfo
Direct Known Subclasses:
CLFieldInfo, CLMethodInfo

abstract class CLMemberInfo extends Object
This abstract base class represents the member_info structure.
  • Field Details

    • accessFlags

      public int accessFlags
      member_info.access_flags item.
    • nameIndex

      public int nameIndex
      member_info.name_index item.
    • descriptorIndex

      public int descriptorIndex
      member_info.descriptor_index item.
    • attributesCount

      public int attributesCount
      member_info.attributes_count item.
    • attributes

      public ArrayList<CLAttributeInfo> attributes
      member_info.attributes item.
  • Constructor Details

    • CLMemberInfo

      protected CLMemberInfo(int accessFlags, int nameIndex, int descriptorIndex, int attributesCount, ArrayList<CLAttributeInfo> attributes)
      Constructs a CLMemberInfo object.
      Parameters:
      accessFlags - member_info.access_flags item.
      nameIndex - member_info.name_index item.
      descriptorIndex - member_info.descriptor_index item.
      attributesCount - member_info.attributes_count item.
      attributes - member_info.attributes item.
  • Method Details

    • write

      public void write(CLOutputStream out) throws IOException
      Writes the contents of this class member to the specified output stream.
      Parameters:
      out - output stream.
      Throws:
      IOException - if the contents of this class member can't be written to the specified output stream.