Class ControlStatementTranslation
java.lang.Object
org.rumbledb.compiler.translation.scripting.ControlStatementTranslation
-
Method Summary
Modifier and TypeMethodDescriptionstatic <ExprCtx extends org.antlr.v4.runtime.ParserRuleContext,StmtCtx extends org.antlr.v4.runtime.ParserRuleContext>
ConditionalStatementifStatement(IfStatementContext<ExprCtx, StmtCtx> ctx, TranslationContext translationContext, Function<ExprCtx, Expression> visitExpr, Function<StmtCtx, Statement> visitStatement) static <CondExprCtx extends org.antlr.v4.runtime.ParserRuleContext,CaseExprCtx extends org.antlr.v4.runtime.ParserRuleContext, StmtCtx extends org.antlr.v4.runtime.ParserRuleContext>
SwitchStatementswitchStatement(SwitchStatementContext<CondExprCtx, CaseExprCtx, StmtCtx> ctx, TranslationContext translationContext, Function<CondExprCtx, Expression> visitExpr, Function<CaseExprCtx, Expression> visitExprSingle, Function<StmtCtx, Statement> visitStatement) static <BlockStmtCtx extends org.antlr.v4.runtime.ParserRuleContext,EqNameCtx extends org.antlr.v4.runtime.ParserRuleContext>
TryCatchStatementtryCatchStatement(TryCatchStatementContext<BlockStmtCtx, EqNameCtx> ctx, TranslationContext translationContext, Function<BlockStmtCtx, BlockStatement> visitBlockStatement, BiFunction<EqNameCtx, TranslationNameResolver.NameRole, Name> parseEqName) static <CondExprCtx extends org.antlr.v4.runtime.ParserRuleContext,VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext, SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext, StmtCtx extends org.antlr.v4.runtime.ParserRuleContext>
TypeSwitchStatementtypeSwitchStatement(TypeSwitchStatementContext<CondExprCtx, VarBindingCtx, SeqTypeCtx, StmtCtx> ctx, TranslationContext translationContext, Function<CondExprCtx, Expression> visitExpr, Function<StmtCtx, Statement> visitStatement, Function<VarBindingCtx, Name> parseVariableBinding, Function<SeqTypeCtx, SequenceType> processSequenceType)
-
Method Details
-
switchStatement
public static <CondExprCtx extends org.antlr.v4.runtime.ParserRuleContext,CaseExprCtx extends org.antlr.v4.runtime.ParserRuleContext, SwitchStatement switchStatementStmtCtx extends org.antlr.v4.runtime.ParserRuleContext> (SwitchStatementContext<CondExprCtx, CaseExprCtx, StmtCtx> ctx, TranslationContext translationContext, Function<CondExprCtx, Expression> visitExpr, Function<CaseExprCtx, Expression> visitExprSingle, Function<StmtCtx, Statement> visitStatement) -
tryCatchStatement
public static <BlockStmtCtx extends org.antlr.v4.runtime.ParserRuleContext,EqNameCtx extends org.antlr.v4.runtime.ParserRuleContext> TryCatchStatement tryCatchStatement(TryCatchStatementContext<BlockStmtCtx, EqNameCtx> ctx, TranslationContext translationContext, Function<BlockStmtCtx, BlockStatement> visitBlockStatement, BiFunction<EqNameCtx, TranslationNameResolver.NameRole, Name> parseEqName) -
typeSwitchStatement
public static <CondExprCtx extends org.antlr.v4.runtime.ParserRuleContext,VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext, TypeSwitchStatement typeSwitchStatementSeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext, StmtCtx extends org.antlr.v4.runtime.ParserRuleContext> (TypeSwitchStatementContext<CondExprCtx, VarBindingCtx, SeqTypeCtx, StmtCtx> ctx, TranslationContext translationContext, Function<CondExprCtx, Expression> visitExpr, Function<StmtCtx, Statement> visitStatement, Function<VarBindingCtx, Name> parseVariableBinding, Function<SeqTypeCtx, SequenceType> processSequenceType) -
ifStatement
public static <ExprCtx extends org.antlr.v4.runtime.ParserRuleContext,StmtCtx extends org.antlr.v4.runtime.ParserRuleContext> ConditionalStatement ifStatement(IfStatementContext<ExprCtx, StmtCtx> ctx, TranslationContext translationContext, Function<ExprCtx, Expression> visitExpr, Function<StmtCtx, Statement> visitStatement)
-