Class JavaNumericOperationHandler
java.lang.Object
de.monticore.codegen.javagen.operationprinter.JavaNumericOperationHandler
- All Implemented Interfaces:
ICodeGenOperationHandler
Supports numbers,
Does NOT handle (in)equality / assignment operations
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.monticore.codegen.ICodeGenOperationHandler
ICodeGenOperationHandler.BinaryOperator -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Map<ICodeGenOperationHandler.BinaryOperator, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected booleanisSupported(SymTypeExpression modelType) protected voidprintBooleanInfix(de.monticore.prettyprint.IndentPrinter printer, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction, String javaInfixOp) protected voidprintSimpleInfixOperator(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression resultType, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction, String javaInfixOp) booleantryPrint(ICodeGenOperationHandler.BinaryOperator operator, de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression resultType, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction)
-
Field Details
-
BINARY_OPERATOR_2_JAVA
-
-
Constructor Details
-
JavaNumericOperationHandler
public JavaNumericOperationHandler()
-
-
Method Details
-
tryPrint
public boolean tryPrint(ICodeGenOperationHandler.BinaryOperator operator, de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression resultType, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction) - Specified by:
tryPrintin interfaceICodeGenOperationHandler
-
printBooleanInfix
protected void printBooleanInfix(de.monticore.prettyprint.IndentPrinter printer, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction, String javaInfixOp) -
printSimpleInfixOperator
protected void printSimpleInfixOperator(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression resultType, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction, String javaInfixOp) -
isSupported
-
getJavaOperator
-