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 Prods1 extends Prods
15
public void apply(Switch sw)
17
((Analysis) sw).caseProds1(this);
20
public String toString()
29
public Prod getNode1()
34
public void setNode1(Prod node)
38
node1.setParent(null);
41
if(node.getParent() != null)
43
node.getParent().removeChild(node);
53
public Prods getNode2()
58
public void setNode2(Prods node)
62
node2.setParent(null);
65
if(node.getParent() != null)
67
node.getParent().removeChild(node);
75
void removeChild(Node child)