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

All Superinterfaces:
INRLAstNode, ISimpleReport

public interface IConditionalReport
extends ISimpleReport

An if-then-else reporting statement.


Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IConstraint getCondition()
          Return the "if" condition.
 ICompoundReport getElse()
          Return the report to create if the condition was false.
 ICompoundReport getThen()
          Return the report to create if the condition was true.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getCondition

IConstraint getCondition()
Return the "if" condition.

Returns:
the condition

getThen

ICompoundReport getThen()
Return the report to create if the condition was true. Never returns null

Returns:
the report

getElse

ICompoundReport getElse()
Return the report to create if the condition was false. This can return null if there was no "else" statement.

Returns:
the report


Copyright © 2006-2010 Christian Nentwich and others