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

All Superinterfaces:
IConstraint, INRLAstNode

public interface IBinaryOperatorStatement
extends IConstraint

A binary operator statement is either an and, or, iff or implies statement. The interface provides methods for determining which operator applies, and for manipulating the two children.


Nested Class Summary
static class IBinaryOperatorStatement.Operator
          Available operators.
 
Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IConstraint getLeft()
          Return the left parameter.
 IBinaryOperatorStatement.Operator getOperator()
          Return the constant indicating which operator applies.
 IConstraint getRight()
          Return the right 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

IConstraint getLeft()
Return the left parameter. Never returns null.

Returns:
the left parameter

getRight

IConstraint getRight()
Return the right parameter. Never returns null.

Returns:
the right parameter

getOperator

IBinaryOperatorStatement.Operator getOperator()
Return the constant indicating which operator applies. The constant is one of the enumeration values defined in this interface.

Returns:
the operator constant


Copyright © 2006-2010 Christian Nentwich and others