1 15 16 package javassist.compiler.ast; 17 18 import javassist.compiler.CompileError; 19 import javassist.compiler.TokenId; 20 import javassist.compiler.MemberResolver; 21 22 25 public class CallExpr extends Expr { 26 private MemberResolver.Method method; 28 private CallExpr(ASTree _head, ASTList _tail) { 29 super(TokenId.CALL, _head, _tail); 30 method = null; 31 } 32 33 public void setMethod(MemberResolver.Method m) { 34 method = m; 35 } 36 37 public MemberResolver.Method getMethod() { 38 return method; 39 } 40 41 public static CallExpr makeCall(ASTree target, ASTree args) { 42 return new CallExpr(target, new ASTList(args)); 43 } 44 45 public void accept(Visitor v) throws CompileError { v.atCallExpr(this); } 46 } 47 | Popular Tags |