1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
* This file is part of SableCC. *
3
* See the file "LICENSE" for copyright information and the *
4
* terms and conditions for copying, distribution and *
5
* modification of SableCC. *
6
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
8
package org.sablecc.sablecc.node;
10
import org.sablecc.sablecc.Switch;
11
import org.sablecc.sablecc.analysis.Analysis;
13
public final class Alt1 extends Alt
15
public void apply(Switch sw)
17
((Analysis) sw).caseAlt1(this);
20
public String toString()
27
private AltNameOpt node1;
29
public AltNameOpt getNode1()
34
public void setNode1(AltNameOpt node)
38
node1.setParent(null);
41
if(node.getParent() != null)
43
node.getParent().removeChild(node);
53
public Elems getNode2()
58
public void setNode2(Elems node)
62
node2.setParent(null);
65
if(node.getParent() != null)
67
node.getParent().removeChild(node);
75
void removeChild(Node child)