1 19 20 25 26 package soot.jimple.toolkits.annotation.tags; 27 28 40 public class ArrayNullCheckTag implements OneByteCodeTag 41 { 42 private final static String NAME = "ArrayNullCheckTag"; 43 44 private byte value = 0; 45 46 public ArrayNullCheckTag() 47 {} 48 49 public ArrayNullCheckTag(byte v) 50 { 51 value = v; 52 } 53 54 public String getName() 55 { 56 return NAME; 57 } 58 59 public byte[] getValue() 60 { 61 byte[] bv = new byte[1]; 62 bv[0] = value; 63 return bv; 64 } 65 66 public String toString() 67 { 68 return Byte.toString(value); 69 } 70 71 72 public byte accumulate(byte other) 73 { 74 byte oldv = value; 75 value |= other; 76 return oldv; 77 } 78 } 79 | Popular Tags |