Class BaseUnaryOperator

All Implemented Interfaces:
io.github.mmm.code.api.item.CodeItem, io.github.mmm.code.api.operator.CodeOperator, io.github.mmm.code.api.operator.CodeUnaryOperator

public final class BaseUnaryOperator extends BaseOperator implements io.github.mmm.code.api.operator.CodeUnaryOperator
Base implementation of CodeUnaryOperator.
Since:
1.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
  • Field Details

    • NOT

      public static final BaseUnaryOperator NOT
      Instance for CodeUnaryOperator.NAME_NOT.
    • BIT_NOT

      public static final BaseUnaryOperator BIT_NOT
      Instance for CodeUnaryOperator.NAME_BIT_NOT.
  • Constructor Details

    • BaseUnaryOperator

      public BaseUnaryOperator(String name)
      The constructor.
      Parameters:
      name - the name.
  • Method Details

    • isComparison

      public final boolean isComparison()
      Specified by:
      isComparison in interface io.github.mmm.code.api.operator.CodeOperator
    • isNAry

      public final boolean isNAry()
      Specified by:
      isNAry in interface io.github.mmm.code.api.operator.CodeOperator
    • isUnary

      public final boolean isUnary()
      Specified by:
      isUnary in interface io.github.mmm.code.api.operator.CodeOperator
      Specified by:
      isUnary in interface io.github.mmm.code.api.operator.CodeUnaryOperator
    • of

      public static BaseUnaryOperator of(String name)
      Parameters:
      name - the name of the requested BaseUnaryOperator.
      Returns:
      the BaseUnaryOperator or null if not found.