Class MatchResults

java.lang.Object
org.ek9lang.compiler.search.MatchResults

public class MatchResults extends Object
An initial stuff for match results. Typically, this will be used for symbol searching if we cannot resolve a symbol of some sort. This would normally be some type of general or fuzzy search.
  • Constructor Details

    • MatchResults

      public MatchResults(int maxResults)
  • Method Details

    • add

      public MatchResults add(MatchResult result)
      Add a new match result to the set of match results. Subject to the max allowed.
    • list

      public List<MatchResult> list()
      Provide a list of the results in priority order.
      Returns:
      The list of match results in priority order.
    • iterator

      public Iterator<MatchResult> iterator()
      An iterator of the results in order of best match.
      Returns:
      The iterator.
    • size

      public int size()
    • toString

      public String toString()
      Overrides:
      toString in class Object