Class MCStructuralTypesPrettyPrinter
java.lang.Object
de.monticore.types.mcstructuraltypes._prettyprint.MCStructuralTypesPrettyPrinter
- All Implemented Interfaces:
MCStructuralTypesHandler,MCStructuralTypesVisitor2,de.monticore.visitor.IHandler,de.monticore.visitor.IVisitor
public class MCStructuralTypesPrettyPrinter
extends Object
implements MCStructuralTypesHandler, MCStructuralTypesVisitor2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected de.monticore.prettyprint.IndentPrinterprotected MCStructuralTypesTraverser -
Constructor Summary
ConstructorsConstructorDescriptionMCStructuralTypesPrettyPrinter(de.monticore.prettyprint.IndentPrinter printer, boolean printComments) -
Method Summary
Modifier and TypeMethodDescriptionde.monticore.prettyprint.IndentPrintervoidhandle(ASTMCBracketType node) voidhandle(ASTMCIntersectionType node) voidhandle(ASTMCTupleType node) voidhandle(ASTMCUnionType node) booleanvoidsetPrintComments(boolean printComments) voidsetTraverser(MCStructuralTypesTraverser traverser) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.monticore.visitor.IHandler
handle, handle, handle, handle, handle, traverse, traverseMethods inherited from interface de.monticore.visitor.IVisitor
endVisit, endVisit, endVisit, endVisit, visit, visit, visit, visit
-
Field Details
-
printer
protected de.monticore.prettyprint.IndentPrinter printer -
printComments
protected boolean printComments -
traverser
-
-
Constructor Details
-
MCStructuralTypesPrettyPrinter
public MCStructuralTypesPrettyPrinter(de.monticore.prettyprint.IndentPrinter printer, boolean printComments)
-
-
Method Details
-
handle
- Specified by:
handlein interfaceMCStructuralTypesHandler
-
handle
- Specified by:
handlein interfaceMCStructuralTypesHandler
-
handle
- Specified by:
handlein interfaceMCStructuralTypesHandler
-
handle
- Specified by:
handlein interfaceMCStructuralTypesHandler
-
getPrinter
public de.monticore.prettyprint.IndentPrinter getPrinter() -
isPrintComments
public boolean isPrintComments() -
setPrintComments
public void setPrintComments(boolean printComments) -
getTraverser
- Specified by:
getTraverserin interfacede.monticore.visitor.IHandler- Specified by:
getTraverserin interfaceMCStructuralTypesHandler
-
setTraverser
- Specified by:
setTraverserin interfaceMCStructuralTypesHandler
-