Class ClassBands
java.lang.Object
org.apache.commons.compress.harmony.pack200.BandSet
org.apache.commons.compress.harmony.pack200.ClassBands
Class bands (corresponds to the
class_bands
set of bands in the pack200 specification)-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.compress.harmony.pack200.BandSet
BandSet.BandAnalysisResults, BandSet.BandData
-
Field Summary
Fields inherited from class org.apache.commons.compress.harmony.pack200.BandSet
segmentHeader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(int context, String desc, boolean visible, List<String> nameRU, List<String> tags, List<Object> values, List<Integer> caseArrayN, List<String> nestTypeRS, List<String> nestNameRU, List<Integer> nestPairN) void
addAnnotationDefault
(List<String> nameRU, List<String> tags, List<Object> values, List<Integer> caseArrayN, List<String> nestTypeRS, List<String> nestNameRU, List<Integer> nestPairN) void
addClass
(int major, int flags, String className, String signature, String superName, String[] interfaces) void
addClassAttribute
(NewAttribute attribute) void
addCode()
void
addCodeAttribute
(NewAttribute attribute) void
addEnclosingMethod
(String owner, String name, String desc) void
void
addFieldAttribute
(NewAttribute attribute) void
addHandler
(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type) void
addLineNumber
(int line, org.objectweb.asm.Label start) void
addLocalVariable
(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int indx) void
addMaxStack
(int maxStack, int maxLocals) void
void
addMethodAttribute
(NewAttribute attribute) void
addParameterAnnotation
(int parameter, String desc, boolean visible, List<String> nameRU, List<String> tags, List<Object> values, List<Integer> caseArrayN, List<String> nestTypeRS, List<String> nestNameRU, List<Integer> nestPairN) void
addSourceFile
(String source) protected static int
void
void
doBciRenumbering
(IntList bciRenumbering, Map<org.objectweb.asm.Label, Integer> labelsToOffsets) void
void
void
All input classes for the segment have now been read in, so this method is called so that this class can calculate/complete anything it could not do while classes were being read.boolean
boolean
boolean
int
void
pack
(OutputStream out) Write the packed set of bands to the given output streamvoid
Remove all entries for the current classMethods inherited from class org.apache.commons.compress.harmony.pack200.BandSet
cpEntryListToArray, cpEntryOrNullListToArray, encodeBandInt, encodeFlags, encodeFlags, encodeScalar, encodeScalar, integerListToArray, longListToArray
-
Constructor Details
-
ClassBands
public ClassBands(Segment segment, int numClasses, int effort, boolean stripDebug) throws IOException - Throws:
IOException
-
-
Method Details
-
countArgs
-
addAnnotation
-
addAnnotationDefault
-
addClass
-
addClassAttribute
-
addCode
-
addCodeAttribute
-
addEnclosingMethod
-
addField
-
addFieldAttribute
-
addHandler
public void addHandler(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type) -
addLineNumber
-
addLocalVariable
public void addLocalVariable(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int indx) -
addMaxStack
-
addMethod
-
addMethodAttribute
-
addParameterAnnotation
-
addSourceFile
-
currentClassReferencesInnerClass
-
doBciRenumbering
public void doBciRenumbering(IntList bciRenumbering, Map<org.objectweb.asm.Label, Integer> labelsToOffsets) -
endOfClass
-
endOfMethod
-
finaliseBands
All input classes for the segment have now been read in, so this method is called so that this class can calculate/complete anything it could not do while classes were being read. -
isAnySyntheticClasses
-
isAnySyntheticFields
-
isAnySyntheticMethods
-
numClassesProcessed
-
pack
Description copied from class:BandSet
Write the packed set of bands to the given output stream- Specified by:
pack
in classBandSet
- Parameters:
out
- TODO- Throws:
IOException
- If an I/O error occurs.Pack200Exception
- TODO
-
removeCurrentClass
Remove all entries for the current class
-