|                                                                                                              1   package ch.ethz.inf.iks.jvmai.jvmdi;
 27
 28
 29  import java.lang.String
  ; 30  import java.lang.Class
  ; 31  import ch.ethz.jvmai.Signature;
 32
 38  public class CodeSignatureImpl implements Signature
 39  {
 40     private CodeJoinPointImpl owner;
 41
 42      protected CodeSignatureImpl(CodeJoinPointImpl owner)
 43      {
 44      this.owner = owner;
 45      }
 46
 47     public Class
  getDeclaringType() 48      {
 49      return owner.getMethod().getDeclaringClass();
 50      }
 51
 52      public int getModifiers()
 53      {
 54        return owner.getMethod().getModifiers();
 55      }
 56
 57      public String
  getName() 58      {
 59      return owner.getMethod().getName();
 60      }
 61
 62      public String
  toLongString() 63      {
 64      return owner.getMethod().toString();
 65      }
 66
 67      public String
  toShortString() 68      {
 69      return owner.getMethod().toString();
 70      }
 71
 72      public String
  toString() 73      {
 74      return toShortString();
 75      }
 76
 77      public Class
  [] getParameterTypes() 78      {
 79      return owner.getMethod().getParameterTypes();
 80      }
 81
 82      public Class
  [] getExceptionTypes() 83      {
 84      return owner.getMethod().getExceptionTypes();
 85      }
 86
 87      public String
  [] getParameterNames() 88      {
 89        return owner.context.getParameterNames();
 90      }
 91
 92      public Class
  getReturnType() 93      {
 94      return owner.getMethod().getReturnType();
 95      }
 96  }
 97
                                                                                                                                                                                                             |                                                                       
 
 
 
 
 
                                                                                   Popular Tags                                                                                                                                                                                              |