Class BaseComparisonOperator

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

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

  • Constructor Details

    • BaseComparisonOperator

      public BaseComparisonOperator(String name)
      The constructor. Only use to declare new constants.
      Parameters:
      name - the name.
  • Method Details

    • isComparison

      public final boolean isComparison()
      Specified by:
      isComparison in interface io.github.mmm.code.api.operator.CodeComparisonOperator
      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
    • of

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