java.lang.Object
org.apache.commons.compress.harmony.unpack200.BandSet
org.apache.commons.compress.harmony.unpack200.ClassBands

public class ClassBands extends BandSet
Class Bands
  • Field Details

    • classFieldCount

      private int[] classFieldCount
    • classFlags

      private long[] classFlags
    • classAccessFlags

      private long[] classAccessFlags
    • classInterfacesInts

      private int[][] classInterfacesInts
    • classMethodCount

      private int[] classMethodCount
    • classSuperInts

      private int[] classSuperInts
    • classThis

      private String[] classThis
    • classThisInts

      private int[] classThisInts
    • classAttributes

      private ArrayList<Attribute>[] classAttributes
    • classVersionMajor

      private int[] classVersionMajor
    • classVersionMinor

      private int[] classVersionMinor
    • icLocal

      private IcTuple[][] icLocal
    • codeAttributes

      private List<Attribute>[] codeAttributes
    • codeHandlerCount

      private int[] codeHandlerCount
    • codeMaxNALocals

      private int[] codeMaxNALocals
    • codeMaxStack

      private int[] codeMaxStack
    • fieldAttributes

      private ArrayList<Attribute>[][] fieldAttributes
    • fieldDescr

      private String[][] fieldDescr
    • fieldDescrInts

      private int[][] fieldDescrInts
    • fieldFlags

      private long[][] fieldFlags
    • fieldAccessFlags

      private long[][] fieldAccessFlags
    • methodAttributes

      private ArrayList<Attribute>[][] methodAttributes
    • methodDescr

      private String[][] methodDescr
    • methodDescrInts

      private int[][] methodDescrInts
    • methodFlags

      private long[][] methodFlags
    • methodAccessFlags

      private long[][] methodAccessFlags
    • attrMap

      private final AttributeLayoutMap attrMap
    • cpBands

      private final CpBands cpBands
    • options

      private final SegmentOptions options
    • classCount

      private final int classCount
    • methodAttrCalls

      private int[] methodAttrCalls
    • codeHandlerStartP

      private int[][] codeHandlerStartP
    • codeHandlerEndPO

      private int[][] codeHandlerEndPO
    • codeHandlerCatchPO

      private int[][] codeHandlerCatchPO
    • codeHandlerClassRCN

      private int[][] codeHandlerClassRCN
    • codeHasAttributes

      private boolean[] codeHasAttributes
  • Constructor Details

    • ClassBands

      public ClassBands(Segment segment)
      Parameters:
      segment - TODO
  • Method Details

    • getCallCount

      private int getCallCount(int[][] methodAttrIndexes, long[][] flags, int context)
    • getClassAttributes

      public ArrayList<Attribute>[] getClassAttributes()
    • getClassFieldCount

      public int[] getClassFieldCount()
    • getClassFlags

      public long[] getClassFlags()
    • getClassInterfacesInts

      public int[][] getClassInterfacesInts()
    • getClassMethodCount

      public int[] getClassMethodCount()
    • getClassSuperInts

      public int[] getClassSuperInts()
    • getClassThisInts

      public int[] getClassThisInts()
    • getClassVersionMajor

      public int[] getClassVersionMajor()
      Returns null if all classes should use the default major and minor version or an array of integers containing the major version numberss to use for each class in the segment
      Returns:
      Class file major version numbers, or null if none specified
    • getClassVersionMinor

      public int[] getClassVersionMinor()
      Returns null if all classes should use the default major and minor version or an array of integers containing the minor version numberss to use for each class in the segment
      Returns:
      Class file minor version numbers, or null if none specified
    • getCodeHandlerCatchPO

      public int[][] getCodeHandlerCatchPO()
    • getCodeHandlerClassRCN

      public int[][] getCodeHandlerClassRCN()
    • getCodeHandlerCount

      public int[] getCodeHandlerCount()
    • getCodeHandlerEndPO

      public int[][] getCodeHandlerEndPO()
    • getCodeHandlerStartP

      public int[][] getCodeHandlerStartP()
    • getCodeHasAttributes

      public boolean[] getCodeHasAttributes()
    • getCodeMaxNALocals

      public int[] getCodeMaxNALocals()
    • getCodeMaxStack

      public int[] getCodeMaxStack()
    • getFieldAttributes

      public ArrayList<Attribute>[][] getFieldAttributes()
    • getFieldDescrInts

      public int[][] getFieldDescrInts()
    • getFieldFlags

      public long[][] getFieldFlags()
    • getIcLocal

      public IcTuple[][] getIcLocal()
    • getMethodAttributes

      public ArrayList<Attribute>[][] getMethodAttributes()
    • getMethodDescr

      public String[][] getMethodDescr()
    • getMethodDescrInts

      public int[][] getMethodDescrInts()
    • getMethodFlags

      public long[][] getMethodFlags()
    • getOrderedCodeAttributes

      public ArrayList<List<Attribute>> getOrderedCodeAttributes()
      Gets an ArrayList of ArrayLists which hold the code attributes corresponding to all classes in order. If a class doesn't have any attributes, the corresponding element in this list will be an empty ArrayList.
      Returns:
      ArrayList
    • getRawClassFlags

      public long[] getRawClassFlags()
    • parseClassAttrBands

      private void parseClassAttrBands(InputStream in) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • parseClassMetadataBands

      private int parseClassMetadataBands(InputStream in, int[] classAttrCalls) throws Pack200Exception, IOException
      Parse the class metadata bands and return the number of backwards callables.
      Parameters:
      in - TODO
      classAttrCalls - TODO
      Returns:
      the number of backwards callables.
      Throws:
      Pack200Exception - If a Pack200 semantic error occurs.
      IOException - If an I/O error occurs.
    • parseCodeAttrBands

      private void parseCodeAttrBands(InputStream in, int codeFlagsCount) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • parseCodeBands

      private void parseCodeBands(InputStream in) throws Pack200Exception, IOException
      Throws:
      Pack200Exception
      IOException
    • parseFieldAttrBands

      private void parseFieldAttrBands(InputStream in) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • parseFieldBands

      private void parseFieldBands(InputStream in) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • parseFieldMetadataBands

      private int parseFieldMetadataBands(InputStream in, int[] fieldAttrCalls) throws Pack200Exception, IOException
      Throws:
      Pack200Exception
      IOException
    • parseMetadata

      private MetadataBandGroup[] parseMetadata(InputStream in, String[] RxA, int[] RxACount, int[] backwardsCallCounts, String contextName) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • parseMethodAttrBands

      private void parseMethodAttrBands(InputStream in) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • parseMethodBands

      private void parseMethodBands(InputStream in) throws IOException, Pack200Exception
      Throws:
      IOException
      Pack200Exception
    • parseMethodMetadataBands

      private int parseMethodMetadataBands(InputStream in, int[] methodAttrCalls) throws Pack200Exception, IOException
      Throws:
      Pack200Exception
      IOException
    • read

      public void read(InputStream in) throws IOException, Pack200Exception
      Description copied from class: BandSet
      Reads the input stream.
      Specified by:
      read in class BandSet
      Parameters:
      in - the stream to read.
      Throws:
      IOException - if a problem occurs during reading from the underlying stream.
      Pack200Exception - if a problem occurs with an unexpected value or unsupported Codec.
    • unpack

      public void unpack()
      Description copied from class: BandSet
      Unpacks this instance.
      Specified by:
      unpack in class BandSet