Package kala.compress.harmony.unpack200
Class AttributeLayoutMap
java.lang.Object
kala.compress.harmony.unpack200.AttributeLayoutMap
Stores a mapping from attribute names to their corresponding layout types. Note that names of attribute layouts and their formats are not
internationalized, and should not be translated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Integer, AttributeLayout> private final Map<Integer, AttributeLayout> private final Map<Integer, AttributeLayout> private final Map<Integer,AttributeLayout>[] The order of the maps in this array should not be changed as their indices correspond to the value of their context constants (AttributeLayout.CONTEXT_CLASS etc.)private final Map<AttributeLayout, NewAttributeBands> private final Map<Integer, AttributeLayout> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AttributeLayout layout) voidadd(AttributeLayout layout, NewAttributeBands newBands) voidcheckMap()The map should not contain the same layout and name combination more than once for each context.getAttributeBands(AttributeLayout layout) getAttributeLayout(int index, int context) getAttributeLayout(String name, int context) private static AttributeLayout[]private Map<Integer, AttributeLayout> getLayout(int context)
-
Field Details
-
classLayouts
-
fieldLayouts
-
methodLayouts
-
codeLayouts
-
layouts
The order of the maps in this array should not be changed as their indices correspond to the value of their context constants (AttributeLayout.CONTEXT_CLASS etc.)All elements are of type
Map<Integer, AttributeLayout>. -
layoutsToBands
-
-
Constructor Details
-
AttributeLayoutMap
- Throws:
Pack200Exception
-
-
Method Details
-
getDefaultAttributeLayouts
- Throws:
Pack200Exception
-
add
-
add
-
checkMap
The map should not contain the same layout and name combination more than once for each context.- Throws:
Pack200Exception- Thrown when the name layout/name combination exists twice for a context.
-
getAttributeBands
-
getAttributeLayout
-
getAttributeLayout
-
getLayout
-