Class Scope


  • public class Scope
    extends Object
    • Constructor Detail

      • Scope

        public Scope​(Scope outer,
                     Tree tree,
                     boolean captureOuterScope)
    • Method Detail

      • tree

        public Tree tree()
      • outer

        public Scope outer()
      • getSymbols

        public List<Symbol> getSymbols​(Symbol.Kind kind)
        Parameters:
        kind - of the symbols to look for
        Returns:
        the symbols corresponding to the given kind
      • isGlobal

        public boolean isGlobal()
      • addSymbol

        public void addSymbol​(Symbol symbol)
      • getSymbol

        @Nullable
        public Symbol getSymbol​(String name,
                                Symbol.Kind... kinds)
        returns symbol available in this scope with satisfying name and kind. If no or more than one symbols meet conditions, then null is returned.
      • hasUnresolvedCompact

        public boolean hasUnresolvedCompact()