Class JavaEqualityOperationHandler
java.lang.Object
de.monticore.codegen.javagen.operationprinter.JavaEqualityOperationHandler
- All Implemented Interfaces:
ICodeGenOperationHandler
Handles ==, != for any input
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.monticore.codegen.ICodeGenOperationHandler
ICodeGenOperationHandler.BinaryOperator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisJavaPrimitive(SymTypeExpression javaType) voidprintEquals(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction) protected voidprintLeftConverted(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction) protected voidprintRightConverted(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction rightExprPrintAction) protected voidprintWithEqualsOperator(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction) booleantryPrint(ICodeGenOperationHandler.BinaryOperator operator, de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression resultType, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction)
-
Constructor Details
-
JavaEqualityOperationHandler
public JavaEqualityOperationHandler()
-
-
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
-
printEquals
public void printEquals(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction) -
printWithEqualsOperator
protected void printWithEqualsOperator(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction, CodeGenPrintAction rightExprPrintAction) -
printLeftConverted
protected void printLeftConverted(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction leftExprPrintAction) -
printRightConverted
protected void printRightConverted(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression leftType, SymTypeExpression rightType, CodeGenPrintAction rightExprPrintAction) -
isJavaPrimitive
-