Interface UnaryOperation<T extends org.faktorips.codegen.CodeFragment>

Type Parameters:
T - a CodeFragment implementation for a specific target language
All Known Implementing Classes:
AbstractUnaryJavaOperation, AbstractUnaryOperation, MinusDecimal, MinusInteger, MinusMoney, MinusPrimitiveInt, ParenthesisDecimal, ParenthesisInt, ParenthesisMoney, ParenthesisString, PlusDecimal, PlusInteger, PlusMoney, PlusPrimitiveInt

public interface UnaryOperation<T extends org.faktorips.codegen.CodeFragment>
An operation combining one operator with it's single operand.
  • Field Details

  • Method Details

    • getOperator

      String getOperator()
      Returns the operator.
    • getDatatype

      org.faktorips.datatype.Datatype getDatatype()
      Returns the Datatype of the operation's result.
    • generate

      Generates the CompilationResult for the given operand.
      Parameters:
      arg - the operand
      Returns:
      the given operand combined with this operation's operator