public class FinalPatternNode extends PatternNode
| Modifier and Type | Field and Description |
|---|---|
Vector |
actions |
String |
patternName |
id| Constructor and Description |
|---|
FinalPatternNode(Id id,
String patternName,
Vector actions)
Creates a FinalPatternNode with identifier i and set of actions
acts.
|
| Modifier and Type | Method and Description |
|---|---|
void |
eval(Document doc,
int posn,
HashMap bindings,
PatternApplication patap)
Method invoked when this node is reached during pattern matching;
records the actions to be performed.
|
String |
toString()
Creates a printable representation of the node, consisting of "-->"
followed by representations of the associated actions.
|
void |
toTree(DefaultMutableTreeNode parent) |
visit, visitedpublic void eval(Document doc, int posn, HashMap bindings, PatternApplication patap)
eval in class PatternNodepublic String toString()
public void toTree(DefaultMutableTreeNode parent)
toTree in class PatternNodeCopyright © 2016 New York University. All rights reserved.