Class BaseNAryBooleanOperator

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

public final class BaseNAryBooleanOperator extends BaseNAryOperator implements io.github.mmm.code.api.operator.CodeNAryBooleanOperator
Base implementation of CodeNAryBooleanOperator.
Since:
1.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Instance for CodeNAryBooleanOperator.NAME_AND.
    Instance for CodeNAryBooleanOperator.NAME_OR.

    Fields inherited from interface io.github.mmm.code.api.item.CodeItem

    DEFAULT_INDENT, DEFAULT_NEWLINE

    Fields inherited from interface io.github.mmm.code.api.operator.CodeNAryBooleanOperator

    NAME_AND, NAME_OR
  • Constructor Summary

    Constructors
    Constructor
    Description
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static io.github.mmm.code.api.operator.CodeNAryBooleanOperator
    of(String name)
     

    Methods inherited from class BaseNAryOperator

    isComparison, isNAry, isUnary

    Methods inherited from class BaseOperator

    doWrite, getName, of, toString

    Methods inherited from class BaseItem

    getOwningType, getSourceCode, getSpaces, write

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.github.mmm.code.api.item.CodeItem

    getLanguage, getSourceCode, write, write, write, write, write, write

    Methods inherited from interface io.github.mmm.code.api.operator.CodeNAryBooleanOperator

    isBoolean

    Methods inherited from interface io.github.mmm.code.api.operator.CodeNAryOperator

    isNAry

    Methods inherited from interface io.github.mmm.code.api.operator.CodeOperator

    getName, isComparison, isUnary
  • Field Details

  • Constructor Details

    • BaseNAryBooleanOperator

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

    • isNumeric

      public boolean isNumeric()
      Specified by:
      isNumeric in interface io.github.mmm.code.api.operator.CodeNAryOperator
    • of

      public static io.github.mmm.code.api.operator.CodeNAryBooleanOperator of(String name)
      Parameters:
      name - the name of the requested CodeNAryBooleanOperator.
      Returns:
      the CodeNAryBooleanOperator or null if not found.