Module xl.compiler

Class InstanceScope

All Implemented Interfaces:
ExpressionFactory
Direct Known Subclasses:
ProduceScope

public class InstanceScope extends BlockScope implements ExpressionFactory
  • Constructor Details

    • InstanceScope

      public InstanceScope(BlockScope enclosing)
  • Method Details

    • getInstance

      public ExpressionFactory getInstance()
    • getType

      public Type getType()
      Specified by:
      getType in interface ExpressionFactory
    • createExpression

      public Expression createExpression(Scope scope, antlr.collections.AST pos)
      Specified by:
      createExpression in interface ExpressionFactory
    • setInstance

      public void setInstance(ExpressionFactory instance)
    • findMembers

      public void findMembers(String name, int flags, Members list)
      Description copied from class: Scope
      Finds all members which are declared in this scope or enclosing scopes. This method should be overwritten by subclasses; an invocation of super.findMembers has to be included in order to look for members in enclosing scopes. The flags are a combination of the bit masks defined in Members, they are used to restrict the range of possible members.
      Overrides:
      findMembers in class BlockScope
      Parameters:
      name - simple name of the members to find
      flags - combination of masks defined in Members
      list - found members are added to this list
    • getOwnerOf

      public Type getOwnerOf(Member m)
      Description copied from class: Scope
      Returns the type of the innermost type declaration of which m is a member.
      Overrides:
      getOwnerOf in class Scope
      Parameters:
      m - a member
      Returns:
      innermost type of which m is a member
    • toString

      public String toString()
      Overrides:
      toString in class Object