AExclusiveOrExpressionInclusiveOrExpression.java :  » Science » jmatlab » org » jmatlab » node » Java Open Source

Java Open Source » Science » jmatlab 
jmatlab » org » jmatlab » node » AExclusiveOrExpressionInclusiveOrExpression.java
/* This file was generated by SableCC (http://www.sablecc.org/). */

package org.jmatlab.node;

import java.util.*;
import org.jmatlab.analysis.*;

public final class AExclusiveOrExpressionInclusiveOrExpression extends PInclusiveOrExpression
{
    private PExclusiveOrExpression _exclusiveOrExpression_;

    public AExclusiveOrExpressionInclusiveOrExpression()
    {
    }

    public AExclusiveOrExpressionInclusiveOrExpression(
        PExclusiveOrExpression _exclusiveOrExpression_)
    {
        setExclusiveOrExpression(_exclusiveOrExpression_);

    }
    public Object clone()
    {
        return new AExclusiveOrExpressionInclusiveOrExpression(
            (PExclusiveOrExpression) cloneNode(_exclusiveOrExpression_));
    }

    public void apply(Switch sw)
    {
        ((Analysis) sw).caseAExclusiveOrExpressionInclusiveOrExpression(this);
    }

    public PExclusiveOrExpression getExclusiveOrExpression()
    {
        return _exclusiveOrExpression_;
    }

    public void setExclusiveOrExpression(PExclusiveOrExpression node)
    {
        if(_exclusiveOrExpression_ != null)
        {
            _exclusiveOrExpression_.parent(null);
        }

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

            node.parent(this);
        }

        _exclusiveOrExpression_ = node;
    }

    public String toString()
    {
        return ""
            + toString(_exclusiveOrExpression_);
    }

    void removeChild(Node child)
    {
        if(_exclusiveOrExpression_ == child)
        {
            _exclusiveOrExpression_ = null;
            return;
        }

    }

    void replaceChild(Node oldChild, Node newChild)
    {
        if(_exclusiveOrExpression_ == oldChild)
        {
            setExclusiveOrExpression((PExclusiveOrExpression) newChild);
            return;
        }

    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.