org.aspectj.weaver.patterns
Class ScopeWithTypeVariables

java.lang.Object
  extended by org.aspectj.weaver.patterns.ScopeWithTypeVariables
All Implemented Interfaces:
IScope

public class ScopeWithTypeVariables
extends java.lang.Object
implements IScope

A scope that also considers type variables when looking up a type.


Constructor Summary
ScopeWithTypeVariables(java.lang.String[] typeVarNames, IScope delegate)
           
 
Method Summary
 ResolvedType getEnclosingType()
           
 FormalBinding getFormal(int i)
           
 int getFormalCount()
           
 java.lang.String[] getImportedNames()
           
 java.lang.String[] getImportedPrefixes()
           
 IMessageHandler getMessageHandler()
           
 World getWorld()
           
 FormalBinding lookupFormal(java.lang.String name)
           
 UnresolvedType lookupType(java.lang.String name, IHasPosition location)
           
 void message(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, java.lang.String message)
           
 void message(IMessage.Kind kind, IHasPosition location, java.lang.String message)
           
 void message(IMessage aMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeWithTypeVariables

public ScopeWithTypeVariables(java.lang.String[] typeVarNames,
                              IScope delegate)
Method Detail

lookupType

public UnresolvedType lookupType(java.lang.String name,
                                 IHasPosition location)
Specified by:
lookupType in interface IScope
Returns:
the type corresponding to the name in this scope, or ResolvedType.MISSING if no such type exists

getWorld

public World getWorld()
Specified by:
getWorld in interface IScope

getEnclosingType

public ResolvedType getEnclosingType()
Specified by:
getEnclosingType in interface IScope

getMessageHandler

public IMessageHandler getMessageHandler()
Specified by:
getMessageHandler in interface IScope

lookupFormal

public FormalBinding lookupFormal(java.lang.String name)
Specified by:
lookupFormal in interface IScope
Returns:
the formal associated with the name, or null if no such formal exists

getFormal

public FormalBinding getFormal(int i)
Specified by:
getFormal in interface IScope
Returns:
the formal with the index. Throws ArrayOutOfBounds exception if out of bounds

getFormalCount

public int getFormalCount()
Specified by:
getFormalCount in interface IScope

getImportedPrefixes

public java.lang.String[] getImportedPrefixes()
Specified by:
getImportedPrefixes in interface IScope

getImportedNames

public java.lang.String[] getImportedNames()
Specified by:
getImportedNames in interface IScope

message

public void message(IMessage.Kind kind,
                    IHasPosition location,
                    java.lang.String message)
Specified by:
message in interface IScope

message

public void message(IMessage.Kind kind,
                    IHasPosition location1,
                    IHasPosition location2,
                    java.lang.String message)
Specified by:
message in interface IScope

message

public void message(IMessage aMessage)
Specified by:
message in interface IScope