1 24 25 package org.aspectj.compiler.base.ast; 26 27 import org.aspectj.compiler.base.*; 28 29 31 public class Method extends SemanticObject { 32 public Method(MethodDec methodDec) { 33 super(methodDec); 34 } 35 36 public MethodDec getMethodDec() { return (MethodDec)dec; } 37 38 public Type getReturnType() { return getMethodDec().getResultType(); } 39 40 public Formals getFormals() { return getMethodDec().getFormals(); } 41 public TypeDs getThrows() { return getMethodDec().getThrows(); } 42 43 public Method getBackdoorMethod() { return getMethodDec().getBackdoorMethod().getMethod(); } 44 45 public String toString() { 46 return "Method(methodDec: " + getMethodDec() + ")"; 47 } 48 } 49 | Popular Tags |