Class StackMap
java.lang.Object
org.openjdk.asmtools.common.structure.StackMap
4.7.4. The StackMapTable Attribute
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStackMap-FrameType table.static enumMapTypes table. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetFrameTypeTag(String frameTypeName) Get frame type id by a namestatic StackMap.VerificationTypegetVerificationType(int verificationTypeID, Optional<Consumer<String>> errorConsumer) static StackMap.VerificationTypegetVerificationType(String printName) static booleanisValidFrameType(int tag) Checks if the tag belongs to range of valid Frame Typesstatic StackMap.FrameTypestackMapFrameType(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
-