-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.java
More file actions
70 lines (49 loc) · 1.81 KB
/
Copy pathNode.java
File metadata and controls
70 lines (49 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* Generated By:JJTree: Do not edit this line. Node.java Version 7.0 */
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=false,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
/* All AST nodes must implement this interface. It provides basic
machinery for constructing the parent and child relationships
between nodes. */
import java.util.Set;
public
interface Node {
/**
* This method is called after the node has been made the current
* node. It indicates that child nodes can now be added to it.
*/
public void jjtOpen();
/**
* This method is called after all the child nodes have been
* added.
*/
public void jjtClose();
/**
* This pair of methods are used to inform the node of its
* parent.
*/
public void jjtSetParent(Node n);
public Node jjtGetParent();
/**
* This method tells the node to add its argument to the node's
* list of children.
*/
public void jjtAddChild(Node n, int i);
/**
* This method returns a child node. The children are numbered
* from zero, left to right.
*/
public Node jjtGetChild(int i);
/**
* Return the number of children the node has.
*/
public int jjtGetNumChildren();
public int getId();
public void astToString();
public Set<String> FV();
public void addFV(Set<String> fv);
public void dumpFV(String prefix, Set<String> fv);
public SimpleNode substitute(String var, SimpleNode expr);
public SimpleNode deepCopy();
public SimpleNode normalOrderEvaluate() throws CloneNotSupportedException;
public SimpleNode performSubstitution(String var, SimpleNode expr);
}
/* JavaCC - OriginalChecksum=57203b6dbedd2e78c95c2bf5cb2fe927 (do not edit this line) */