soot.jimple.parser.node.AQuotedClassName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of soot Show documentation
Show all versions of soot Show documentation
A Java Optimization Framework
/* This file was generated by SableCC (http://www.sablecc.org/). */
package soot.jimple.parser.node;
import soot.jimple.parser.analysis.*;
@SuppressWarnings("nls")
public final class AQuotedClassName extends PClassName
{
private TQuotedName _quotedName_;
public AQuotedClassName()
{
// Constructor
}
public AQuotedClassName(
@SuppressWarnings("hiding") TQuotedName _quotedName_)
{
// Constructor
setQuotedName(_quotedName_);
}
@Override
public Object clone()
{
return new AQuotedClassName(
cloneNode(this._quotedName_));
}
@Override
public void apply(Switch sw)
{
((Analysis) sw).caseAQuotedClassName(this);
}
public TQuotedName getQuotedName()
{
return this._quotedName_;
}
public void setQuotedName(TQuotedName node)
{
if(this._quotedName_ != null)
{
this._quotedName_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
this._quotedName_ = node;
}
@Override
public String toString()
{
return ""
+ toString(this._quotedName_);
}
@Override
void removeChild(@SuppressWarnings("unused") Node child)
{
// Remove child
if(this._quotedName_ == child)
{
this._quotedName_ = null;
return;
}
throw new RuntimeException("Not a child.");
}
@Override
void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
{
// Replace child
if(this._quotedName_ == oldChild)
{
setQuotedName((TQuotedName) newChild);
return;
}
throw new RuntimeException("Not a child.");
}
}