Top Description Fields Constructors Methods
org.aspectj.weaver.patterns

public Class ScopeWithTypeVariables

extends Object
implements IScope
Class Inheritance
All Implemented Interfaces
org.aspectj.weaver.patterns.IScope
Imports
org.aspectj.bridge.IMessage, .IMessageHandler, .IMessage.Kind, org.aspectj.weaver.IHasPosition, .ResolvedType, .TypeVariable, .UnresolvedType, .UnresolvedTypeVariableReferenceType, .World

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

Field Summary

Modifier and TypeField and Description
private IScope
private String[]
private UnresolvedTypeVariableReferenceType[]

Constructor Summary

AccessConstructor and Description
public
ScopeWithTypeVariables(String[] typeVarNames, IScope delegate)

Method Summary

Modifier and TypeMethod and Description
public ResolvedType
public FormalBinding
public int
public String[]
public String[]
public IMessageHandler
public World
public FormalBinding
public UnresolvedType
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateScopeback to summary
private IScope delegateScope
typeVariableNamesback to summary
private String[] typeVariableNames
typeVarTypeXsback to summary
private UnresolvedTypeVariableReferenceType[] typeVarTypeXs

Constructor Detail

ScopeWithTypeVariablesback to summary
public ScopeWithTypeVariables(String[] typeVarNames, IScope delegate)

Method Detail

getEnclosingTypeback to summary
public ResolvedType getEnclosingType()

Implements org.aspectj.weaver.patterns.IScope.getEnclosingType.

getFormalback to summary
public FormalBinding getFormal(int i)

Implements org.aspectj.weaver.patterns.IScope.getFormal.

Returns:FormalBinding

Doc from org.aspectj.weaver.patterns.IScope.getFormal.

the formal with the index. Throws ArrayOutOfBounds exception if out of bounds

getFormalCountback to summary
public int getFormalCount()

Implements org.aspectj.weaver.patterns.IScope.getFormalCount.

getImportedNamesback to summary
public String[] getImportedNames()

Implements org.aspectj.weaver.patterns.IScope.getImportedNames.

getImportedPrefixesback to summary
public String[] getImportedPrefixes()

Implements org.aspectj.weaver.patterns.IScope.getImportedPrefixes.

getMessageHandlerback to summary
public IMessageHandler getMessageHandler()

Implements org.aspectj.weaver.patterns.IScope.getMessageHandler.

getWorldback to summary
public World getWorld()

Implements org.aspectj.weaver.patterns.IScope.getWorld.

lookupFormalback to summary
public FormalBinding lookupFormal(String name)

Implements org.aspectj.weaver.patterns.IScope.lookupFormal.

Returns:FormalBinding

Doc from org.aspectj.weaver.patterns.IScope.lookupFormal.

the formal associated with the name, or null if no such formal exists

lookupTypeback to summary
public UnresolvedType lookupType(String name, IHasPosition location)

Implements org.aspectj.weaver.patterns.IScope.lookupType.

Returns:UnresolvedType

Doc from org.aspectj.weaver.patterns.IScope.lookupType.

the type corresponding to the name in this scope, or ResolvedType.MISSING if no such type exists

messageback to summary
public void message(IMessage.Kind kind, IHasPosition location, String message)

Implements org.aspectj.weaver.patterns.IScope.message.

messageback to summary
public void message(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, String message)

Implements org.aspectj.weaver.patterns.IScope.message.

messageback to summary
public void message(IMessage aMessage)

Implements org.aspectj.weaver.patterns.IScope.message.