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[]
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[][]
getFieldAttributes()
int[][]
getFieldDescrInts()
long[][]
getFieldFlags()
IcTuple[][]
getIcLocal()
java.util.ArrayList[][]
getMethodAttributes()
java.lang.String[][]
getMethodDescr()
int[][]
getMethodDescrInts()
long[][]
getMethodFlags()
java.util.ArrayList
getOrderedCodeAttributes()
Answer an ArrayList of ArrayLists which hold the code attributes corresponding to all classes in order.long[]
getRawClassFlags()
void
read(java.io.InputStream in)
void
unpack()
-
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
-
read
public void read(java.io.InputStream in) throws java.io.IOException, Pack200Exception
- Specified by:
read
in classBandSet
- Throws:
java.io.IOException
Pack200Exception
-
getClassAttributes
public java.util.ArrayList[] getClassAttributes()
-
getClassFieldCount
public int[] getClassFieldCount()
-
getRawClassFlags
public long[] getRawClassFlags()
-
getClassFlags
public long[] getClassFlags() throws Pack200Exception
- Throws:
Pack200Exception
-
getClassInterfacesInts
public int[][] getClassInterfacesInts()
-
getClassMethodCount
public int[] getClassMethodCount()
-
getClassSuperInts
public int[] getClassSuperInts()
-
getClassThisInts
public int[] getClassThisInts()
-
getCodeMaxNALocals
public int[] getCodeMaxNALocals()
-
getCodeMaxStack
public int[] getCodeMaxStack()
-
getFieldAttributes
public java.util.ArrayList[][] getFieldAttributes()
-
getFieldDescrInts
public int[][] getFieldDescrInts()
-
getMethodDescrInts
public int[][] getMethodDescrInts()
-
getFieldFlags
public long[][] getFieldFlags() throws Pack200Exception
- Throws:
Pack200Exception
-
getOrderedCodeAttributes
public java.util.ArrayList getOrderedCodeAttributes()
Answer 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
-
getMethodAttributes
public java.util.ArrayList[][] getMethodAttributes()
-
getMethodDescr
public java.lang.String[][] getMethodDescr()
-
getMethodFlags
public long[][] getMethodFlags() throws Pack200Exception
- Throws:
Pack200Exception
-
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
-
getCodeHandlerCount
public int[] getCodeHandlerCount()
-
getCodeHandlerCatchPO
public int[][] getCodeHandlerCatchPO()
-
getCodeHandlerClassRCN
public int[][] getCodeHandlerClassRCN()
-
getCodeHandlerEndPO
public int[][] getCodeHandlerEndPO()
-
getCodeHandlerStartP
public int[][] getCodeHandlerStartP()
-
getIcLocal
public IcTuple[][] getIcLocal()
-
getCodeHasAttributes
public boolean[] getCodeHasAttributes()
-
-