KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sablecc > sablecc > syntax3 > node > AEmptyStringRegularExpression


1 /* This file was generated by SableCC (http://www.sablecc.org/). */
2
3 package org.sablecc.sablecc.syntax3.node;
4
5 import org.sablecc.sablecc.syntax3.analysis.*;
6
7 @SuppressWarnings JavaDoc("nls")
8 public final class AEmptyStringRegularExpression extends PRegularExpression
9 {
10
11     public AEmptyStringRegularExpression()
12     {
13         // Constructor
14
}
15
16     @Override JavaDoc
17     public Object JavaDoc clone()
18     {
19         return new AEmptyStringRegularExpression();
20     }
21
22     public void apply(Switch sw)
23     {
24         ((Analysis) sw).caseAEmptyStringRegularExpression(this);
25     }
26
27     @Override JavaDoc
28     public String JavaDoc toString()
29     {
30         return "";
31     }
32
33     @Override JavaDoc
34     void removeChild(@SuppressWarnings JavaDoc("unused") Node child)
35     {
36         // Remove child
37
throw new RuntimeException JavaDoc("Not a child.");
38     }
39
40     @Override JavaDoc
41     void replaceChild(@SuppressWarnings JavaDoc("unused") Node oldChild, @SuppressWarnings JavaDoc("unused") Node newChild)
42     {
43         // Replace child
44
throw new RuntimeException JavaDoc("Not a child.");
45     }
46 }
47
Popular Tags