Class EclipseScope
java.lang.Object
org.aspectj.ajdt.internal.compiler.lookup.EclipseScope
- All Implemented Interfaces:
IScope
Adaptor from org.eclipse.jdt.internal.compiler.lookup.Scope to
org.aspectj.weaver.IScope
- Author:
- Jim Hugunin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFormal
(int i) int
String[]
String[]
getWorld()
lookupFormal
(String name) lookupType
(String name, IHasPosition location) makeSourceLocation
(IHasPosition location) void
void
message
(IMessage.Kind kind, IHasPosition location, String message) void
message
(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, String message) void
setLimitedImports
(char[] validPackage) Mark this scope as only allowing limited support for imports.
-
Constructor Details
-
EclipseScope
-
-
Method Details
-
lookupType
- Specified by:
lookupType
in interfaceIScope
- Returns:
- the type corresponding to the name in this scope, or ResolvedType.MISSING if no such type exists
-
getImportedNames
- Specified by:
getImportedNames
in interfaceIScope
-
getImportedPrefixes
- Specified by:
getImportedPrefixes
in interfaceIScope
-
lookupFormal
- Specified by:
lookupFormal
in interfaceIScope
- Returns:
- the formal associated with the name, or null if no such formal exists
-
getFormal
-
getFormalCount
public int getFormalCount()- Specified by:
getFormalCount
in interfaceIScope
-
makeSourceLocation
-
getMessageHandler
- Specified by:
getMessageHandler
in interfaceIScope
-
message
public void message(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, String message) -
message
-
message
-
getWorld
-
getEnclosingType
- Specified by:
getEnclosingType
in interfaceIScope
-
setLimitedImports
public void setLimitedImports(char[] validPackage) Mark this scope as only allowing limited support for imports. This is to ensure that references in annotation style pointcuts are accidentally resolved against import statements. They won't be if javac is used (and the resulting .class file will contain 'bad pointcuts') so this method enables it to also be policed when compiling with ajc.- Parameters:
validPackage
- unqualified references can be resolved if the type is in the same package as the type containing the pointcut declaration.
-