Package org.eclipse.epsilon.eol.parse
Class EolUnparser
java.lang.Object
org.eclipse.epsilon.eol.parse.EolUnparser
- All Implemented Interfaces:
IEolVisitor
- Direct Known Subclasses:
ErlUnparser
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
arrowOrDot
(FeatureCallExpression expression) protected void
comma()
protected void
static String
getCode()
protected void
indent()
protected void
protected void
newline()
protected void
protected void
protected void
protected void
space()
protected void
protected void
protected void
unparse
(Expression expression) protected void
unparseAnnotations
(AnnotatableModuleElement annotatableModuleElement) protected void
unparseBinaryOperatorExpression
(OperatorExpression operatorExpression, String operator) protected void
void
visit
(AbortStatement abortStatement) void
visit
(AndOperatorExpression andOperatorExpression) void
visit
(AnnotationBlock annotationBlock) void
visit
(AssignmentStatement assignmentStatement) void
visit
(BooleanLiteral booleanLiteral) void
visit
(BreakStatement breakStatement) void
void
visit
(CollectionLiteralExpression<?> collectionLiteralExpression) void
visit
(ComplexOperationCallExpression complexOperationCallExpression) void
visit
(ContinueStatement continueStatement) void
visit
(DeleteStatement deleteStatement) void
visit
(DivOperatorExpression divOperatorExpression) void
visit
(DoubleEqualsOperatorExpression doubleEqualsOperatorExpression) void
visit
(ElvisOperatorExpression elvisOperatorExpression) void
visit
(EnumerationLiteralExpression enumerationLiteralExpression) void
visit
(EqualsOperatorExpression equalsOperatorExpression) void
visit
(ExecutableAnnotation executableAnnotation) void
visit
(ExecutableBlock<?> executableBlock) void
visit
(ExpressionInBrackets expressionInBrackets) void
visit
(ExpressionStatement expressionStatement) void
visit
(FirstOrderOperationCallExpression operationCallExpression) void
visit
(ForStatement forStatement) void
visit
(GreaterEqualOperatorExpression greaterEqualOperatorExpression) void
visit
(GreaterThanOperatorExpression greaterThanOperatorExpression) void
visit
(IfStatement ifStatement) void
visit
(ImpliesOperatorExpression impliesOperatorExpression) void
void
visit
(IntegerLiteral integerLiteral) void
visit
(ItemSelectorExpression itemSelectorExpression) void
visit
(LessEqualOperatorExpression lessEqualOperatorExpression) void
visit
(LessThanOperatorExpression lessThanOperatorExpression) void
visit
(MapLiteralExpression<?, ?> mapLiteralExpression) void
visit
(MinusOperatorExpression minusOperatorExpression) void
visit
(ModelDeclaration modelDeclaration) void
visit
(ModelDeclarationParameter modelDeclarationParameter) void
visit
(NameExpression nameExpression) void
visit
(NegativeOperatorExpression negativeOperatorExpression) void
visit
(NewInstanceExpression newInstanceExpression) void
visit
(NotEqualsOperatorExpression notEqualsOperatorExpression) void
visit
(NotOperatorExpression notOperatorExpression) void
void
visit
(OperationCallExpression operationCallExpression) void
visit
(OrOperatorExpression orOperatorExpression) void
void
visit
(PlusOperatorExpression plusOperatorExpression) void
visit
(PostfixOperatorExpression postfixOperatorExpression) void
visit
(PropertyCallExpression propertyCallExpression) void
visit
(RealLiteral realLiteral) void
visit
(ReturnStatement returnStatement) void
visit
(SimpleAnnotation simpleAnnotation) void
visit
(StatementBlock statementBlock) void
visit
(StringLiteral stringLiteral) void
visit
(SwitchStatement switchStatement) void
visit
(TernaryExpression ternaryExpression) void
visit
(ThrowStatement throwStatement) void
visit
(TimesOperatorExpression timesOperatorExpression) void
visit
(TransactionStatement transactionStatement) void
visit
(TypeExpression typeExpression) void
visit
(VariableDeclaration variableDeclaration) void
visit
(WhileStatement whileStatement) void
visit
(XorOperatorExpression xorOperatorExpression)
-
Field Details
-
buffer
-
module
-
indentation
protected int indentation
-
-
Constructor Details
-
EolUnparser
public EolUnparser()
-
-
Method Details
-
unparse
-
getCode
-
unparseMain
protected void unparseMain() -
newline
protected void newline() -
comma
protected void comma() -
space
protected void space() -
startCurlybrace
protected void startCurlybrace() -
endCurlybrace
protected void endCurlybrace() -
plusIndentationAndAppend
protected void plusIndentationAndAppend() -
minusIndentationAndAppend
protected void minusIndentationAndAppend() -
spaceCurlybraceNewlineIndent
protected void spaceCurlybraceNewlineIndent() -
newlineUnindentCurlybrace
protected void newlineUnindentCurlybrace() -
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
semicolon
protected void semicolon() -
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
unparse
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
indent
protected void indent() -
visit
- Specified by:
visit
in interfaceIEolVisitor
-
escape
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
unparseBinaryOperatorExpression
protected void unparseBinaryOperatorExpression(OperatorExpression operatorExpression, String operator) -
arrowOrDot
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
visit
- Specified by:
visit
in interfaceIEolVisitor
-
unparseAnnotations
-