Top Fields Constructors Methods
org.aspectj.weaver.patterns

public Class SimpleScope

extends Object
implements IScope
Class Inheritance
All Implemented Interfaces
org.aspectj.weaver.patterns.IScope
Known Direct Subclasses
org.aspectj.weaver.BindingScope
Imports
org.aspectj.bridge.IMessage, .IMessageHandler, .ISourceLocation, .Message, .SourceLocation, org.aspectj.weaver.IHasPosition, .ResolvedType, .UnresolvedType, .World

Field Summary

Modifier and TypeField and Description
protected FormalBinding[]
private ResolvedType
private String[]
private String[]
private static final String[]
private static final String[]
private World

Constructor Summary

AccessConstructor and Description
public
SimpleScope(World world, FormalBinding[] bindings)

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 static FormalBinding[]
public ISourceLocation
public void
public void
public void
public void
setImportedNames(String[] importedNames)

public void
setImportedPrefixes(String[] importedPrefixes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bindingsback to summary
protected FormalBinding[] bindings
enclosingTypeback to summary
private ResolvedType enclosingType
importedNamesback to summary
private String[] importedNames
importedPrefixesback to summary
private String[] importedPrefixes
javaLangPrefixArrayback to summary
private static final String[] javaLangPrefixArray
NoStringsback to summary
private static final String[] NoStrings
worldback to summary
private World world

Constructor Detail

SimpleScopeback to summary
public SimpleScope(World world, FormalBinding[] bindings)

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

makeFormalBindingsback to summary
public static FormalBinding[] makeFormalBindings(UnresolvedType[] types, String[] names)
makeSourceLocationback to summary
public ISourceLocation makeSourceLocation(IHasPosition location)
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.Kind kind, IHasPosition location, String message)

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

messageback to summary
public void message(IMessage aMessage)

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

setImportedNamesback to summary
public void setImportedNames(String[] importedNames)
setImportedPrefixesback to summary
public void setImportedPrefixes(String[] importedPrefixes)