Last change
on this file since 13 was
13,
checked in by jbochenski, 15 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
823 bytes
|
Line | |
---|
1 | package com.framsticks.framclipse.editors.outline;
|
---|
2 |
|
---|
3 | import com.framsticks.framclipse.internal.parser.Node;
|
---|
4 |
|
---|
5 | public class IdentifierNode implements Node {
|
---|
6 |
|
---|
7 | Node parent;
|
---|
8 | String identifier;
|
---|
9 | String type;
|
---|
10 |
|
---|
11 | public IdentifierNode(String id, String nodeType, Node parent)
|
---|
12 | {
|
---|
13 | this.identifier = id;
|
---|
14 | this.type = nodeType;
|
---|
15 | this.parent = parent;
|
---|
16 | }
|
---|
17 |
|
---|
18 | public void jjtAddChild(Node n, int i) {
|
---|
19 |
|
---|
20 | }
|
---|
21 |
|
---|
22 | public void jjtClose() {
|
---|
23 |
|
---|
24 |
|
---|
25 | }
|
---|
26 |
|
---|
27 | public Node jjtGetChild(int i) {
|
---|
28 |
|
---|
29 | return null;
|
---|
30 | }
|
---|
31 |
|
---|
32 | public int jjtGetNumChildren() {
|
---|
33 |
|
---|
34 | return 0;
|
---|
35 | }
|
---|
36 |
|
---|
37 | public Node jjtGetParent() {
|
---|
38 | return parent;
|
---|
39 | }
|
---|
40 |
|
---|
41 | public void jjtOpen() {
|
---|
42 |
|
---|
43 | }
|
---|
44 |
|
---|
45 | public void jjtSetParent(Node n) {
|
---|
46 | this.parent = n;
|
---|
47 |
|
---|
48 | }
|
---|
49 |
|
---|
50 | @Override
|
---|
51 | public String toString() {
|
---|
52 | return identifier + ": " + type;
|
---|
53 | }
|
---|
54 |
|
---|
55 |
|
---|
56 |
|
---|
57 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.