Class BaseNAryOperator

All Implemented Interfaces:
io.github.mmm.code.api.item.CodeItem, io.github.mmm.code.api.operator.CodeNAryOperator, io.github.mmm.code.api.operator.CodeOperator
Direct Known Subclasses:
BaseNAryArbitraryOperator, BaseNAryBooleanOperator, BaseNAryHybridOperator, BaseNAryNumericOperator

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

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

    DEFAULT_INDENT, DEFAULT_NEWLINE
  • Constructor Summary

    Constructors
    Constructor
    Description
    The constructor.
  • Method Summary

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

    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.CodeNAryOperator

    isBoolean, isNumeric

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

    getName
  • Constructor Details

    • BaseNAryOperator

      public BaseNAryOperator(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.CodeNAryOperator
      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 io.github.mmm.code.api.operator.CodeNAryOperator of(String name)
      Parameters:
      name - the name of the requested CodeNAryOperator.
      Returns:
      the CodeNAryOperator or null if not found.