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.FuzzyBoolean; 33 34 37 38 public class AnyTypeName extends GenTypeName { 39 public String toShortString() { 40 return "*"; 41 } 42 43 public boolean matches(Type type) { 44 return true; 45 } 46 public FuzzyBoolean matchesInstance(Type type) { 47 return FuzzyBoolean.YES; 48 } 49 50 public JpPlan makePlan(JoinPoint jp, Expr expr) { 51 return JpPlan.ANY_PLAN; 52 } 53 54 56 public AnyTypeName(SourceLocation location) { 57 super(location); 58 59 } 60 61 public ASTObject copyWalk(CopyWalker walker) { 62 AnyTypeName ret = new AnyTypeName(getSourceLocation()); 63 ret.preCopy(walker, this); 64 65 return ret; 66 } 67 68 69 public String getDefaultDisplayName() { 70 return "AnyTypeName()"; 71 } 72 73 } 75 76 | Popular Tags |