Package com.tonic.parser.attribute.stack
Class VerificationTypeInfo
- java.lang.Object
-
- com.tonic.parser.attribute.stack.VerificationTypeInfo
-
public class VerificationTypeInfo extends Object
Represents verification type information used in stack map frames.
-
-
Constructor Summary
Constructors Constructor Description VerificationTypeInfo(int tag, Object info)Constructs a VerificationTypeInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetInfo()intgetLength()Returns the length of this verification type info in bytes.intgetTag()static VerificationTypeInforeadVerificationTypeInfo(ClassFile classFile, ConstPool constPool)Reads a verification type info from the class file.StringtoString()voidwrite(DataOutputStream dos)Writes this verification type info to the output stream.
-
-
-
Constructor Detail
-
VerificationTypeInfo
public VerificationTypeInfo(int tag, Object info)Constructs a VerificationTypeInfo.- Parameters:
tag- the verification type taginfo- 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 fromconstPool- the constant pool for resolving references- Returns:
- the parsed VerificationTypeInfo
-
-