Class ResolvedImpl

Object
gudusoft.gsqlparser.resolver2.scope.ResolvedImpl
All Implemented Interfaces:
IResolved

public class ResolvedImpl extends Object implements IResolved
Default implementation of IResolved that collects all matches.
  • Constructor Details

  • Method Details

    • found

      public void found(INamespace namespace, boolean nullable, IScope scope, ResolvePath path, List<String> remainingNames)
      Description copied from interface: IResolved
      Called when a namespace is found that matches the name being resolved.
      Specified by:
      found in interface IResolved
      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

      public int getCount()
      Description copied from interface: IResolved
      Get the number of matches found
      Specified by:
      getCount in interface IResolved
    • isUnique

      public boolean isUnique()
      Description copied from interface: IResolved
      Check if exactly one match was found
      Specified by:
      isUnique in interface IResolved
    • isAmbiguous

      public boolean isAmbiguous()
      Description copied from interface: IResolved
      Check if multiple matches were found (ambiguous)
      Specified by:
      isAmbiguous in interface IResolved
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: IResolved
      Check if no matches were found
      Specified by:
      isEmpty in interface IResolved
    • getMatches

      Get all matches
    • getFirst

      Get the first (and possibly only) match
    • clear

      public void clear()
      Clear all matches (for reuse)