Class VerificationTypeInfo


  • public class VerificationTypeInfo
    extends Object
    Represents verification type information used in stack map frames.
    • Constructor Detail

      • VerificationTypeInfo

        public VerificationTypeInfo​(int tag,
                                    Object info)
        Constructs a VerificationTypeInfo.
        Parameters:
        tag - the verification type tag
        info - additional information (index or offset), or null
    • Method Detail

      • getTag

        public int getTag()
        Returns:
        the tag
      • getInfo

        public Object getInfo()
        Returns:
        the info
      • write

        public void write​(DataOutputStream dos)
                   throws IOException
        Writes this verification type info to the output stream.
        Parameters:
        dos - the output stream to write to
        Throws:
        IOException - if an I/O error occurs
      • getLength

        public int getLength()
        Returns the length of this verification type info in bytes.
        Returns:
        the length in bytes
      • readVerificationTypeInfo

        public static VerificationTypeInfo readVerificationTypeInfo​(ClassFile classFile,
                                                                    ConstPool constPool)
        Reads a verification type info from the class file.
        Parameters:
        classFile - the class file to read from
        constPool - the constant pool for resolving references
        Returns:
        the parsed VerificationTypeInfo