Class BaseUnaryOperator
java.lang.Object
io.github.mmm.code.base.item.BaseItem
io.github.mmm.code.base.operator.BaseOperator
io.github.mmm.code.base.operator.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 Summary
FieldsModifier and TypeFieldDescriptionstatic final BaseUnaryOperatorInstance forCodeUnaryOperator.NAME_BIT_NOT.static final BaseUnaryOperatorInstance forCodeUnaryOperator.NAME_NOT.Fields inherited from interface io.github.mmm.code.api.item.CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINEFields inherited from interface io.github.mmm.code.api.operator.CodeUnaryOperator
NAME_BIT_NOT, NAME_NOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal booleanisNAry()final booleanisUnary()static BaseUnaryOperatorMethods inherited from class BaseOperator
doWrite, getName, of, toStringMethods inherited from class BaseItem
getOwningType, getSourceCode, getSpaces, writeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.code.api.item.CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface io.github.mmm.code.api.operator.CodeOperator
getName
-
Field Details
-
NOT
Instance forCodeUnaryOperator.NAME_NOT. -
BIT_NOT
Instance forCodeUnaryOperator.NAME_BIT_NOT.
-
-
Constructor Details
-
BaseUnaryOperator
-
-
Method Details
-
isComparison
public final boolean isComparison()- Specified by:
isComparisonin interfaceio.github.mmm.code.api.operator.CodeOperator
-
isNAry
public final boolean isNAry()- Specified by:
isNAryin interfaceio.github.mmm.code.api.operator.CodeOperator
-
isUnary
public final boolean isUnary()- Specified by:
isUnaryin interfaceio.github.mmm.code.api.operator.CodeOperator- Specified by:
isUnaryin interfaceio.github.mmm.code.api.operator.CodeUnaryOperator
-
of
- Parameters:
name- thenameof the requestedBaseUnaryOperator.- Returns:
- the
BaseUnaryOperatorornullif not found.
-