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 SameZeroFrame extends StackMapFrame 33 { 34 37 public SameZeroFrame() 38 { 39 } 40 41 42 45 public SameZeroFrame(int tag) 46 { 47 u2offsetDelta = tag - SAME_ZERO_FRAME; 48 } 49 50 51 53 public int getTag() 54 { 55 return u2offsetDelta < 64 ? 56 SAME_ZERO_FRAME + u2offsetDelta : 57 SAME_ZERO_FRAME_EXTENDED; 58 } 59 60 61 public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor) 62 { 63 stackMapFrameVisitor.visitSameZeroFrame(clazz, method, codeAttribute, offset, this); 64 } 65 66 67 69 public String toString() 70 { 71 return super.toString()+"Var: ..., Stack: (empty)"; 72 } 73 } 74 | Popular Tags |