public class NewAttributeBands extends BandSet
Modifier and Type | Class and Description |
---|---|
class |
NewAttributeBands.Call |
static class |
NewAttributeBands.Callable |
class |
NewAttributeBands.Integral |
class |
NewAttributeBands.Reference
Constant Pool Reference
|
class |
NewAttributeBands.Replication
A replication is an array of layout elements, with an associated count
|
class |
NewAttributeBands.Union
A Union is a type of layout element where the tag value acts as a selector for one of the union cases
|
class |
NewAttributeBands.UnionCase
A Union case
|
Modifier and Type | Field and Description |
---|---|
protected List<org.apache.commons.compress.harmony.unpack200.NewAttributeBands.AttributeLayoutElement> |
attributeLayoutElements |
Constructor and Description |
---|
NewAttributeBands(Segment segment,
AttributeLayout attributeLayout) |
Modifier and Type | Method and Description |
---|---|
int |
getBackwardsCallCount() |
BHSDCodec |
getCodec(String layoutElement)
Returns the
BHSDCodec that should be used for the given layout element. |
List<Attribute> |
parseAttributes(InputStream in,
int occurrenceCount)
Parse the bands relating to this AttributeLayout and return the correct class file attributes as a List of
Attribute . |
void |
read(InputStream in) |
void |
setBackwardsCalls(int[] backwardsCalls)
Once the attribute bands have been read the callables can be informed about the number of times each is subject
to a backwards call.
|
void |
unpack() |
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
protected List<org.apache.commons.compress.harmony.unpack200.NewAttributeBands.AttributeLayoutElement> attributeLayoutElements
public NewAttributeBands(Segment segment, AttributeLayout attributeLayout) throws IOException
IOException
public void read(InputStream in) throws IOException, Pack200Exception
read
in class BandSet
IOException
Pack200Exception
public List<Attribute> parseAttributes(InputStream in, int occurrenceCount) throws IOException, Pack200Exception
Attribute
.in
- parse source.occurrenceCount
- TODOAttribute
.IOException
- If an I/O error occurs.Pack200Exception
- TODOpublic BHSDCodec getCodec(String layoutElement)
BHSDCodec
that should be used for the given layout element.layoutElement
- TODOBHSDCodec
that should be used for the given layout element.public int getBackwardsCallCount()
public void setBackwardsCalls(int[] backwardsCalls) throws IOException
backwardsCalls
- one int for each backwards callable, which contains the number of times that callable is
subject to a backwards call.IOException
- If an I/O error occurs.public void unpack() throws IOException, Pack200Exception
unpack
in class BandSet
IOException
Pack200Exception
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.