1 19 20 25 26 package soot.tagkit; 27 import soot.*; 28 29 30 34 35 public class EnclosingMethodTag implements Tag 36 { 37 38 private String enclosingClass; 39 private String enclosingMethod; 40 private String enclosingMethodSig; 41 42 public EnclosingMethodTag(String c, String m, String s){ 43 this.enclosingClass = c; 44 this.enclosingMethod = m; 45 this.enclosingMethodSig = s; 46 } 47 48 public String toString() { 49 return "Enclosing Class: "+enclosingClass+" Enclosing Method: "+enclosingMethod+" Sig: "+enclosingMethodSig; 50 } 51 52 53 public String getName() { 54 return "EnclosingMethodTag"; 55 } 56 57 public String getInfo(){ 58 return "EnclosingMethod"; 59 } 60 61 public String getEnclosingClass(){ 62 return enclosingClass; 63 } 64 65 public String getEnclosingMethod(){ 66 return enclosingMethod; 67 } 68 69 public String getEnclosingMethodSig(){ 70 return enclosingMethodSig; 71 } 72 73 74 public byte[] getValue() { 75 throw new RuntimeException ( "EnclosingMethodTag has no value for bytecode" ); 76 } 77 } 78 79 | Popular Tags |