proguard.classfile.attribute.preverification
Class StackMapFrame

java.lang.Object
  extended by proguard.classfile.attribute.preverification.StackMapFrame
All Implemented Interfaces:
VisitorAccepter
Direct Known Subclasses:
FullFrame, LessZeroFrame, MoreZeroFrame, SameOneFrame, SameZeroFrame

public abstract class StackMapFrame
extends java.lang.Object
implements VisitorAccepter

This abstract class represents a stack map frame. Specific types of entries are subclassed from it.


Field Summary
static int FULL_FRAME
           
static int LESS_ZERO_FRAME
           
static int MORE_ZERO_FRAME
           
static int SAME_ONE_FRAME
           
static int SAME_ONE_FRAME_EXTENDED
           
static int SAME_ZERO_FRAME
           
static int SAME_ZERO_FRAME_EXTENDED
           
 int u2offsetDelta
           
 java.lang.Object visitorInfo
          An extra field in which visitors can store information.
 
Constructor Summary
StackMapFrame()
           
 
Method Summary
abstract  void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
          Accepts the given visitor.
 boolean equals(java.lang.Object object)
           
 int getOffsetDelta()
          Returns the bytecode offset delta relative to the previous stack map frame.
abstract  int getTag()
          Returns the stack map frame tag that specifies the entry type.
 java.lang.Object getVisitorInfo()
          Gets the visitor information of the visitor accepter.
 int hashCode()
           
 void setVisitorInfo(java.lang.Object visitorInfo)
          Sets the visitor information of the visitor accepter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SAME_ZERO_FRAME

public static final int SAME_ZERO_FRAME
See Also:
Constant Field Values

SAME_ONE_FRAME

public static final int SAME_ONE_FRAME
See Also:
Constant Field Values

SAME_ONE_FRAME_EXTENDED

public static final int SAME_ONE_FRAME_EXTENDED
See Also:
Constant Field Values

LESS_ZERO_FRAME

public static final int LESS_ZERO_FRAME
See Also:
Constant Field Values

SAME_ZERO_FRAME_EXTENDED

public static final int SAME_ZERO_FRAME_EXTENDED
See Also:
Constant Field Values

MORE_ZERO_FRAME

public static final int MORE_ZERO_FRAME
See Also:
Constant Field Values

FULL_FRAME

public static final int FULL_FRAME
See Also:
Constant Field Values

u2offsetDelta

public int u2offsetDelta

visitorInfo

public java.lang.Object visitorInfo
An extra field in which visitors can store information.

Constructor Detail

StackMapFrame

public StackMapFrame()
Method Detail

getOffsetDelta

public int getOffsetDelta()
Returns the bytecode offset delta relative to the previous stack map frame.


getTag

public abstract int getTag()
Returns the stack map frame tag that specifies the entry type.


accept

public abstract void accept(Clazz clazz,
                            Method method,
                            CodeAttribute codeAttribute,
                            int offset,
                            StackMapFrameVisitor stackMapFrameVisitor)
Accepts the given visitor.


getVisitorInfo

public java.lang.Object getVisitorInfo()
Description copied from interface: VisitorAccepter
Gets the visitor information of the visitor accepter.

Specified by:
getVisitorInfo in interface VisitorAccepter

setVisitorInfo

public void setVisitorInfo(java.lang.Object visitorInfo)
Description copied from interface: VisitorAccepter
Sets the visitor information of the visitor accepter.

Specified by:
setVisitorInfo in interface VisitorAccepter

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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