Klasse EclipseScope

java.lang.Object
org.aspectj.ajdt.internal.compiler.lookup.EclipseScope
Alle implementierten Schnittstellen:
IScope

public class EclipseScope extends Object implements IScope
Adaptor from org.eclipse.jdt.internal.compiler.lookup.Scope to org.aspectj.weaver.IScope
Autor:
Jim Hugunin
  • Konstruktordetails

  • Methodendetails

    • lookupType

      public UnresolvedType lookupType(String name, IHasPosition location)
      Angegeben von:
      lookupType in Schnittstelle IScope
      Gibt zurück:
      the type corresponding to the name in this scope, or ResolvedType.MISSING if no such type exists
    • getImportedNames

      public String[] getImportedNames()
      Angegeben von:
      getImportedNames in Schnittstelle IScope
    • getImportedPrefixes

      public String[] getImportedPrefixes()
      Angegeben von:
      getImportedPrefixes in Schnittstelle IScope
    • lookupFormal

      public FormalBinding lookupFormal(String name)
      Angegeben von:
      lookupFormal in Schnittstelle IScope
      Gibt zurück:
      the formal associated with the name, or null if no such formal exists
    • getFormal

      public FormalBinding getFormal(int i)
      Angegeben von:
      getFormal in Schnittstelle IScope
      Gibt zurück:
      the formal with the index. Throws ArrayOutOfBounds exception if out of bounds
    • getFormalCount

      public int getFormalCount()
      Angegeben von:
      getFormalCount in Schnittstelle IScope
    • makeSourceLocation

      public ISourceLocation makeSourceLocation(IHasPosition location)
    • getMessageHandler

      public IMessageHandler getMessageHandler()
      Angegeben von:
      getMessageHandler in Schnittstelle IScope
    • message

      public void message(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, String message)
      Angegeben von:
      message in Schnittstelle IScope
    • message

      public void message(IMessage.Kind kind, IHasPosition location, String message)
      Angegeben von:
      message in Schnittstelle IScope
    • message

      public void message(IMessage aMessage)
      Angegeben von:
      message in Schnittstelle IScope
    • getWorld

      public World getWorld()
      Angegeben von:
      getWorld in Schnittstelle IScope
    • getEnclosingType

      public ResolvedType getEnclosingType()
      Angegeben von:
      getEnclosingType in Schnittstelle IScope
    • 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.