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 PkgName1 extends PkgName
15
public void apply(Switch sw)
17
((Analysis) sw).casePkgName1(this);
20
public String toString()
30
public PkgId getNode1()
35
public void setNode1(PkgId node)
39
node1.setParent(null);
42
if(node.getParent() != null)
44
node.getParent().removeChild(node);
52
private PkgNameTails node2;
54
public PkgNameTails getNode2()
59
public void setNode2(PkgNameTails node)
63
node2.setParent(null);
66
if(node.getParent() != null)
68
node.getParent().removeChild(node);
76
private TSemicolon node3;
78
public TSemicolon getNode3()
83
public void setNode3(TSemicolon node)
87
node3.setParent(null);
90
if(node.getParent() != null)
92
node.getParent().removeChild(node);
100
void removeChild(Node child)