Class StrategySequenceSearch
java.lang.Object
es.ucm.maude.bindings.StrategySequenceSearch
-
Method Summary
Modifier and TypeMethodDescription__next()
Get the next match.
void
delete()
int
Get the number of rewrites until this term has been found.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 next strategy to be executed from the given state.
getStrategyContinuation
(int stateNr) Get the next strategy to be executed from the given state.
Get the matching substitution of the solution into the pattern.Get the transition leading to the given state.
getTransition
(int stateNr) Get the transition leading to the given state.
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. -
getTransition
Get the transition leading to the given state.
- Parameters:
stateNr
- The number of a state in the search graph
or -1 for the current one.
- Returns:
- The transition between the parent of the given state and the
state itself.
-
getTransition
Get the transition leading to the given state.
- Returns:
- The transition between the parent of the given state and the
state itself.
-
getStateTerm
Get the term of a given state.
- Parameters:
stateNr
- The number of a state in the search graph.
-
getStrategyContinuation
Get the next strategy to be executed from the given state.
- Parameters:
stateNr
- The number of a state in the search graph
or -1 for the current one.
-
getStrategyContinuation
Get the next strategy to be executed from the given state.
-
__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.
-