net.sourceforge.nrl.parser.ast.constraints
Interface IArithmeticExpression

All Superinterfaces:
IConstraint, IExpression, INRLAstNode

public interface IArithmeticExpression
extends IExpression

An arithmetic expression takes two arguments and applies an operator to them. The interface defines methods for accessing the two arguments, and for obtaining the operator.


Nested Class Summary
static class IArithmeticExpression.Operator
          The available arithmetic operators.
 
Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IExpression getLeft()
          Get the first parameter.
 IArithmeticExpression.Operator getOperator()
          Return the operator
 IExpression getRight()
          Get the second parameter.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.constraints.IConstraint
getNRLDataType, setNRLDataType
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getLeft

IExpression getLeft()
Get the first parameter. Never returns null.

Returns:
the first parameter

getRight

IExpression getRight()
Get the second parameter. Never returns null.

Returns:
the second parameter

getOperator

IArithmeticExpression.Operator getOperator()
Return the operator

Returns:
the operator


Copyright © 2006-2010 Christian Nentwich and others