protected class PatternMatcher.StackMatcher
extends java.lang.Object
Constructor and Description |
---|
StackMatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
Check if this stack is empty.
|
boolean |
matchRest()
Match the entries of the stack recursively starting from the top
entry.
|
org.matheclipse.core.patternmatching.PatternMatcher.Entry |
peek() |
org.matheclipse.core.patternmatching.PatternMatcher.Entry |
pop() |
boolean |
push(IExpr patternExpr,
IExpr evalExpr) |
void |
removeFrom(int fromPosition)
Remove all elements starting at the given
fromPosition . |
int |
size()
The size of the stack.
|
public org.matheclipse.core.patternmatching.PatternMatcher.Entry peek()
Stack.peek()
public org.matheclipse.core.patternmatching.PatternMatcher.Entry pop()
Stack.pop()
public void removeFrom(int fromPosition)
fromPosition
.fromPosition
- public boolean matchRest()
true
if all expressions could be matched.public boolean isEmpty()
ArrayList.isEmpty()
public int size()
ArrayList.size()