Class CtIfImpl

    • Constructor Detail

      • CtIfImpl

        public CtIfImpl()
    • Method Detail

      • getCondition

        public CtExpression<java.lang.Boolean> getCondition()
        Description copied from interface: CtIf
        Gets the boolean expression that represents the if's condition.
        Specified by:
        getCondition in interface CtIf
      • getElseStatement

        public <S extends CtStatement> S getElseStatement()
        Description copied from interface: CtIf
        Gets the statement executed when the condition is false.
        Specified by:
        getElseStatement in interface CtIf
      • getThenStatement

        public <S extends CtStatement> S getThenStatement()
        Description copied from interface: CtIf
        Gets the statement executed when the condition is true.
        Specified by:
        getThenStatement in interface CtIf
      • setCondition

        public <T extends CtIf> T setCondition​(CtExpression<java.lang.Boolean> condition)
        Description copied from interface: CtIf
        Sets the boolean expression that represents the if's condition.
        Specified by:
        setCondition in interface CtIf
      • setElseStatement

        public <T extends CtIf> T setElseStatement​(CtStatement elseStatement)
        Description copied from interface: CtIf
        Sets the statement executed when the condition is false.
        Specified by:
        setElseStatement in interface CtIf
      • setThenStatement

        public <T extends CtIf> T setThenStatement​(CtStatement thenStatement)
        Description copied from interface: CtIf
        Sets the statement executed when the condition is true.
        Specified by:
        setThenStatement in interface CtIf
      • S

        public java.lang.Void S()
        Description copied from interface: TemplateParameter
        Gets the type of the template parameter. This methods has no runtime meaning (should return a null reference) but is used as a marker in a template code.
        Specified by:
        S in interface TemplateParameter<java.lang.Void>