Class MethodSymbolSearch

java.lang.Object
org.ek9lang.compiler.search.SymbolSearch
org.ek9lang.compiler.search.MethodSymbolSearch

public final class MethodSymbolSearch extends SymbolSearch
Quite a few option to a method search. In some cases you need to be exact but in others you want the return type left open. So there are multiple constructors to support this.
  • Constructor Details

    • MethodSymbolSearch

      public MethodSymbolSearch(SymbolSearch from)
    • MethodSymbolSearch

      public MethodSymbolSearch(String newName, SymbolSearch from)
      Create a method search from an existing search, but with a new name.
    • MethodSymbolSearch

      public MethodSymbolSearch(MethodSymbol methodSymbol)
      Create a method search given a method symbol. But this does not set the expected type. This is very useful for finding overridden methods where the returning type is different but compatible.
    • MethodSymbolSearch

      public MethodSymbolSearch(String newName, MethodSymbol methodSymbol)
      Create a method search given a method symbol, but used a new method name.§ But this does not set the expected type. This is very useful for finding overridden methods where the returning type is different but compatible.
    • MethodSymbolSearch

      public MethodSymbolSearch(String name)
    • MethodSymbolSearch

      public MethodSymbolSearch(String name, Optional<ISymbol> ofTypeOrReturn)
    • MethodSymbolSearch

      public MethodSymbolSearch(String name, ISymbol ofTypeOrReturn)
  • Method Details