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 PkgId1 extends PkgId
15
public void apply(Switch sw)
17
((Analysis) sw).casePkgId1(this);
20
public String getText()
22
return node1.getText();
25
public String toString()
31
private TPackage node1;
33
public TPackage getNode1()
38
public void setNode1(TPackage node)
42
node1.setParent(null);
45
if(node.getParent() != null)
47
node.getParent().removeChild(node);
55
void removeChild(Node child)