Class RewriteSequenceSearch
java.lang.Object
es.ucm.maude.bindings.RewriteSequenceSearch
-
Method Summary
Modifier and TypeMethodDescription__next()
Get the next match.
void
delete()
int
Get the number of rewrites until this term has been found.getRule()
Get the rule leading to the given state.
getRule
(int stateNr) Get the rule leading to the given state.
int
Get an internal state number that allows reconstructing
the path to this term.int
getStateParent
(int stateNr) Get the parent state.
getStateTerm
(int stateNr) Get the term of a given state.
Get the matching substitution of the solution into the pattern.boolean
hasNext()
iterator()
next()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
delete
public void delete() -
iterator
-
hasNext
-
next
-
getRewriteCount
public int getRewriteCount()Get the number of rewrites until this term has been found. -
getSubstitution
Get the matching substitution of the solution into the pattern. -
getRule
Get the rule leading to the given state.
- Parameters:
stateNr
- The number of a state in the search graph
or -1 for the current one.
-
getRule
Get the rule leading to the given state.
-
getStateTerm
Get the term of a given state.
- Parameters:
stateNr
- The number of a state in the search graph.
-
__next
Get the next match.
- Returns:
- A term or a null pointer if there is no more matches.
-
getStateNr
public int getStateNr()Get an internal state number that allows reconstructing
the path to this term. -
getStateParent
public int getStateParent(int stateNr) Get the parent state.
- Parameters:
stateNr
- The number of a state in the search graph.
- Returns:
- The number of the parent or -1 for the root.
-