Module suggest

Class LocalScopeSymbol

java.lang.Object
de.grogra.suggest.scope.BaseScope
de.grogra.suggest.scope.LocalScopeSymbol
All Implemented Interfaces:
Scope, Symbol

public class LocalScopeSymbol extends BaseScope implements Symbol
Local scope should be seen as LocalScope and retrieved with get nested data but it seems easier to simply consider them as a inclosed scope.
  • Constructor Details

    • LocalScopeSymbol

      public LocalScopeSymbol(Scope scope)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Scope
      Often scopes have names like function or class names. For unnamed scopes like code blocks, you can just return "local" or something.
      Specified by:
      getName in interface Scope
      Specified by:
      getName in interface Symbol
    • getScope

      public Scope getScope()
      Specified by:
      getScope in interface Symbol
    • setScope

      public void setScope(Scope scope)
      Specified by:
      setScope in interface Symbol
    • getInsertionOrderNumber

      public int getInsertionOrderNumber()
      Specified by:
      getInsertionOrderNumber in interface Symbol
    • setInsertionOrderNumber

      public void setInsertionOrderNumber(int i)
      Specified by:
      setInsertionOrderNumber in interface Symbol