Package de.monticore.codegen
Class CodeGenSymTypeExpressionConverter
java.lang.Object
de.monticore.codegen.CodeGenSymTypeExpressionConverter
- Direct Known Subclasses:
JavaGenSymTypeExpressionConverter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_printConverted(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression modelTargetType, SymTypeExpression modelSourceType, CodeGenPrintAction sourceExprPrintAction) protected static CodeGenSymTypeExpressionConverterstatic voidprintConverted(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression modelTargetType, SymTypeExpression modelSourceType, CodeGenPrintAction sourceExprPrintAction) calculates the target language expression that converts a given expression to the provided type.static voidreset()protected voidsetConversionHandlers(Collection<ICodeGenSymTypeExpressionConversionHandler> conversionHandlers) protected static voidsetDelegate(CodeGenSymTypeExpressionConverter newDelegate)
-
Field Details
-
delegate
-
conversionHandlers
-
-
Constructor Details
-
CodeGenSymTypeExpressionConverter
public CodeGenSymTypeExpressionConverter()
-
-
Method Details
-
getConversionHandlers
-
setConversionHandlers
protected void setConversionHandlers(Collection<ICodeGenSymTypeExpressionConversionHandler> conversionHandlers) -
printConverted
public static void printConverted(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression modelTargetType, SymTypeExpression modelSourceType, CodeGenPrintAction sourceExprPrintAction) calculates the target language expression that converts a given expression to the provided type.- Parameters:
modelTargetType- target MontiCore expression typemodelSourceType- source MontiCore expression type
-
_printConverted
protected void _printConverted(de.monticore.prettyprint.IndentPrinter printer, SymTypeExpression modelTargetType, SymTypeExpression modelSourceType, CodeGenPrintAction sourceExprPrintAction) -
reset
public static void reset() -
setDelegate
-
getDelegate
-