org.apache.commons.compress.harmony.pack200

## Class MetadataBandGroup

- java.lang.Object
- - org.apache.commons.compress.harmony.pack200.BandSet
  - - org.apache.commons.compress.harmony.pack200.MetadataBandGroup

-     public class MetadataBandGroup
      extends BandSet

  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

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `IntList` | `anno_N`
    `IntList` | `casearray_N`
    `List` | `casec_RS`
    `List` | `caseD_KD`
    `List` | `caseec_RU`
    `List` | `caseet_RS`
    `List` | `caseF_KF`
    `List` | `caseI_KI`
    `List` | `caseJ_KJ`
    `List` | `cases_RU`
    `static int` | `CONTEXT_CLASS`
    `static int` | `CONTEXT_FIELD`
    `static int` | `CONTEXT_METHOD`
    `List` | `name_RU`
    `List` | `nestname_RU`
    `IntList` | `nestpair_N`
    `List` | `nesttype_RS`
    `IntList` | `pair_N`
    `IntList` | `param_NB`
    `List` | `T`
    `List` | `type_RS`

    - ### Fields inherited from class org.apache.commons.compress.harmony.pack200.BandSet

      `segmentHeader`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MetadataBandGroup(String type, int context, CpBands cpBands, SegmentHeader segmentHeader, int effort)` Constructs a new MetadataBandGroup

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addAnnotation(String desc, List nameRU, List t, List values, List caseArrayN, List nestTypeRS, List nestNameRU, List nestPairN)` Add an annotation to this set of bands
    `void` | `addParameterAnnotation(int numParams, int[] annoN, IntList pairN, List typeRS, List nameRU, List t, List values, List caseArrayN, List nestTypeRS, List nestNameRU, List nestPairN)` Add an annotation to this set of bands.
    `boolean` | `hasContent()` Returns true if any annotations have been added to this set of bands.
    `void` | `incrementAnnoN()`
    `void` | `newEntryInAnnoN()`
    `int` | `numBackwardsCalls()`
    `void` | `pack(OutputStream out)` Write the packed set of bands to the given output stream
    `void` | `removeLatest()` Remove the latest annotation that was added to this group

    - ### Methods inherited from class org.apache.commons.compress.harmony.pack200.BandSet

      `cpEntryListToArray, cpEntryOrNullListToArray, encodeBandInt, encodeFlags, encodeFlags, encodeScalar, encodeScalar, integerListToArray, longListToArray`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### CONTEXT_CLASS

          public static final int CONTEXT_CLASS

      See Also:
        Constant Field Values

    - #### CONTEXT_FIELD

          public static final int CONTEXT_FIELD

      See Also:
        Constant Field Values

    - #### CONTEXT_METHOD

          public static final int CONTEXT_METHOD

      See Also:
        Constant Field Values

    - #### param_NB

          public IntList param_NB

    - #### anno_N

          public IntList anno_N

    - #### type_RS

          public List type_RS

    - #### pair_N

          public IntList pair_N

    - #### name_RU

          public List name_RU

    - #### T

          public List T

    - #### caseI_KI

          public List caseI_KI

    - #### caseD_KD

          public List caseD_KD

    - #### caseF_KF

          public List caseF_KF

    - #### caseJ_KJ

          public List caseJ_KJ

    - #### casec_RS

          public List casec_RS

    - #### caseet_RS

          public List caseet_RS

    - #### caseec_RU

          public List caseec_RU

    - #### cases_RU

          public List cases_RU

    - #### casearray_N

          public IntList casearray_N

    - #### nesttype_RS

          public List nesttype_RS

    - #### nestpair_N

          public IntList nestpair_N

    - #### nestname_RU

          public List nestname_RU

  - ### Constructor Detail

    - #### 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` or `CONTEXT_FIELD`
        `cpBands` - constant pool bands
        `segmentHeader` - segment header
        `effort` - packing effort

  - ### Method Detail

    - #### pack

          public void pack(OutputStream out)
                    throws IOException,
                           Pack200Exception

      Description copied from class: `BandSet`
      Write the packed set of bands to the given output stream
      Specified by:
        `pack` in class `BandSet`
      Parameters:
        `out` - TODO
      Throws:
        `IOException` - If an I/O error occurs.
        `Pack200Exception` - TODO

    - #### addParameterAnnotation

          public void addParameterAnnotation(int numParams,
                                             int[] annoN,
                                             IntList pairN,
                                             List typeRS,
                                             List nameRU,
                                             List t,
                                             List values,
                                             List caseArrayN,
                                             List nestTypeRS,
                                             List nestNameRU,
                                             List nestPairN)

      Add an annotation to this set of bands.
      Parameters:
        `numParams` - TODO
        `annoN` - TODO
        `pairN` - TODO
        `typeRS` - TODO
        `nameRU` - TODO
        `t` - TODO
        `values` - TODO
        `caseArrayN` - TODO
        `nestTypeRS` - TODO
        `nestNameRU` - TODO
        `nestPairN` - TODO

    - #### addAnnotation

          public void addAnnotation(String desc,
                                    List nameRU,
                                    List t,
                                    List values,
                                    List caseArrayN,
                                    List nestTypeRS,
                                    List nestNameRU,
                                    List nestPairN)

      Add an annotation to this set of bands
      Parameters:
        `desc` - TODO
        `nameRU` - TODO
        `t` - TODO
        `values` - TODO
        `caseArrayN` - TODO
        `nestTypeRS` - TODO
        `nestNameRU` - TODO
        `nestPairN` - TODO

    - #### hasContent

          public boolean 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.

    - #### numBackwardsCalls

          public int numBackwardsCalls()

    - #### incrementAnnoN

          public void incrementAnnoN()

    - #### newEntryInAnnoN

          public void newEntryInAnnoN()

    - #### removeLatest

          public void removeLatest()

      Remove the latest annotation that was added to this group

Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.