Package compilation.analysis.semantic
Class AnnotatedConditionalStatement
- java.lang.Object
-
- compilation.analysis.semantic.AnnotatedConditionalStatement
-
- All Implemented Interfaces:
AnnotatedStatement
public final class AnnotatedConditionalStatement extends java.lang.Object implements AnnotatedStatement
The AnnotatedConditionalStatement class is used to store information about annotated conditional statements declared during compilation.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description AnnotatedConditionalStatement(AnnotatedExpression condition, AnnotatedStatement thenStatement, AnnotatedStatement elseStatement)Constructs an AnnotatedConditionalStatement object, initialised with the statements contents.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanincludesElseStatement()Returns a boolean to indicate if an AnnotatedConditionalStatement contains an ElseStatement.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface compilation.analysis.semantic.AnnotatedStatement
getStatementType
-
-
-
-
Constructor Detail
-
AnnotatedConditionalStatement
public AnnotatedConditionalStatement(AnnotatedExpression condition, AnnotatedStatement thenStatement, AnnotatedStatement elseStatement)
Constructs an AnnotatedConditionalStatement object, initialised with the statements contents.- Parameters:
condition- The AnnotatedExpression condition for the then AnnotatedStatement to runthenStatement- The AnnotatedExpression to be run if the condition is trueelseStatement- The AnnotatedExpression to be run if the condition is false
-
-