1 21 package proguard.classfile.attribute.preverification; 22 23 import proguard.classfile.*; 24 import proguard.classfile.attribute.CodeAttribute; 25 import proguard.classfile.attribute.preverification.visitor.*; 26 27 33 public abstract class StackMapFrame implements VisitorAccepter 34 { 35 public static final int SAME_ZERO_FRAME = 0; 36 public static final int SAME_ONE_FRAME = 64; 37 public static final int SAME_ONE_FRAME_EXTENDED = 247; 38 public static final int LESS_ZERO_FRAME = 248; 39 public static final int SAME_ZERO_FRAME_EXTENDED = 251; 40 public static final int MORE_ZERO_FRAME = 252; 41 public static final int FULL_FRAME = 255; 42 43 44 public int u2offsetDelta; 45 46 49 public Object visitorInfo; 50 51 52 53 57 public int getOffsetDelta() 58 { 59 return u2offsetDelta; 60 } 61 62 63 65 68 public abstract int getTag(); 69 70 71 74 public abstract void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor); 75 76 77 79 public Object getVisitorInfo() 80 { 81 return visitorInfo; 82 } 83 84 public void setVisitorInfo(Object visitorInfo) 85 { 86 this.visitorInfo = visitorInfo; 87 } 88 89 90 92 public boolean equals(Object object) 93 { 94 if (object == null || 95 this.getClass() != object.getClass()) 96 { 97 return false; 98 } 99 100 StackMapFrame other = (StackMapFrame)object; 101 102 return this.u2offsetDelta == other.u2offsetDelta; 103 } 104 105 106 public int hashCode() 107 { 108 return getClass().hashCode() ^ 109 u2offsetDelta; 110 } 111 112 113 public String toString() 114 { 115 return "[" + u2offsetDelta + "] "; 116 } 117 } 118 | Popular Tags |