1 24 25 package org.aspectj.compiler.crosscuts.ast; 26 import org.aspectj.compiler.base.ast.*; 27 import org.aspectj.compiler.crosscuts.joinpoints.*; 28 29 import org.aspectj.compiler.base.JavaCompiler; 30 31 import java.util.*; 32 import org.aspectj.util.InvertableSet; 33 34 37 public class CallPcd extends KindedPcd { 38 public String getKind() { return "call"; } 39 public int getJpKind() { 40 if (pattern instanceof MethodPattern) { 41 return JoinPoint.METHOD_CALL; 42 } else { 43 return JoinPoint.CONSTRUCTOR_CALL; 44 } 45 } 46 47 49 public CallPcd(SourceLocation location, DecPattern _pattern) { 50 super(location, _pattern); 51 52 } 53 protected CallPcd(SourceLocation source) { 54 super(source); 55 } 56 57 public ASTObject copyWalk(CopyWalker walker) { 58 CallPcd ret = new CallPcd(getSourceLocation()); 59 ret.preCopy(walker, this); 60 if (pattern != null) ret.setPattern( (DecPattern)walker.process(pattern) ); 61 return ret; 62 } 63 64 65 public String getDefaultDisplayName() { 66 return "CallPcd()"; 67 } 68 69 } 71 | Popular Tags |