Class ClassBands
- java.lang.Object
-
- org.apache.commons.compress.harmony.unpack200.BandSet
-
- org.apache.commons.compress.harmony.unpack200.ClassBands
-
public class ClassBands extends BandSet
Class Bands
-
-
Constructor Summary
Constructors Constructor Description ClassBands(Segment segment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<Attribute>[]getClassAttributes()int[]getClassFieldCount()long[]getClassFlags()int[][]getClassInterfacesInts()int[]getClassMethodCount()int[]getClassSuperInts()int[]getClassThisInts()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 segmentint[]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 segmentint[][]getCodeHandlerCatchPO()int[][]getCodeHandlerClassRCN()int[]getCodeHandlerCount()int[][]getCodeHandlerEndPO()int[][]getCodeHandlerStartP()boolean[]getCodeHasAttributes()int[]getCodeMaxNALocals()int[]getCodeMaxStack()java.util.ArrayList<Attribute>[][]getFieldAttributes()int[][]getFieldDescrInts()long[][]getFieldFlags()IcTuple[][]getIcLocal()java.util.ArrayList<Attribute>[][]getMethodAttributes()java.lang.String[][]getMethodDescr()int[][]getMethodDescrInts()long[][]getMethodFlags()java.util.ArrayList<java.util.List<Attribute>>getOrderedCodeAttributes()Gets an ArrayList of ArrayLists which hold the code attributes corresponding to all classes in order.long[]getRawClassFlags()voidread(java.io.InputStream in)Reads the input stream.voidunpack()Unpacks this instance.-
Methods inherited from class org.apache.commons.compress.harmony.unpack200.BandSet
decodeBandInt, decodeBandInt, getReferences, getReferences, parseCPClassReferences, parseCPDescriptorReferences, parseCPDoubleReferences, parseCPFieldRefReferences, parseCPFloatReferences, parseCPInterfaceMethodRefReferences, parseCPIntReferences, parseCPLongReferences, parseCPMethodRefReferences, parseCPSignatureReferences, parseCPSignatureReferences, parseCPStringReferences, parseCPUTF8References, parseCPUTF8References, parseFlags, parseFlags, parseFlags, parseFlags, parseReferences, parseReferences, unpack
-
-
-
-
Constructor Detail
-
ClassBands
public ClassBands(Segment segment)
- Parameters:
segment- TODO
-
-
Method Detail
-
getClassAttributes
public java.util.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 java.util.ArrayList<Attribute>[][] getFieldAttributes()
-
getFieldDescrInts
public int[][] getFieldDescrInts()
-
getFieldFlags
public long[][] getFieldFlags()
-
getIcLocal
public IcTuple[][] getIcLocal()
-
getMethodAttributes
public java.util.ArrayList<Attribute>[][] getMethodAttributes()
-
getMethodDescr
public java.lang.String[][] getMethodDescr()
-
getMethodDescrInts
public int[][] getMethodDescrInts()
-
getMethodFlags
public long[][] getMethodFlags()
-
getOrderedCodeAttributes
public java.util.ArrayList<java.util.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()
-
read
public void read(java.io.InputStream in) throws java.io.IOException, Pack200Exception
Description copied from class:BandSetReads the input stream.- Specified by:
readin classBandSet- Parameters:
in- the stream to read.- Throws:
java.io.IOException- if a problem occurs during reading from the underlying stream.Pack200Exception- if a problem occurs with an unexpected value or unsupported Codec.
-
-