proguard.classfile.attribute.preverification
Class ObjectType

java.lang.Object
  extended by proguard.classfile.attribute.preverification.VerificationType
      extended by proguard.classfile.attribute.preverification.ObjectType
All Implemented Interfaces:
VisitorAccepter

public class ObjectType
extends VerificationType

This VerificationType represents an Object type.


Field Summary
 int u2classIndex
           
 
Fields inherited from class proguard.classfile.attribute.preverification.VerificationType
DOUBLE_TYPE, FLOAT_TYPE, INTEGER_TYPE, LONG_TYPE, NULL_TYPE, OBJECT_TYPE, TOP_TYPE, UNINITIALIZED_THIS_TYPE, UNINITIALIZED_TYPE, visitorInfo
 
Constructor Summary
ObjectType()
          Creates an uninitialized ObjectType.
ObjectType(int u2classIndex)
          Creates an ObjectType that points to the given class constant.
 
Method Summary
 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.
 
Methods inherited from class proguard.classfile.attribute.preverification.VerificationType
getVisitorInfo, setVisitorInfo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

u2classIndex

public int u2classIndex
Constructor Detail

ObjectType

public ObjectType()
Creates an uninitialized ObjectType.


ObjectType

public ObjectType(int u2classIndex)
Creates an ObjectType that points to the given class constant.

Method Detail

getTag

public int getTag()
Description copied from class: VerificationType
Returns the tag of the verification type.

Specified by:
getTag in class VerificationType

accept

public void accept(Clazz clazz,
                   Method method,
                   CodeAttribute codeAttribute,
                   int instructionOffset,
                   VerificationTypeVisitor verificationTypeVisitor)
Description copied from class: VerificationType
Accepts the given visitor in the context of a method's code, either on a stack or as a variable.

Specified by:
accept in class VerificationType

stackAccept

public void stackAccept(Clazz clazz,
                        Method method,
                        CodeAttribute codeAttribute,
                        int instructionOffset,
                        int stackIndex,
                        VerificationTypeVisitor verificationTypeVisitor)
Description copied from class: VerificationType
Accepts the given visitor in the context of a stack in a method's code .

Specified by:
stackAccept in class VerificationType

variablesAccept

public void variablesAccept(Clazz clazz,
                            Method method,
                            CodeAttribute codeAttribute,
                            int instructionOffset,
                            int variableIndex,
                            VerificationTypeVisitor verificationTypeVisitor)
Description copied from class: VerificationType
Accepts the given visitor in the context of a variable in a method's code.

Specified by:
variablesAccept in class VerificationType

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class VerificationType

hashCode

public int hashCode()
Overrides:
hashCode in class VerificationType

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object