1 24 25 package org.aspectj.compiler.base.ast; 26 27 import java.util.*; 28 29 import org.aspectj.compiler.base.bcg.CodeBuilder; 30 import org.aspectj.compiler.base.*; 31 import java.io.IOException ; 32 33 import org.aspectj.compiler.crosscuts.ast.*; 35 import org.aspectj.compiler.crosscuts.joinpoints.*; 36 37 38 43 public class NotFoundType extends NameType { 44 public NotFoundType(TypeDec notFoundTypeDec) { 45 super(notFoundTypeDec); 46 } 47 48 public boolean isCoercableTo(Type other) { 49 return true; 50 } 51 52 public boolean dominates(Type other) { 53 return false; 54 } 55 56 57 public Expr getClassExpr() { 58 return getAST().makeNull(); 59 } 60 61 public Expr makeObject(Expr expr) { return expr; } 62 63 public Expr fromObject(Expr expr) { 64 return getAST().makeCast(this, expr); 65 } 66 67 public Expr getNullExpr() { 68 return getAST().makeNull(); 69 } 70 71 public Type getRefType() { return this; } 72 73 public Type getOutermostType() { 74 return this; 75 } 76 77 synchronized public void ensureBuiltTypeGraph() { return; } 78 synchronized public void ensureFinishedSignature() { return; } 79 80 public PointcutSO getPointcut(String id, ASTObject fromWhere, boolean showError) { 81 return null; 82 } 83 84 public Field getField(String id, ASTObject fromWhere, boolean showError) { 85 return null; 86 } 87 88 public Type getInnerType(String id, ASTObject fromWhere, boolean showError) { 89 return getTypeManager().TYPE_NOT_FOUND; 90 } 91 92 public Method getMethod(String id, ASTObject fromWhere, Exprs params, boolean showError) { 93 return null; 94 } 95 96 public boolean hasMethodNamed(String id) { 98 return false; 99 } 100 101 public Constructor getConstructor(ASTObject fromWhere, Exprs params, boolean showError) { 102 return null; 103 } 104 105 public SemanticObject findMatchingSemanticObject(SemanticObject o) { 106 return null; 107 } 108 109 public NameType getSuperClassType() { 110 return getTypeManager().TYPE_NOT_FOUND; 111 } 112 113 public Type getDeclaringType() { 114 return getTypeManager().TYPE_NOT_FOUND; 115 } 116 117 public String getPrettyString() { 119 return "*"; 120 } 121 122 private String makeLegalString() { 123 return "*"; 124 } 125 126 public String getSourceString() { 127 return "*"; 128 } 129 130 public String getExtendedId() { 131 return "*"; 132 } 133 134 public String getId() { 135 return "*"; 136 } 137 138 public String getExternalName() { 139 return "*"; 140 } 141 142 public String getClassName() { 143 return "*"; 144 } 145 146 public String getPackageName() { 147 return null; 148 } 149 150 public String toShortString() { 152 return "*"; 153 } 154 155 public String toString() { 156 return "NotFoundType()"; 157 } 158 159 public boolean isEquivalent(Type other) { 160 return true; 161 } 162 163 public boolean isMissing() { return true; } 164 165 public boolean isInterface() { return false; } 166 public boolean isClass() { return true; } 167 public boolean isAspect() { return false; } 168 169 public boolean isInnerType() { return false; } 170 171 public boolean isAnonymous() { return false; } 172 173 public boolean isAbstract() { return false; } 174 public boolean isFinal() { return false; } 175 176 public Type getOutermostLexicalType() { return getTypeManager().TYPE_NOT_FOUND; } 177 178 public boolean isInner() { 181 return false; 182 } 183 public NameType getEnclosingInstanceType() { 184 return getTypeManager().TYPE_NOT_FOUND; 185 } 186 187 public boolean isLocal() { 188 return false; 189 } 190 public CodeDec getEnclosingCodeDec() { 191 return null; 192 } 193 194 public boolean isPackageMember() { 195 return true; 196 } 197 public NameType getEnclosingType() { 198 return getTypeManager().TYPE_NOT_FOUND; 199 } 200 } 201 | Popular Tags |