1 19 20 25 26 28 29 package soot.tagkit; 30 31 import soot.*; 32 33 34 import java.util.*; 35 import javax.swing.*; 36 37 38 44 public class GenericAttribute implements Attribute 45 { 46 private String mName; 47 private byte[] mValue; 48 49 public GenericAttribute(String name, byte[] value) 50 { 51 mName = name; 52 mValue = value; 53 } 54 public String getName() 55 { 56 return mName; 57 } 58 public byte[] getValue() 59 { 60 return mValue; 61 } 62 public String toString() 63 { 64 return mName + " " + Base64.encode(mValue).toString(); 65 } 66 67 public void setValue(byte[] value) 68 { 69 mValue = value; 70 } 71 72 73 public List getUnitBoxes(){return new ArrayList();} 74 75 76 } 77 78 79 80 | Popular Tags |