Package io.manebot.database.search
Interface Search.LexicalClause
-
- All Known Implementing Classes:
Search.Builder
- Enclosing class:
- Search
public static interface Search.LexicalClause
-
-
Method Summary
Modifier and Type Method Description void
addPredicate(SearchPredicate predicate)
Adds a predicate to this clause.boolean
canPop()
Finds if the clause can pop.java.util.List<SearchPredicate>
getActions()
Gets a collection of actions on this clause.Search.LexicalClause
pop()
Pops a lexical clause off of the clause stack.Search.LexicalClause
push(SearchOperator operator)
Pushes a lexical clause onto the clause stack.
-
-
-
Method Detail
-
addPredicate
void addPredicate(SearchPredicate predicate)
Adds a predicate to this clause.- Parameters:
predicate
- predicate.
-
getActions
java.util.List<SearchPredicate> getActions()
Gets a collection of actions on this clause.- Returns:
-
push
Search.LexicalClause push(SearchOperator operator)
Pushes a lexical clause onto the clause stack.- Parameters:
operator
- SearchOperator prefix for this clause.- Returns:
- LexicalClause instance.
-
pop
Search.LexicalClause pop()
Pops a lexical clause off of the clause stack.- Returns:
- parent clause.
-
canPop
boolean canPop()
Finds if the clause can pop.- Returns:
- true if the clause can pop, false otherwise.
-
-