1 24 package org.aspectj.compiler.crosscuts.joinpoints; 25 26 import org.aspectj.compiler.base.ast.*; 27 import org.aspectj.compiler.crosscuts.ast.*; 28 29 import org.aspectj.compiler.base.JavaCompiler; 30 31 import java.util.*; 32 33 34 public class SuperCallJp extends CodeBodyJp { 35 CallExpr callExpr; 36 37 public SuperCallJp(CallExpr callExpr, JoinPoint enclosingJoinPoint) { 38 super(enclosingJoinPoint); 39 this.callExpr = callExpr; 40 } 41 42 public static final Kind KIND = new Kind("supercall", SUPER_METHOD_CALL); 43 44 public Kind getKind() { return KIND; } 45 46 public Exprs makeArgsExprs() { return null; } 47 public Dec getTargetDec() { return null; } 48 public Type getTargetType() { return null; } 49 50 public Type getResultType() { 51 return getTypeManager().voidType; 52 } 53 54 public boolean canThrow(Type t) { return getCalledCodeDec().canThrow(t); } 55 public Collection getPossibleCheckedExceptions() { 56 return getCalledCodeDec().getPossibleCheckedExceptions(); 57 } 58 59 60 public CodeDec getCalledCodeDec() { return callExpr.getMethodDec(); } 61 public void implementPlans() { ; } 62 63 public Stmts getStmts() { return null; } 65 public void setStmts(Stmts s) { } 66 67 public String toString() { 68 return "supercall(" + getCalledCodeDec().toShortString() + ")"; 69 } 70 71 public ASTObject getSourceLocation() { return callExpr; } 72 } 73 | Popular Tags |