Class 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 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 run
        thenStatement - The AnnotatedExpression to be run if the condition is true
        elseStatement - The AnnotatedExpression to be run if the condition is false
    • Method Detail

      • includesElseStatement

        public boolean includesElseStatement()
        Returns a boolean to indicate if an AnnotatedConditionalStatement contains an ElseStatement.
        Returns:
        A boolean indicating if an else is present