public class MatchResult extends SequentialTwoWayHashMap<java.lang.Object,java.lang.Object>
Red (tfeng) |
Yellow (tfeng) |
Constructor and Description |
---|
MatchResult()
Construct an empty match result.
|
MatchResult(SequentialTwoWayHashMap<ValueIterator,Token> parameterValues)
Construct an empty match result and tag it to be obtained by a specific
assignment to the parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone this match result and return the clone.
|
SequentialTwoWayHashMap<ValueIterator,Token> |
getParameterValues()
Get the parameter assignment.
|
java.lang.String |
toString()
Generate a string describing this match result, ignoring the matches
between objects that are not instances of
NamedObj . |
java.lang.String |
toString(boolean allMatches)
Generate a string describing this match result.
|
clear, keys, put, remove, removeLast, retain
containsValue, getKey, values
compute, computeIfAbsent, computeIfPresent, containsKey, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size
public MatchResult()
public MatchResult(SequentialTwoWayHashMap<ValueIterator,Token> parameterValues)
parameterValues
- The two-way hash map specifying the assignment to
the parameters. In this case, values may be the same for some keys
because the reverse hash map is never used.public java.lang.Object clone()
clone
in class SequentialTwoWayHashMap<java.lang.Object,java.lang.Object>
public SequentialTwoWayHashMap<ValueIterator,Token> getParameterValues()
public java.lang.String toString()
NamedObj
.toString
in class java.util.AbstractMap<java.lang.Object,java.lang.Object>
public java.lang.String toString(boolean allMatches)
NamedObj
are ignored. Otherwise, those matches are also included in the string.allMatches
- Whether the matches between objects that are not
instances of NamedObj
are included.