Class StackMap

java.lang.Object
org.openjdk.asmtools.common.structure.StackMap

public class StackMap extends Object
4.7.4. The StackMapTable Attribute
  • Constructor Details

    • StackMap

      public StackMap()
  • Method Details

    • getVerificationType

      public static StackMap.VerificationType getVerificationType(int verificationTypeID, Optional<Consumer<String>> errorConsumer)
      Parameters:
      verificationTypeID - u1 tag
      errorConsumer - consumer to announce a problem
      Returns:
      associated StackMap Verification Type
    • getVerificationType

      public static StackMap.VerificationType getVerificationType(String printName)
    • stackMapFrameType

      public static StackMap.FrameType stackMapFrameType(int tag)
      Get Frame Type by tag belonging the range
      Parameters:
      tag - u1 tag in range
      Returns:
    • getFrameTypeTag

      public static int getFrameTypeTag(String frameTypeName)
      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