Class ArithmeticOperationResultType

java.lang.Object
com.aquima.interactions.expressions.semantics.ArithmeticOperationResultType

public class ArithmeticOperationResultType extends Object
This internal class contains information of an arithmetic operation and it's result type.
Since:
6.3
Author:
F. van der Meer
  • Constructor Details

    • ArithmeticOperationResultType

      protected ArithmeticOperationResultType(DataType resultType, ErrorCode code, boolean error)
  • Method Details

    • isError

      public boolean isError()
      This method returns a boolean indicating the result type is an error and should actually not be used.
      Returns:
      a boolean indicating the result type is an error and should actually not be used.
    • getCode

      public ErrorCode getCode()
      This method returns an optional error code which states when available if this is a warning or error. Check the isError function to indicate the difference between a warning and an error.
      Returns:
      ErrorCode a code containing the error message.
    • getType

      public DataType getType()
      This method returns the actual resulting type.
      Returns:
      The actual resulting type.