01: /* This file was generated by SableCC (http://www.sablecc.org/). */
02:
03: package org.jmatlab.node;
04:
05: import java.util.*;
06: import org.jmatlab.analysis.*;
07:
08: public final class AInclusiveOrExpressionConditionalAndExpression
09: extends PConditionalAndExpression {
10: private PInclusiveOrExpression _inclusiveOrExpression_;
11:
12: public AInclusiveOrExpressionConditionalAndExpression() {
13: }
14:
15: public AInclusiveOrExpressionConditionalAndExpression(
16: PInclusiveOrExpression _inclusiveOrExpression_) {
17: setInclusiveOrExpression(_inclusiveOrExpression_);
18:
19: }
20:
21: public Object clone() {
22: return new AInclusiveOrExpressionConditionalAndExpression(
23: (PInclusiveOrExpression) cloneNode(_inclusiveOrExpression_));
24: }
25:
26: public void apply(Switch sw) {
27: ((Analysis) sw)
28: .caseAInclusiveOrExpressionConditionalAndExpression(this );
29: }
30:
31: public PInclusiveOrExpression getInclusiveOrExpression() {
32: return _inclusiveOrExpression_;
33: }
34:
35: public void setInclusiveOrExpression(PInclusiveOrExpression node) {
36: if (_inclusiveOrExpression_ != null) {
37: _inclusiveOrExpression_.parent(null);
38: }
39:
40: if (node != null) {
41: if (node.parent() != null) {
42: node.parent().removeChild(node);
43: }
44:
45: node.parent(this );
46: }
47:
48: _inclusiveOrExpression_ = node;
49: }
50:
51: public String toString() {
52: return "" + toString(_inclusiveOrExpression_);
53: }
54:
55: void removeChild(Node child) {
56: if (_inclusiveOrExpression_ == child) {
57: _inclusiveOrExpression_ = null;
58: return;
59: }
60:
61: }
62:
63: void replaceChild(Node oldChild, Node newChild) {
64: if (_inclusiveOrExpression_ == oldChild) {
65: setInclusiveOrExpression((PInclusiveOrExpression) newChild);
66: return;
67: }
68:
69: }
70: }
|