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

All Superinterfaces:
IConstraint, INRLAstNode

public interface IIfThenStatement
extends IConstraint

An if-then statement contains a boolean if clause, a then clause and an optional else clause.

Abstract syntax reference: IfThenStatement ::= if:BinaryOperatorStatement then:IfThenStatement (else:IfThenStatement)?


Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IConstraint getElse()
          Return the else clause.
 IConstraint getIf()
          Return the if clause.
 IConstraint getThen()
          Return the then clause.
 
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

getIf

IConstraint getIf()
Return the if clause. Never returns null.

Returns:
the if clause

getThen

IConstraint getThen()
Return the then clause. Never returns null.

Returns:
the then clause

getElse

IConstraint getElse()
Return the else clause. Will return null if there is no else clause attached.

Returns:
the else clause or null


Copyright © 2006-2010 Christian Nentwich and others