blob: 52964270a4d420ac3136d9af8a3df6c04b45ac52 [file] [log] [blame]
/**
* Copyright (c) 2007 - 2009 OptXware Research and Development LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Daniel Varro - Initial API and implementation
*
* This file was generated automatically based upon the VTCL LPG Parser
* VTCLParser.g
*/
package org.eclipse.viatra2.lpgparser.ast;
import lpg.lpgjavaruntime.*;
/**
*<b>
*<li>Rule 152: AsmFunctionUpdateLocationAST ::= ASMFunctionNameAST ActualParameterDefAST
*</b>
*/
public class AsmFunctionUpdateLocationAST extends ASTNode implements IAsmFunctionUpdateLocationAST
{
private IASMFunctionNameAST _ASMFunctionNameAST;
private IActualParameterDefAST _ActualParameterDefAST;
public IASMFunctionNameAST getASMFunctionNameAST() { return _ASMFunctionNameAST; }
public IActualParameterDefAST getActualParameterDefAST() { return _ActualParameterDefAST; }
public AsmFunctionUpdateLocationAST(IToken leftIToken, IToken rightIToken,
IASMFunctionNameAST _ASMFunctionNameAST,
IActualParameterDefAST _ActualParameterDefAST)
{
super(leftIToken, rightIToken);
this._ASMFunctionNameAST = _ASMFunctionNameAST;
((ASTNode) _ASMFunctionNameAST).setParent(this);
this._ActualParameterDefAST = _ActualParameterDefAST;
((ASTNode) _ActualParameterDefAST).setParent(this);
initialize();
}
public boolean equals(Object o)
{
if (o == this) return true;
//
// The supers call is not required for now because Ast nodes
// can only extend the root Ast, AstToken and AstList and none
// of these nodes contain children.
//
// if (! super.equals(o)) return false;
//
if (! (o instanceof AsmFunctionUpdateLocationAST)) return false;
AsmFunctionUpdateLocationAST other = (AsmFunctionUpdateLocationAST) o;
if (! _ASMFunctionNameAST.equals(other.getASMFunctionNameAST())) return false;
if (! _ActualParameterDefAST.equals(other.getActualParameterDefAST())) return false;
return true;
}
public int hashCode()
{
int hash = 7;
hash = hash * 31 + (getASMFunctionNameAST().hashCode());
hash = hash * 31 + (getActualParameterDefAST().hashCode());
return hash;
}
public void accept(Visitor v) { v.visit(this); }
public void accept(ArgumentVisitor v, Object o) { v.visit(this, o); }
public Object accept(ResultVisitor v) { return v.visit(this); }
public Object accept(ResultArgumentVisitor v, Object o) { return v.visit(this, o); }
}