Class RewriteSequenceSearch
java.lang.Object
es.ucm.maude.bindings.RewriteSequenceSearch
-
Method Summary
Modifier and TypeMethodDescription__next()Get the next match.
voiddelete()intGet 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.
intGet an internal state number that allows reconstructing
the path to this term.intgetStateParent(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.booleanhasNext()iterator()next()Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface 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.
-