org.apache.commons.compress.harmony.pack200

## Class ClassBands

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

-     public class ClassBands
      extends BandSet

  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

    Constructors
    Constructor and Description
    `ClassBands(Segment segment, int numClasses, int effort, boolean stripDebug)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addAnnotation(int context, String desc, boolean visible, List nameRU, List t, List values, List caseArrayN, List nestTypeRS, List nestNameRU, List nestPairN)`
    `void` | `addAnnotationDefault(List nameRU, List t, List values, List caseArrayN, List nestTypeRS, List nestNameRU, List 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` | `addField(int flags, String name, String desc, String signature, Object value)`
    `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` | `addMethod(int flags, String name, String desc, String signature, String[] exceptions)`
    `void` | `addMethodAttribute(NewAttribute attribute)`
    `void` | `addParameterAnnotation(int parameter, String desc, boolean visible, List nameRU, List t, List values, List caseArrayN, List nestTypeRS, List nestNameRU, List nestPairN)`
    `void` | `addSourceFile(String source)`
    `protected static int` | `countArgs(String descriptor)`
    `void` | `currentClassReferencesInnerClass(CPClass inner)`
    `void` | `doBciRenumbering(IntList bciRenumbering, Map labelsToOffsets)`
    `void` | `endOfClass()`
    `void` | `endOfMethod()`
    `void` | `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.
    `boolean` | `isAnySyntheticClasses()`
    `boolean` | `isAnySyntheticFields()`
    `boolean` | `isAnySyntheticMethods()`
    `int` | `numClassesProcessed()`
    `void` | `pack(OutputStream out)` Write the packed set of bands to the given output stream
    `void` | `removeCurrentClass()` Remove all entries for the current class

    - ### 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`

- - ### Constructor Detail

    - #### ClassBands

          public ClassBands(Segment segment,
                            int numClasses,
                            int effort,
                            boolean stripDebug)
                     throws IOException

      Throws:
        `IOException`

  - ### Method Detail

    - #### addClass

          public void addClass(int major,
                               int flags,
                               String className,
                               String signature,
                               String superName,
                               String[] interfaces)

    - #### currentClassReferencesInnerClass

          public void currentClassReferencesInnerClass(CPClass inner)

    - #### addField

          public void addField(int flags,
                               String name,
                               String desc,
                               String signature,
                               Object value)

    - #### finaliseBands

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

    - #### 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

    - #### addMethod

          public void addMethod(int flags,
                                String name,
                                String desc,
                                String signature,
                                String[] exceptions)

    - #### endOfMethod

          public void endOfMethod()

    - #### countArgs

          protected static int countArgs(String descriptor)

    - #### endOfClass

          public void endOfClass()

    - #### addSourceFile

          public void addSourceFile(String source)

    - #### addEnclosingMethod

          public void addEnclosingMethod(String owner,
                                         String name,
                                         String desc)

    - #### addClassAttribute

          public void addClassAttribute(NewAttribute attribute)

    - #### addFieldAttribute

          public void addFieldAttribute(NewAttribute attribute)

    - #### addMethodAttribute

          public void addMethodAttribute(NewAttribute attribute)

    - #### addCodeAttribute

          public void addCodeAttribute(NewAttribute attribute)

    - #### addMaxStack

          public void addMaxStack(int maxStack,
                                  int maxLocals)

    - #### addCode

          public void addCode()

    - #### addHandler

          public void addHandler(org.objectweb.asm.Label start,
                                 org.objectweb.asm.Label end,
                                 org.objectweb.asm.Label handler,
                                 String type)

    - #### addLineNumber

          public void addLineNumber(int line,
                                    org.objectweb.asm.Label start)

    - #### addLocalVariable

          public void addLocalVariable(String name,
                                       String desc,
                                       String signature,
                                       org.objectweb.asm.Label start,
                                       org.objectweb.asm.Label end,
                                       int indx)

    - #### doBciRenumbering

          public void doBciRenumbering(IntList bciRenumbering,
                                       Map labelsToOffsets)

    - #### isAnySyntheticClasses

          public boolean isAnySyntheticClasses()

    - #### isAnySyntheticFields

          public boolean isAnySyntheticFields()

    - #### isAnySyntheticMethods

          public boolean isAnySyntheticMethods()

    - #### addParameterAnnotation

          public void addParameterAnnotation(int parameter,
                                             String desc,
                                             boolean visible,
                                             List nameRU,
                                             List t,
                                             List values,
                                             List caseArrayN,
                                             List nestTypeRS,
                                             List nestNameRU,
                                             List nestPairN)

    - #### addAnnotation

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

    - #### addAnnotationDefault

          public void addAnnotationDefault(List nameRU,
                                           List t,
                                           List values,
                                           List caseArrayN,
                                           List nestTypeRS,
                                           List nestNameRU,
                                           List nestPairN)

    - #### removeCurrentClass

          public void removeCurrentClass()

      Remove all entries for the current class

    - #### numClassesProcessed

          public int numClassesProcessed()

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