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<FormatConsumer<String,Object>> errorConsumer)
      Parameters:
      verificationTypeID - u1 tag
      errorConsumer - consumer to announce a problem
      Returns:
      associated StackMap Verification Type
    • getVerificationType

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

      public static StackMap.EntryType stackMapEntryType(int tag)
      Get Entry Type by tag belonging the range
      Parameters:
      tag - u1 tag in range
      Returns:
    • getFrameTypeTagByName

      public static int getFrameTypeTagByName(String frameTypeName)
      Get frame type id by a name
      Parameters:
      frameTypeName - frame type name
      Returns:
      Stack FrameType tag [0..255]
    • getEntryTypeByName

      public static StackMap.EntryType getEntryTypeByName(String entryTypeName)
      Get entry type id by a name
      Parameters:
      entryTypeName - entry type name
      Returns:
      Stack FrameType tag [0..255]
    • isValidEntryType

      public static boolean isValidEntryType(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