All Downloads are FREE. Search and download functionalities are using the official Maven repository.

soot.jimple.parser.node.AXorBinop Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
/* 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 AXorBinop extends PBinop
{
    private TXor _xor_;

    public AXorBinop()
    {
        // Constructor
    }

    public AXorBinop(
        @SuppressWarnings("hiding") TXor _xor_)
    {
        // Constructor
        setXor(_xor_);

    }

    @Override
    public Object clone()
    {
        return new AXorBinop(
            cloneNode(this._xor_));
    }

    @Override
    public void apply(Switch sw)
    {
        ((Analysis) sw).caseAXorBinop(this);
    }

    public TXor getXor()
    {
        return this._xor_;
    }

    public void setXor(TXor node)
    {
        if(this._xor_ != null)
        {
            this._xor_.parent(null);
        }

        if(node != null)
        {
            if(node.parent() != null)
            {
                node.parent().removeChild(node);
            }

            node.parent(this);
        }

        this._xor_ = node;
    }

    @Override
    public String toString()
    {
        return ""
            + toString(this._xor_);
    }

    @Override
    void removeChild(@SuppressWarnings("unused") Node child)
    {
        // Remove child
        if(this._xor_ == child)
        {
            this._xor_ = null;
            return;
        }

        throw new RuntimeException("Not a child.");
    }

    @Override
    void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
    {
        // Replace child
        if(this._xor_ == oldChild)
        {
            setXor((TXor) newChild);
            return;
        }

        throw new RuntimeException("Not a child.");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy