public class FormCalc2JavaScriptConverter extends FormCalcBaseVisitor<String>
Constructor and Description |
---|
FormCalc2JavaScriptConverter() |
visitAccessor, visitArguments, visitArrayInitializer, visitBlock, visitBlockStatement, visitBooleanLiteral, visitCompilationUnit, visitExpressionList, visitIntegerLiteral, visitLiteral, visitMethodBody, visitNumericOperators, visitPrimary, visitPrimitiveType, visitQualifiedName, visitQualifiedNameList, visitStatement, visitType, visitVariableAssign, visitVariableDeclaratorId, visitVariableModifier
defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode
public String visitIfStatement(@NotNull FormCalcParser.IfStatementContext ctx)
FormCalcBaseVisitor
FormCalcParser.ifStatement()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIfStatement
in interface FormCalcVisitor<String>
visitIfStatement
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitThenStatement(@NotNull FormCalcParser.ThenStatementContext ctx)
FormCalcBaseVisitor
FormCalcParser.thenStatement()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitThenStatement
in interface FormCalcVisitor<String>
visitThenStatement
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitElseIfStatement(@NotNull FormCalcParser.ElseIfStatementContext ctx)
FormCalcBaseVisitor
FormCalcParser.elseIfStatement()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElseIfStatement
in interface FormCalcVisitor<String>
visitElseIfStatement
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitElseStatement(@NotNull FormCalcParser.ElseStatementContext ctx)
FormCalcBaseVisitor
FormCalcParser.elseStatement()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElseStatement
in interface FormCalcVisitor<String>
visitElseStatement
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitForUpToStatement(@NotNull FormCalcParser.ForUpToStatementContext ctx)
FormCalcBaseVisitor
FormCalcParser.forUpToStatement()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForUpToStatement
in interface FormCalcVisitor<String>
visitForUpToStatement
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitForDownToStatement(@NotNull FormCalcParser.ForDownToStatementContext ctx)
FormCalcBaseVisitor
FormCalcParser.forDownToStatement()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForDownToStatement
in interface FormCalcVisitor<String>
visitForDownToStatement
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitWhileStatement(@NotNull FormCalcParser.WhileStatementContext ctx)
FormCalcBaseVisitor
FormCalcParser.whileStatement()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitWhileStatement
in interface FormCalcVisitor<String>
visitWhileStatement
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitStatementExpression(@NotNull FormCalcParser.StatementExpressionContext ctx)
FormCalcBaseVisitor
FormCalcParser.statementExpression()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStatementExpression
in interface FormCalcVisitor<String>
visitStatementExpression
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitExpression(@NotNull FormCalcParser.ExpressionContext ctx)
FormCalcBaseVisitor
FormCalcParser.expression()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpression
in interface FormCalcVisitor<String>
visitExpression
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitWildcardExpression(@NotNull FormCalcParser.WildcardExpressionContext ctx)
FormCalcBaseVisitor
FormCalcParser.wildcardExpression()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitWildcardExpression
in interface FormCalcVisitor<String>
visitWildcardExpression
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitVariableDeclarator(@NotNull FormCalcParser.VariableDeclaratorContext ctx)
FormCalcBaseVisitor
FormCalcParser.variableDeclarator()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclarator
in interface FormCalcVisitor<String>
visitVariableDeclarator
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitVariableInitializer(@NotNull FormCalcParser.VariableInitializerContext ctx)
FormCalcBaseVisitor
FormCalcParser.variableInitializer()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableInitializer
in interface FormCalcVisitor<String>
visitVariableInitializer
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitFuncCallExpression(@NotNull FormCalcParser.FuncCallExpressionContext ctx)
FormCalcBaseVisitor
FormCalcParser.funcCallExpression()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFuncCallExpression
in interface FormCalcVisitor<String>
visitFuncCallExpression
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitParExpression(@NotNull FormCalcParser.ParExpressionContext ctx)
FormCalcBaseVisitor
FormCalcParser.parExpression()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitParExpression
in interface FormCalcVisitor<String>
visitParExpression
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitTerminal(@NotNull org.antlr.v4.runtime.tree.TerminalNode node)
protected String aggregateResult(String aggregate, String nextResult)
aggregateResult
in class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<String>
public String visitOrOperators(@NotNull FormCalcParser.OrOperatorsContext ctx)
FormCalcBaseVisitor
FormCalcParser.orOperators()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitOrOperators
in interface FormCalcVisitor<String>
visitOrOperators
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitAndOperators(@NotNull FormCalcParser.AndOperatorsContext ctx)
FormCalcBaseVisitor
FormCalcParser.andOperators()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAndOperators
in interface FormCalcVisitor<String>
visitAndOperators
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitEqualityOperators(@NotNull FormCalcParser.EqualityOperatorsContext ctx)
FormCalcBaseVisitor
FormCalcParser.equalityOperators()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEqualityOperators
in interface FormCalcVisitor<String>
visitEqualityOperators
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitRelationalOperators(@NotNull FormCalcParser.RelationalOperatorsContext ctx)
FormCalcBaseVisitor
FormCalcParser.relationalOperators()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitRelationalOperators
in interface FormCalcVisitor<String>
visitRelationalOperators
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitAssign(@NotNull FormCalcParser.AssignContext ctx)
FormCalcBaseVisitor
FormCalcParser.assign()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAssign
in interface FormCalcVisitor<String>
visitAssign
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
public String visitNullEqualityExpression(@NotNull FormCalcParser.NullEqualityExpressionContext ctx)
FormCalcBaseVisitor
FormCalcParser.nullEqualityExpression()
.
The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNullEqualityExpression
in interface FormCalcVisitor<String>
visitNullEqualityExpression
in class FormCalcBaseVisitor<String>
ctx
- the parse tree
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.