Package kala.compress.harmony.pack200
Class NewAttributeBands.Union
- java.lang.Object
-
- kala.compress.harmony.pack200.NewAttributeBands.LayoutElement
-
- kala.compress.harmony.pack200.NewAttributeBands.Union
-
- All Implemented Interfaces:
NewAttributeBands.AttributeLayoutElement
- Enclosing class:
- NewAttributeBands
public class NewAttributeBands.Union extends NewAttributeBands.LayoutElement
A Union is a type of layout element where the tag value acts as a selector for one of the union cases
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<NewAttributeBands.LayoutElement>defaultCaseBodyprivate java.util.List<NewAttributeBands.UnionCase>unionCasesprivate NewAttributeBands.IntegralunionTag
-
Constructor Summary
Constructors Constructor Description Union(java.lang.String tag, java.util.List<NewAttributeBands.UnionCase> unionCases, java.util.List<NewAttributeBands.LayoutElement> body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributeToBand(NewAttribute attribute, java.io.InputStream inputStream)java.util.List<NewAttributeBands.LayoutElement>getDefaultCaseBody()java.util.List<NewAttributeBands.UnionCase>getUnionCases()NewAttributeBands.IntegralgetUnionTag()voidpack(java.io.OutputStream outputStream)voidrenumberBci(IntList bciRenumbering, java.util.Map<org.objectweb.asm.Label,java.lang.Integer> labelsToOffsets)-
Methods inherited from class kala.compress.harmony.pack200.NewAttributeBands.LayoutElement
getLength
-
-
-
-
Field Detail
-
unionTag
private final NewAttributeBands.Integral unionTag
-
unionCases
private final java.util.List<NewAttributeBands.UnionCase> unionCases
-
defaultCaseBody
private final java.util.List<NewAttributeBands.LayoutElement> defaultCaseBody
-
-
Constructor Detail
-
Union
public Union(java.lang.String tag, java.util.List<NewAttributeBands.UnionCase> unionCases, java.util.List<NewAttributeBands.LayoutElement> body)
-
-
Method Detail
-
addAttributeToBand
public void addAttributeToBand(NewAttribute attribute, java.io.InputStream inputStream)
-
getDefaultCaseBody
public java.util.List<NewAttributeBands.LayoutElement> getDefaultCaseBody()
-
getUnionCases
public java.util.List<NewAttributeBands.UnionCase> getUnionCases()
-
getUnionTag
public NewAttributeBands.Integral getUnionTag()
-
pack
public void pack(java.io.OutputStream outputStream) throws java.io.IOException, Pack200Exception- Throws:
java.io.IOExceptionPack200Exception
-
renumberBci
public void renumberBci(IntList bciRenumbering, java.util.Map<org.objectweb.asm.Label,java.lang.Integer> labelsToOffsets)
-
-