Class ResolvedImpl
Object
gudusoft.gsqlparser.resolver2.scope.ResolvedImpl
- All Implemented Interfaces:
IResolved
Default implementation of IResolved that collects all matches.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a single match found during resolution -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all matches (for reuse)voidfound(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 foundgetFirst()Get the first (and possibly only) matchGet all matchesbooleanCheck if multiple matches were found (ambiguous)booleanisEmpty()Check if no matches were foundbooleanisUnique()Check if exactly one match was found
-
Constructor Details
-
ResolvedImpl
public ResolvedImpl()
-
-
Method Details
-
found
public void found(INamespace namespace, boolean nullable, IScope scope, ResolvePath path, List<String> remainingNames) Description copied from interface:IResolvedCalled when a namespace is found that matches the name being resolved. -
getCount
Description copied from interface:IResolvedGet the number of matches found -
isUnique
Description copied from interface:IResolvedCheck if exactly one match was found -
isAmbiguous
Description copied from interface:IResolvedCheck if multiple matches were found (ambiguous)- Specified by:
isAmbiguousin interfaceIResolved
-
isEmpty
Description copied from interface:IResolvedCheck if no matches were found -
getMatches
Get all matches -
getFirst
Get the first (and possibly only) match -
clear
Clear all matches (for reuse)
-