Interface IResolved

All Known Implementing Classes:
ResolvedImpl

public interface IResolved
Callback interface for collecting resolution results. Used during name resolution to gather all possible matches. This interface allows for collecting multiple candidates when a name is ambiguous.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    found(INamespace namespace, boolean nullable, IScope scope, ResolvePath path, List<String> remainingNames)
    Called when a namespace is found that matches the name being resolved.
    int
    Get the number of matches found
    boolean
    Check if multiple matches were found (ambiguous)
    boolean
    Check if no matches were found
    boolean
    Check if exactly one match was found
  • Method Details

    • found

      void found(INamespace namespace, boolean nullable, IScope scope, ResolvePath path, List<String> remainingNames)
      Called when a namespace is found that matches the name being resolved.
      Parameters:
      namespace - The namespace that was found
      nullable - Whether the namespace is nullable (e.g., from LEFT JOIN)
      scope - The scope where it was found
      path - The resolution path taken
      remainingNames - Names that weren't consumed in resolution
    • getCount

      int getCount()
      Get the number of matches found
    • isUnique

      boolean isUnique()
      Check if exactly one match was found
    • isAmbiguous

      boolean isAmbiguous()
      Check if multiple matches were found (ambiguous)
    • isEmpty

      boolean isEmpty()
      Check if no matches were found