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 TypeMethodDescriptionvoidfound(INamespace namespace, boolean nullable, IScope scope, ResolvePath path, List<String> remainingNames) Called when a namespace is found that matches the name being resolved.intgetCount()Get the number of matches foundbooleanCheck if multiple matches were found (ambiguous)booleanisEmpty()Check if no matches were foundbooleanisUnique()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 foundnullable- Whether the namespace is nullable (e.g., from LEFT JOIN)scope- The scope where it was foundpath- The resolution path takenremainingNames- 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
-