1 30 package com.tc.asm.tree.analysis; 31 32 import java.util.Set ; 33 34 import com.tc.asm.tree.AbstractInsnNode; 35 36 42 public class DataflowValue implements Value { 43 44 47 public final int size; 48 49 64 public final Set insns; 65 66 public DataflowValue(final int size) { 67 this(size, SmallSet.EMPTY_SET); 68 } 69 70 public DataflowValue(final int size, final AbstractInsnNode insn) { 71 this.size = size; 72 this.insns = new SmallSet(insn, null); 73 } 74 75 public DataflowValue(final int size, final Set insns) { 76 this.size = size; 77 this.insns = insns; 78 } 79 80 public int getSize() { 81 return size; 82 } 83 84 public boolean equals(final Object value) { 85 DataflowValue v = (DataflowValue) value; 86 return size == v.size && insns.equals(v.insns); 87 } 88 89 public int hashCode() { 90 return insns.hashCode(); 91 } 92 } 93 | Popular Tags |