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 32 public class LessZeroFrame extends StackMapFrame 33 { 34 public int choppedVariablesCount; 35 36 37 40 public LessZeroFrame() 41 { 42 } 43 44 45 48 public LessZeroFrame(int tag) 49 { 50 choppedVariablesCount = LESS_ZERO_FRAME + 3 - tag; 51 } 52 53 54 57 public LessZeroFrame(byte choppedVariablesCount) 58 { 59 this.choppedVariablesCount = (int)choppedVariablesCount; 60 } 61 62 63 65 public int getTag() 66 { 67 return LESS_ZERO_FRAME + 3 - choppedVariablesCount; 68 } 69 70 71 public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor) 72 { 73 stackMapFrameVisitor.visitLessZeroFrame(clazz, method, codeAttribute, offset, this); 74 } 75 76 77 79 public boolean equals(Object object) 80 { 81 if (!super.equals(object)) 82 { 83 return false; 84 } 85 86 LessZeroFrame other = (LessZeroFrame)object; 87 88 return this.u2offsetDelta == other.u2offsetDelta && 89 this.choppedVariablesCount != other.choppedVariablesCount; 90 } 91 92 93 public int hashCode() 94 { 95 return super.hashCode() ^ choppedVariablesCount; 96 } 97 98 99 public String toString() 100 { 101 return super.toString()+"Var: (chopped "+choppedVariablesCount+"), Stack: (empty)"; 102 } 103 } 104 | Popular Tags |