Interface IScope

All Known Implementing Classes:
BindingScope, ScopeWithTypeVariables, SimpleScope

public interface IScope
  • Method Details

    • lookupType

      UnresolvedType lookupType(String name, IHasPosition location)
      Returns:
      the type corresponding to the name in this scope, or ResolvedType.MISSING if no such type exists
    • getWorld

      World getWorld()
    • getEnclosingType

      ResolvedType getEnclosingType()
    • getMessageHandler

      IMessageHandler getMessageHandler()
    • lookupFormal

      FormalBinding lookupFormal(String name)
      Returns:
      the formal associated with the name, or null if no such formal exists
    • getFormal

      FormalBinding getFormal(int i)
      Returns:
      the formal with the index. Throws ArrayOutOfBounds exception if out of bounds
    • getFormalCount

      int getFormalCount()
    • getImportedPrefixes

      String[] getImportedPrefixes()
    • getImportedNames

      String[] getImportedNames()
    • message

      void message(IMessage.Kind kind, IHasPosition location, String message)
    • message

      void message(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, String message)
    • message

      void message(IMessage aMessage)