Package kala.compress.harmony.unpack200
Class NewAttributeBands.Union
java.lang.Object
kala.compress.harmony.unpack200.NewAttributeBands.LayoutElement
kala.compress.harmony.unpack200.NewAttributeBands.Union
- All Implemented Interfaces:
NewAttributeBands.AttributeLayoutElement
- Enclosing class:
NewAttributeBands
A Union is a type of layout element where the tag value acts as a selector for one of the union cases
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]private final List<NewAttributeBands.LayoutElement> private intprivate final List<NewAttributeBands.UnionCase> private final NewAttributeBands.Integral -
Constructor Summary
ConstructorsConstructorDescriptionUnion(String tag, List<NewAttributeBands.UnionCase> unionCases, List<NewAttributeBands.LayoutElement> body) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToAttribute(int n, NewAttribute attribute) Adds the band data for this element at the given index to the attribute.voidreadBands(InputStream in, int count) Read the bands associated with this part of the layout.Methods inherited from class kala.compress.harmony.unpack200.NewAttributeBands.LayoutElement
getLength
-
Field Details
-
unionTag
-
unionCases
-
defaultCaseBody
-
caseCounts
private int[] caseCounts -
defaultCount
private int defaultCount
-
-
Constructor Details
-
Union
public Union(String tag, List<NewAttributeBands.UnionCase> unionCases, List<NewAttributeBands.LayoutElement> body)
-
-
Method Details
-
addToAttribute
Description copied from interface:NewAttributeBands.AttributeLayoutElementAdds the band data for this element at the given index to the attribute.- Parameters:
n- Index position to add the attribute.attribute- The attribute to add.
-
getDefaultCaseBody
-
getUnionCases
-
getUnionTag
-
readBands
Description copied from interface:NewAttributeBands.AttributeLayoutElementRead the bands associated with this part of the layout.- Parameters:
in- TODOcount- TODO- Throws:
IOException- If an I/O error occurs.Pack200Exception- Bad archive.
-