I
- input symbol typeD
- output domain type@ParametersAreNonnullByDefault public class DefaultQuery<I,D> extends AbstractQuery<I,D>
prefix, suffix
Constructor and Description |
---|
DefaultQuery(Query<I,?> query) |
DefaultQuery(Word<I> input) |
DefaultQuery(Word<I> input,
D output) |
DefaultQuery(Word<I> prefix,
Word<I> suffix) |
DefaultQuery(Word<I> prefix,
Word<I> suffix,
D output) |
Modifier and Type | Method and Description |
---|---|
void |
answer(D output) |
D |
getOutput() |
String |
toString()
Returns the string representation of this query.
|
getPrefix, getSuffix, toStringWithAnswer
public String toString()
Query
toString
in class Query<I,D>
"Query[<prefix>|<suffix>]"
for queries not containing
an answer or "Query[<prefix>|<suffix> / <answer>]"
if an answer may be specified.AbstractQuery.toStringWithAnswer(Object)
Copyright © 2015. All rights reserved.