public class ObjectType extends VerificationType
VerificationType
represents an Object
type.Modifier and Type | Field and Description |
---|---|
int |
u2classIndex |
DOUBLE_TYPE, FLOAT_TYPE, INTEGER_TYPE, LONG_TYPE, NULL_TYPE, OBJECT_TYPE, TOP_TYPE, UNINITIALIZED_THIS_TYPE, UNINITIALIZED_TYPE
processingFlags, processingInfo
Constructor and Description |
---|
ObjectType()
Creates an uninitialized ObjectType.
|
ObjectType(int u2classIndex)
Creates an ObjectType that points to the given class constant.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int instructionOffset,
VerificationTypeVisitor verificationTypeVisitor)
Accepts the given visitor in the context of a method's code, either on
a stack or as a variable.
|
boolean |
equals(java.lang.Object object) |
int |
getTag()
Returns the tag of the verification type.
|
int |
hashCode() |
void |
stackAccept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int instructionOffset,
int stackIndex,
VerificationTypeVisitor verificationTypeVisitor)
Accepts the given visitor in the context of a stack in a method's code .
|
java.lang.String |
toString() |
void |
variablesAccept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int instructionOffset,
int variableIndex,
VerificationTypeVisitor verificationTypeVisitor)
Accepts the given visitor in the context of a variable in a method's code.
|
getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfo
public ObjectType()
public ObjectType(int u2classIndex)
public int getTag()
VerificationType
getTag
in class VerificationType
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, VerificationTypeVisitor verificationTypeVisitor)
VerificationType
accept
in class VerificationType
public void stackAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIndex, VerificationTypeVisitor verificationTypeVisitor)
VerificationType
stackAccept
in class VerificationType
public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor)
VerificationType
variablesAccept
in class VerificationType
public boolean equals(java.lang.Object object)
equals
in class VerificationType
public int hashCode()
hashCode
in class VerificationType
public java.lang.String toString()
toString
in class java.lang.Object