Class TtcExponentiation


  • public final class TtcExponentiation
    extends TtcBinaryOperation
    Immutable class representing a TTC exponentiation in a MAL language.
    Since:
    1.0.0
    • Constructor Detail

      • TtcExponentiation

        public TtcExponentiation​(TtcExpression lhs,
                                 TtcExpression rhs)
        Constructs a new TtcExponentiation object.
        Parameters:
        lhs - the left-hand side of the exponentiation
        rhs - the right-hand side of the exponentiation
        Throws:
        NullPointerException - if lhs or rhs is null
    • Method Detail

      • getMeanTtc

        public double getMeanTtc()
        Description copied from class: TtcExpression
        Returns the mean TTC of this TtcExpression object.
        Overrides:
        getMeanTtc in class TtcExpression
        Returns:
        the mean TTC of this TtcExpression object
      • toJson

        public JsonObject toJson()
        Description copied from class: TtcExpression
        Returns the JSON representation of this TtcExpression object.
        Specified by:
        toJson in class TtcExpression
        Returns:
        the JSON representation of this TtcExpression object