Class StackMap
java.lang.Object
org.openjdk.asmtools.common.structure.StackMap
4.7.4. The StackMapTable Attribute
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
StackMap-FrameType table.static enum
MapTypes table. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getFrameTypeTag
(String frameTypeName) Get frame type id by a namestatic StackMap.VerificationType
getVerificationType
(int verificationTypeID, Optional<Consumer<String>> errorConsumer) static StackMap.VerificationType
getVerificationType
(String printName) static boolean
isValidFrameType
(int tag) Checks if the tag belongs to range of valid Frame Typesstatic StackMap.FrameType
stackMapFrameType
(int tag) Get Frame Type by tag belonging the range
-
Constructor Details
-
StackMap
public StackMap()
-
-
Method Details
-
getVerificationType
public static StackMap.VerificationType getVerificationType(int verificationTypeID, Optional<Consumer<String>> errorConsumer) - Parameters:
verificationTypeID
- u1 tagerrorConsumer
- consumer to announce a problem- Returns:
- associated StackMap Verification Type
-
getVerificationType
-
stackMapFrameType
Get Frame Type by tag belonging the range- Parameters:
tag
- u1 tag in range- Returns:
-
getFrameTypeTag
Get frame type id by a name- Parameters:
frameTypeName
- frame type name- Returns:
- Stack FrameType tag [0..255]
-
isValidFrameType
public static boolean isValidFrameType(int tag) Checks if the tag belongs to range of valid Frame Types- Parameters:
tag
-- Returns:
- true if the tag does not belong to a range either of UNKNOWN_TYPE or RESERVED
-