Klasse EclipseScope
java.lang.Object
org.aspectj.ajdt.internal.compiler.lookup.EclipseScope
- Alle implementierten Schnittstellen:
IScope
Adaptor from org.eclipse.jdt.internal.compiler.lookup.Scope to
org.aspectj.weaver.IScope
- Autor:
- Jim Hugunin
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetFormal(int i) intString[]String[]getWorld()lookupFormal(String name) lookupType(String name, IHasPosition location) makeSourceLocation(IHasPosition location) voidvoidmessage(IMessage.Kind kind, IHasPosition location, String message) voidmessage(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, String message) voidsetLimitedImports(char[] validPackage) Mark this scope as only allowing limited support for imports.
-
Konstruktordetails
-
EclipseScope
-
-
Methodendetails
-
lookupType
- Angegeben von:
lookupTypein SchnittstelleIScope- Gibt zurück:
- the type corresponding to the name in this scope, or ResolvedType.MISSING if no such type exists
-
getImportedNames
- Angegeben von:
getImportedNamesin SchnittstelleIScope
-
getImportedPrefixes
- Angegeben von:
getImportedPrefixesin SchnittstelleIScope
-
lookupFormal
- Angegeben von:
lookupFormalin SchnittstelleIScope- Gibt zurück:
- the formal associated with the name, or null if no such formal exists
-
getFormal
-
getFormalCount
public int getFormalCount()- Angegeben von:
getFormalCountin SchnittstelleIScope
-
makeSourceLocation
-
getMessageHandler
- Angegeben von:
getMessageHandlerin SchnittstelleIScope
-
message
public void message(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, String message) -
message
-
message
-
getWorld
-
getEnclosingType
- Angegeben von:
getEnclosingTypein SchnittstelleIScope
-
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.- Parameter:
validPackage- unqualified references can be resolved if the type is in the same package as the type containing the pointcut declaration.
-