Class MetadataBandGroup
java.lang.Object
org.apache.commons.compress.harmony.pack200.BandSet
org.apache.commons.compress.harmony.pack200.MetadataBandGroup
A group of metadata (annotation) bands, such as class_RVA_bands, method_AD_bands etc.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.compress.harmony.pack200.BandSet
BandSet.BandAnalysisResults, BandSet.BandData
-
Field Summary
Modifier and TypeFieldDescriptionList<CPConstant<?>>
List<CPConstant<?>>
List<CPConstant<?>>
List<CPConstant<?>>
static final int
static final int
static final int
Fields inherited from class org.apache.commons.compress.harmony.pack200.BandSet
segmentHeader
-
Constructor Summary
ConstructorDescriptionMetadataBandGroup
(String type, int context, CpBands cpBands, SegmentHeader segmentHeader, int effort) Constructs a new MetadataBandGroup -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(String desc, List<String> nameRU, List<String> tags, List<Object> values, List<Integer> caseArrayN, List<String> nestTypeRS, List<String> nestNameRU, List<Integer> nestPairN) Add an annotation to this set of bandsvoid
addParameterAnnotation
(int numParams, int[] annoN, IntList pairN, List<String> typeRS, List<String> nameRU, List<String> tags, List<Object> values, List<Integer> caseArrayN, List<String> nestTypeRS, List<String> nestNameRU, List<Integer> nestPairN) Add an annotation to this set of bands.boolean
Returns true if any annotations have been added to this set of bands.void
void
int
void
pack
(OutputStream out) Write the packed set of bands to the given output streamvoid
Remove the latest annotation that was added to this groupMethods inherited from class org.apache.commons.compress.harmony.pack200.BandSet
cpEntryListToArray, cpEntryOrNullListToArray, encodeBandInt, encodeFlags, encodeFlags, encodeScalar, encodeScalar, integerListToArray, longListToArray
-
Field Details
-
CONTEXT_CLASS
- See Also:
-
CONTEXT_FIELD
- See Also:
-
CONTEXT_METHOD
- See Also:
-
param_NB
-
anno_N
-
type_RS
-
pair_N
-
name_RU
-
T
-
caseI_KI
-
caseD_KD
-
caseF_KF
-
caseJ_KJ
-
casec_RS
-
caseet_RS
-
caseec_RU
-
cases_RU
-
casearray_N
-
nesttype_RS
-
nestpair_N
-
nestname_RU
-
-
Constructor Details
-
MetadataBandGroup
public MetadataBandGroup(String type, int context, CpBands cpBands, SegmentHeader segmentHeader, int effort) Constructs a new MetadataBandGroup- Parameters:
type
- must be either AD, RVA, RIA, RVPA or RIPA.context
-CONTEXT_CLASS
,CONTEXT_METHOD
orCONTEXT_FIELD
cpBands
- constant pool bandssegmentHeader
- segment headereffort
- packing effort
-
-
Method Details
-
addAnnotation
public void addAnnotation(String desc, List<String> nameRU, List<String> tags, List<Object> values, List<Integer> caseArrayN, List<String> nestTypeRS, List<String> nestNameRU, List<Integer> nestPairN) Add an annotation to this set of bands- Parameters:
desc
- TODOnameRU
- TODOtags
- TODOvalues
- TODOcaseArrayN
- TODOnestTypeRS
- TODOnestNameRU
- TODOnestPairN
- TODO
-
addParameterAnnotation
public void addParameterAnnotation(int numParams, int[] annoN, IntList pairN, List<String> typeRS, List<String> nameRU, List<String> tags, List<Object> values, List<Integer> caseArrayN, List<String> nestTypeRS, List<String> nestNameRU, List<Integer> nestPairN) Add an annotation to this set of bands.- Parameters:
numParams
- TODOannoN
- TODOpairN
- TODOtypeRS
- TODOnameRU
- TODOtags
- TODOvalues
- TODOcaseArrayN
- TODOnestTypeRS
- TODOnestNameRU
- TODOnestPairN
- TODO
-
hasContent
Returns true if any annotations have been added to this set of bands.- Returns:
- true if any annotations have been added to this set of bands.
-
incrementAnnoN
-
newEntryInAnnoN
-
numBackwardsCalls
-
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
-
removeLatest
Remove the latest annotation that was added to this group
-