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 import org.aspectj.util.FuzzyBoolean; 31 32 import java.util.*; 33 34 37 38 public abstract class GenTypeName extends Expr { 41 protected Type discoverType() { return null; } 43 44 public static final int EXACT_STATIC_TYPE = 1; 45 public static final int STATIC_TYPE_OR_SUBTYPE = 2; 46 public static final int INSTANCEOF = 3; 47 48 56 public abstract boolean matches(Type type); 57 public abstract FuzzyBoolean matchesInstance(Type type); 58 public abstract JpPlan makePlan(JoinPoint jp, Expr expr); 59 60 65 67 public GenTypeName(SourceLocation location) { 68 super(location); 69 70 } 71 72 73 public String getDefaultDisplayName() { 74 return "GenTypeName()"; 75 } 76 77 } 79 80 | Popular Tags |