http://git-wip-us.apache.org/repos/asf/metron/blob/a5b13777/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/LongLiteralEvaluator.java ---------------------------------------------------------------------- diff --git a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/LongLiteralEvaluator.java b/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/LongLiteralEvaluator.java deleted file mode 100644 index 338adc4..0000000 --- a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/LongLiteralEvaluator.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.metron.common.stellar.evaluators; - -import org.apache.metron.common.dsl.ParseException; -import org.apache.metron.common.dsl.Token; -import org.apache.metron.common.stellar.FrameContext; -import org.apache.metron.common.stellar.generated.StellarParser; - -public class LongLiteralEvaluator implements NumberEvaluator<StellarParser.LongLiteralContext> { - @Override - public Token<Long> evaluate(StellarParser.LongLiteralContext context, FrameContext.Context contextVariety) { - if (context == null) { - throw new IllegalArgumentException("Cannot evaluate a context that is null."); - } - - String value = context.getText(); - if (value.endsWith("l") || value.endsWith("L")) { - value = value.substring(0, value.length() - 1); // Drop the 'L' or 'l'. Long.parseLong does not accept a string with either of these. - return new Token<>(Long.parseLong(value), Long.class, contextVariety); - } else { - // Technically this should never happen, but just being safe. - throw new ParseException("Invalid format for long. Failed trying to parse a long with the following value: " + value); - } - } -}
http://git-wip-us.apache.org/repos/asf/metron/blob/a5b13777/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/NumberEvaluator.java ---------------------------------------------------------------------- diff --git a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/NumberEvaluator.java b/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/NumberEvaluator.java deleted file mode 100644 index 2c18f9d..0000000 --- a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/NumberEvaluator.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.metron.common.stellar.evaluators; - -import org.apache.metron.common.dsl.Token; -import org.apache.metron.common.stellar.FrameContext; -import org.apache.metron.common.stellar.generated.StellarParser; - -public interface NumberEvaluator<T extends StellarParser.Arithmetic_operandsContext> { - Token<? extends Number> evaluate(T context, FrameContext.Context contextVariety); -} http://git-wip-us.apache.org/repos/asf/metron/blob/a5b13777/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/NumberLiteralEvaluator.java ---------------------------------------------------------------------- diff --git a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/NumberLiteralEvaluator.java b/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/NumberLiteralEvaluator.java deleted file mode 100644 index 0ec3859..0000000 --- a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/evaluators/NumberLiteralEvaluator.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.metron.common.stellar.evaluators; - -import org.apache.metron.common.dsl.ParseException; -import org.apache.metron.common.dsl.Token; -import org.apache.metron.common.stellar.FrameContext; -import org.apache.metron.common.stellar.generated.StellarParser; - -import java.util.HashMap; -import java.util.Map; - -public enum NumberLiteralEvaluator { - INSTANCE; - public enum Strategy { - INTEGER(StellarParser.IntLiteralContext.class, new IntLiteralEvaluator()) - , DOUBLE(StellarParser.DoubleLiteralContext.class, new DoubleLiteralEvaluator()) - , FLOAT(StellarParser.FloatLiteralContext.class, new FloatLiteralEvaluator()) - , LONG(StellarParser.LongLiteralContext.class, new LongLiteralEvaluator()); - Class<? extends StellarParser.Arithmetic_operandsContext> context; - NumberEvaluator evaluator; - private static Map<Class<? extends StellarParser.Arithmetic_operandsContext>, NumberEvaluator> strategyMap; - - static { - strategyMap = new HashMap<>(); - for (Strategy strat : Strategy.values()) { - strategyMap.put(strat.context, strat.evaluator); - } - } - - Strategy(Class<? extends StellarParser.Arithmetic_operandsContext> context - , NumberEvaluator<? extends StellarParser.Arithmetic_operandsContext> evaluator - ) { - this.context = context; - this.evaluator = evaluator; - } - } - - Token<? extends Number> evaluate(StellarParser.Arithmetic_operandsContext context - , Map<Class<? extends StellarParser.Arithmetic_operandsContext>, NumberEvaluator> instanceMap - , FrameContext.Context contextVariety - ) - { - NumberEvaluator evaluator = instanceMap.get(context.getClass()); - if(evaluator == null) { - throw new ParseException("Does not support evaluation for type " + context.getClass()); - } - return evaluator.evaluate(context, contextVariety); - } - - public Token<? extends Number> evaluate(StellarParser.Arithmetic_operandsContext context, FrameContext.Context contextVariety) { - return evaluate(context, Strategy.strategyMap, contextVariety); - } - -} http://git-wip-us.apache.org/repos/asf/metron/blob/a5b13777/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarBaseListener.java ---------------------------------------------------------------------- diff --git a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarBaseListener.java b/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarBaseListener.java deleted file mode 100644 index 3ca1daa..0000000 --- a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarBaseListener.java +++ /dev/null @@ -1,780 +0,0 @@ -// Generated from org/apache/metron/common/stellar/generated/Stellar.g4 by ANTLR 4.5 -package org.apache.metron.common.stellar.generated; - -//CHECKSTYLE:OFF -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -import org.antlr.v4.runtime.ParserRuleContext; -import org.antlr.v4.runtime.misc.NotNull; -import org.antlr.v4.runtime.tree.ErrorNode; -import org.antlr.v4.runtime.tree.TerminalNode; - -/** - * This class provides an empty implementation of {@link StellarListener}, - * which can be extended to create a listener which only needs to handle a subset - * of the available methods. - */ -public class StellarBaseListener implements StellarListener { - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterTransformation(StellarParser.TransformationContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitTransformation(StellarParser.TransformationContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterConditionalExpr(StellarParser.ConditionalExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitConditionalExpr(StellarParser.ConditionalExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterTransformationExpr(StellarParser.TransformationExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitTransformationExpr(StellarParser.TransformationExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterArithExpression(StellarParser.ArithExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitArithExpression(StellarParser.ArithExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterTransformationEntity(StellarParser.TransformationEntityContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitTransformationEntity(StellarParser.TransformationEntityContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterComparisonExpression(StellarParser.ComparisonExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitComparisonExpression(StellarParser.ComparisonExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLogicalExpression(StellarParser.LogicalExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLogicalExpression(StellarParser.LogicalExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterInExpression(StellarParser.InExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitInExpression(StellarParser.InExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterIf_expr(StellarParser.If_exprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitIf_expr(StellarParser.If_exprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterThen_expr(StellarParser.Then_exprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitThen_expr(StellarParser.Then_exprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterElse_expr(StellarParser.Else_exprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitElse_expr(StellarParser.Else_exprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterTernaryFuncWithoutIf(StellarParser.TernaryFuncWithoutIfContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitTernaryFuncWithoutIf(StellarParser.TernaryFuncWithoutIfContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterTernaryFuncWithIf(StellarParser.TernaryFuncWithIfContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitTernaryFuncWithIf(StellarParser.TernaryFuncWithIfContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLogicalExpressionAnd(StellarParser.LogicalExpressionAndContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLogicalExpressionAnd(StellarParser.LogicalExpressionAndContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLogicalExpressionOr(StellarParser.LogicalExpressionOrContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLogicalExpressionOr(StellarParser.LogicalExpressionOrContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterBoleanExpression(StellarParser.BoleanExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitBoleanExpression(StellarParser.BoleanExpressionContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterB_expr(StellarParser.B_exprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitB_expr(StellarParser.B_exprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterInExpressionStatement(StellarParser.InExpressionStatementContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitInExpressionStatement(StellarParser.InExpressionStatementContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterNInExpressionStatement(StellarParser.NInExpressionStatementContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitNInExpressionStatement(StellarParser.NInExpressionStatementContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterNotFunc(StellarParser.NotFuncContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitNotFunc(StellarParser.NotFuncContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterComparisonExpressionParens(StellarParser.ComparisonExpressionParensContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitComparisonExpressionParens(StellarParser.ComparisonExpressionParensContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterComparisonExpressionWithOperator(StellarParser.ComparisonExpressionWithOperatorContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitComparisonExpressionWithOperator(StellarParser.ComparisonExpressionWithOperatorContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterOperand(StellarParser.OperandContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitOperand(StellarParser.OperandContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterTransformation_entity(StellarParser.Transformation_entityContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitTransformation_entity(StellarParser.Transformation_entityContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterComparisonOp(StellarParser.ComparisonOpContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitComparisonOp(StellarParser.ComparisonOpContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterFunc_args(StellarParser.Func_argsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitFunc_args(StellarParser.Func_argsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterOp_list(StellarParser.Op_listContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitOp_list(StellarParser.Op_listContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterList_entity(StellarParser.List_entityContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitList_entity(StellarParser.List_entityContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterKv_list(StellarParser.Kv_listContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitKv_list(StellarParser.Kv_listContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterMap_entity(StellarParser.Map_entityContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitMap_entity(StellarParser.Map_entityContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterArithExpr_solo(StellarParser.ArithExpr_soloContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitArithExpr_solo(StellarParser.ArithExpr_soloContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterArithExpr_minus(StellarParser.ArithExpr_minusContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitArithExpr_minus(StellarParser.ArithExpr_minusContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterArithExpr_plus(StellarParser.ArithExpr_plusContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitArithExpr_plus(StellarParser.ArithExpr_plusContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterArithExpr_div(StellarParser.ArithExpr_divContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitArithExpr_div(StellarParser.ArithExpr_divContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterArithExpr_mul_solo(StellarParser.ArithExpr_mul_soloContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitArithExpr_mul_solo(StellarParser.ArithExpr_mul_soloContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterArithExpr_mul(StellarParser.ArithExpr_mulContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitArithExpr_mul(StellarParser.ArithExpr_mulContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterTransformationFunc(StellarParser.TransformationFuncContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitTransformationFunc(StellarParser.TransformationFuncContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterNumericFunctions(StellarParser.NumericFunctionsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitNumericFunctions(StellarParser.NumericFunctionsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterDoubleLiteral(StellarParser.DoubleLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitDoubleLiteral(StellarParser.DoubleLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterIntLiteral(StellarParser.IntLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitIntLiteral(StellarParser.IntLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLongLiteral(StellarParser.LongLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLongLiteral(StellarParser.LongLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterFloatLiteral(StellarParser.FloatLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitFloatLiteral(StellarParser.FloatLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterVariable(StellarParser.VariableContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitVariable(StellarParser.VariableContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterParenArith(StellarParser.ParenArithContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitParenArith(StellarParser.ParenArithContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterCondExpr(StellarParser.CondExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitCondExpr(StellarParser.CondExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLogicalConst(StellarParser.LogicalConstContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLogicalConst(StellarParser.LogicalConstContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLambdaWithArgsExpr(StellarParser.LambdaWithArgsExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLambdaWithArgsExpr(StellarParser.LambdaWithArgsExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLambdaWithoutArgsExpr(StellarParser.LambdaWithoutArgsExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLambdaWithoutArgsExpr(StellarParser.LambdaWithoutArgsExprContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterArithmeticOperands(StellarParser.ArithmeticOperandsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitArithmeticOperands(StellarParser.ArithmeticOperandsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterStringLiteral(StellarParser.StringLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitStringLiteral(StellarParser.StringLiteralContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterList(StellarParser.ListContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitList(StellarParser.ListContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterMapConst(StellarParser.MapConstContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitMapConst(StellarParser.MapConstContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterNullConst(StellarParser.NullConstContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitNullConst(StellarParser.NullConstContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterExistsFunc(StellarParser.ExistsFuncContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitExistsFunc(StellarParser.ExistsFuncContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterCondExpr_paren(StellarParser.CondExpr_parenContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitCondExpr_paren(StellarParser.CondExpr_parenContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLambda_without_args(StellarParser.Lambda_without_argsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLambda_without_args(StellarParser.Lambda_without_argsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLambda_with_args(StellarParser.Lambda_with_argsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLambda_with_args(StellarParser.Lambda_with_argsContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLambda_variables(StellarParser.Lambda_variablesContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLambda_variables(StellarParser.Lambda_variablesContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterSingle_lambda_variable(StellarParser.Single_lambda_variableContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitSingle_lambda_variable(StellarParser.Single_lambda_variableContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterLambda_variable(StellarParser.Lambda_variableContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitLambda_variable(StellarParser.Lambda_variableContext ctx) { } - - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void enterEveryRule(ParserRuleContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void exitEveryRule(ParserRuleContext ctx) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void visitTerminal(TerminalNode node) { } - /** - * {@inheritDoc} - * - * <p>The default implementation does nothing.</p> - */ - @Override public void visitErrorNode(ErrorNode node) { } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/metron/blob/a5b13777/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarLexer.java ---------------------------------------------------------------------- diff --git a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarLexer.java b/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarLexer.java deleted file mode 100644 index 49bbc45..0000000 --- a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarLexer.java +++ /dev/null @@ -1,306 +0,0 @@ -// Generated from org/apache/metron/common/stellar/generated/Stellar.g4 by ANTLR 4.5 -package org.apache.metron.common.stellar.generated; - -//CHECKSTYLE:OFF -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import org.antlr.v4.runtime.Lexer; -import org.antlr.v4.runtime.CharStream; -import org.antlr.v4.runtime.Token; -import org.antlr.v4.runtime.TokenStream; -import org.antlr.v4.runtime.*; -import org.antlr.v4.runtime.atn.*; -import org.antlr.v4.runtime.dfa.DFA; -import org.antlr.v4.runtime.misc.*; - -@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) -public class StellarLexer extends Lexer { - static { RuntimeMetaData.checkVersion("4.5", RuntimeMetaData.VERSION); } - - protected static final DFA[] _decisionToDFA; - protected static final PredictionContextCache _sharedContextCache = - new PredictionContextCache(); - public static final int - IN=1, LAMBDA_OP=2, DOUBLE_QUOTE=3, SINGLE_QUOTE=4, COMMA=5, PERIOD=6, - AND=7, OR=8, NOT=9, TRUE=10, FALSE=11, EQ=12, NEQ=13, LT=14, LTE=15, GT=16, - GTE=17, QUESTION=18, COLON=19, IF=20, THEN=21, ELSE=22, NULL=23, MINUS=24, - PLUS=25, DIV=26, MUL=27, LBRACE=28, RBRACE=29, LBRACKET=30, RBRACKET=31, - LPAREN=32, RPAREN=33, NIN=34, EXISTS=35, EXPONENT=36, INT_LITERAL=37, - DOUBLE_LITERAL=38, FLOAT_LITERAL=39, LONG_LITERAL=40, IDENTIFIER=41, STRING_LITERAL=42, - COMMENT=43, WS=44; - public static String[] modeNames = { - "DEFAULT_MODE" - }; - - public static final String[] ruleNames = { - "IN", "LAMBDA_OP", "DOUBLE_QUOTE", "SINGLE_QUOTE", "COMMA", "PERIOD", - "AND", "OR", "NOT", "TRUE", "FALSE", "EQ", "NEQ", "LT", "LTE", "GT", "GTE", - "QUESTION", "COLON", "IF", "THEN", "ELSE", "NULL", "MINUS", "PLUS", "DIV", - "MUL", "LBRACE", "RBRACE", "LBRACKET", "RBRACKET", "LPAREN", "RPAREN", - "NIN", "EXISTS", "EXPONENT", "INT_LITERAL", "DOUBLE_LITERAL", "FLOAT_LITERAL", - "LONG_LITERAL", "IDENTIFIER", "STRING_LITERAL", "COMMENT", "WS", "ZERO", - "FIRST_DIGIT", "DIGIT", "D", "E", "F", "L", "EOL", "IDENTIFIER_START", - "IDENTIFIER_MIDDLE", "IDENTIFIER_END" - }; - - private static final String[] _LITERAL_NAMES = { - null, null, "'->'", "'\"'", "'''", "','", "'.'", null, null, null, null, - null, "'=='", "'!='", "'<'", "'<='", "'>'", "'>='", "'?'", "':'", null, - null, null, null, "'-'", "'+'", "'/'", "'*'", "'{'", "'}'", "'['", "']'", - "'('", "')'" - }; - private static final String[] _SYMBOLIC_NAMES = { - null, "IN", "LAMBDA_OP", "DOUBLE_QUOTE", "SINGLE_QUOTE", "COMMA", "PERIOD", - "AND", "OR", "NOT", "TRUE", "FALSE", "EQ", "NEQ", "LT", "LTE", "GT", "GTE", - "QUESTION", "COLON", "IF", "THEN", "ELSE", "NULL", "MINUS", "PLUS", "DIV", - "MUL", "LBRACE", "RBRACE", "LBRACKET", "RBRACKET", "LPAREN", "RPAREN", - "NIN", "EXISTS", "EXPONENT", "INT_LITERAL", "DOUBLE_LITERAL", "FLOAT_LITERAL", - "LONG_LITERAL", "IDENTIFIER", "STRING_LITERAL", "COMMENT", "WS" - }; - public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); - - /** - * @deprecated Use {@link #VOCABULARY} instead. - */ - @Deprecated - public static final String[] tokenNames; - static { - tokenNames = new String[_SYMBOLIC_NAMES.length]; - for (int i = 0; i < tokenNames.length; i++) { - tokenNames[i] = VOCABULARY.getLiteralName(i); - if (tokenNames[i] == null) { - tokenNames[i] = VOCABULARY.getSymbolicName(i); - } - - if (tokenNames[i] == null) { - tokenNames[i] = "<INVALID>"; - } - } - } - - @Override - @Deprecated - public String[] getTokenNames() { - return tokenNames; - } - - @Override - - public Vocabulary getVocabulary() { - return VOCABULARY; - } - - - public StellarLexer(CharStream input) { - super(input); - _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache); - } - - @Override - public String getGrammarFileName() { return "Stellar.g4"; } - - @Override - public String[] getRuleNames() { return ruleNames; } - - @Override - public String getSerializedATN() { return _serializedATN; } - - @Override - public String[] getModeNames() { return modeNames; } - - @Override - public ATN getATN() { return _ATN; } - - public static final String _serializedATN = - "\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\2.\u01d0\b\1\4\2\t"+ - "\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13"+ - "\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+ - "\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+ - "\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+ - "\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+ - ",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64\t"+ - "\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\3\2\3\2\3\2\3\2\5\2v\n\2\3\3\3"+ - "\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\7\3\7\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b"+ - "\5\b\u008b\n\b\3\t\3\t\3\t\3\t\3\t\3\t\5\t\u0093\n\t\3\n\3\n\3\n\3\n\3"+ - "\n\3\n\5\n\u009b\n\n\3\13\3\13\3\13\3\13\3\13\3\13\3\13\3\13\5\13\u00a5"+ - "\n\13\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\5\f\u00b1\n\f\3\r\3\r\3"+ - "\r\3\16\3\16\3\16\3\17\3\17\3\20\3\20\3\20\3\21\3\21\3\22\3\22\3\22\3"+ - "\23\3\23\3\24\3\24\3\25\3\25\3\25\3\25\5\25\u00cb\n\25\3\26\3\26\3\26"+ - "\3\26\3\26\3\26\3\26\3\26\5\26\u00d5\n\26\3\27\3\27\3\27\3\27\3\27\3\27"+ - "\3\27\3\27\5\27\u00df\n\27\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\5\30"+ - "\u00e9\n\30\3\31\3\31\3\32\3\32\3\33\3\33\3\34\3\34\3\35\3\35\3\36\3\36"+ - "\3\37\3\37\3 \3 \3!\3!\3\"\3\"\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\5#"+ - "\u010b\n#\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\5$\u0119\n$\3%\3%\3%\5%"+ - "\u011e\n%\3%\6%\u0121\n%\r%\16%\u0122\3&\5&\u0126\n&\3&\3&\5&\u012a\n"+ - "&\3&\3&\7&\u012e\n&\f&\16&\u0131\13&\5&\u0133\n&\3\'\3\'\3\'\7\'\u0138"+ - "\n\'\f\'\16\'\u013b\13\'\3\'\5\'\u013e\n\'\3\'\5\'\u0141\n\'\3\'\3\'\6"+ - "\'\u0145\n\'\r\'\16\'\u0146\3\'\5\'\u014a\n\'\3\'\5\'\u014d\n\'\3\'\3"+ - "\'\3\'\5\'\u0152\n\'\3\'\3\'\5\'\u0156\n\'\3\'\3\'\5\'\u015a\n\'\3(\3"+ - "(\3(\7(\u015f\n(\f(\16(\u0162\13(\3(\5(\u0165\n(\3(\3(\3(\5(\u016a\n("+ - "\3(\3(\6(\u016e\n(\r(\16(\u016f\3(\5(\u0173\n(\3(\3(\3(\3(\5(\u0179\n"+ - "(\3(\3(\5(\u017d\n(\3)\3)\3)\3*\3*\3*\7*\u0185\n*\f*\16*\u0188\13*\3*"+ - "\3*\5*\u018c\n*\3+\3+\3+\3+\7+\u0192\n+\f+\16+\u0195\13+\3+\3+\3+\3+\3"+ - "+\3+\7+\u019d\n+\f+\16+\u01a0\13+\3+\3+\5+\u01a4\n+\3,\3,\3,\3,\6,\u01aa"+ - "\n,\r,\16,\u01ab\3,\3,\5,\u01b0\n,\3,\3,\3-\6-\u01b5\n-\r-\16-\u01b6\3"+ - "-\3-\3.\3.\3/\3/\3\60\3\60\3\61\3\61\3\62\3\62\3\63\3\63\3\64\3\64\3\65"+ - "\3\65\3\66\3\66\3\67\3\67\38\38\3\u01ab\29\3\3\5\4\7\5\t\6\13\7\r\b\17"+ - "\t\21\n\23\13\25\f\27\r\31\16\33\17\35\20\37\21!\22#\23%\24\'\25)\26+"+ - "\27-\30/\31\61\32\63\33\65\34\67\359\36;\37= ?!A\"C#E$G%I&K\'M(O)Q*S+"+ - "U,W-Y.[\2]\2_\2a\2c\2e\2g\2i\2k\2m\2o\2\3\2\16\4\2))^^\7\2))^^ppttvv\4"+ - "\2$$^^\7\2$$^^ppttvv\5\2\13\f\16\17\"\"\4\2FFff\4\2GGgg\4\2HHhh\4\2NN"+ - "nn\6\2&&C\\aac|\b\2\60\60\62<C\\^^aac|\b\2\60\60\62;C\\^^aac|\u01f6\2"+ - "\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2"+ - "\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2\2"+ - "\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2"+ - "\2\2%\3\2\2\2\2\'\3\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2\2"+ - "\2\61\3\2\2\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\29\3\2\2\2\2;\3\2"+ - "\2\2\2=\3\2\2\2\2?\3\2\2\2\2A\3\2\2\2\2C\3\2\2\2\2E\3\2\2\2\2G\3\2\2\2"+ - "\2I\3\2\2\2\2K\3\2\2\2\2M\3\2\2\2\2O\3\2\2\2\2Q\3\2\2\2\2S\3\2\2\2\2U"+ - "\3\2\2\2\2W\3\2\2\2\2Y\3\2\2\2\3u\3\2\2\2\5w\3\2\2\2\7z\3\2\2\2\t|\3\2"+ - "\2\2\13~\3\2\2\2\r\u0080\3\2\2\2\17\u008a\3\2\2\2\21\u0092\3\2\2\2\23"+ - "\u009a\3\2\2\2\25\u00a4\3\2\2\2\27\u00b0\3\2\2\2\31\u00b2\3\2\2\2\33\u00b5"+ - "\3\2\2\2\35\u00b8\3\2\2\2\37\u00ba\3\2\2\2!\u00bd\3\2\2\2#\u00bf\3\2\2"+ - "\2%\u00c2\3\2\2\2\'\u00c4\3\2\2\2)\u00ca\3\2\2\2+\u00d4\3\2\2\2-\u00de"+ - "\3\2\2\2/\u00e8\3\2\2\2\61\u00ea\3\2\2\2\63\u00ec\3\2\2\2\65\u00ee\3\2"+ - "\2\2\67\u00f0\3\2\2\29\u00f2\3\2\2\2;\u00f4\3\2\2\2=\u00f6\3\2\2\2?\u00f8"+ - "\3\2\2\2A\u00fa\3\2\2\2C\u00fc\3\2\2\2E\u010a\3\2\2\2G\u0118\3\2\2\2I"+ - "\u011a\3\2\2\2K\u0132\3\2\2\2M\u0159\3\2\2\2O\u017c\3\2\2\2Q\u017e\3\2"+ - "\2\2S\u018b\3\2\2\2U\u01a3\3\2\2\2W\u01a5\3\2\2\2Y\u01b4\3\2\2\2[\u01ba"+ - "\3\2\2\2]\u01bc\3\2\2\2_\u01be\3\2\2\2a\u01c0\3\2\2\2c\u01c2\3\2\2\2e"+ - "\u01c4\3\2\2\2g\u01c6\3\2\2\2i\u01c8\3\2\2\2k\u01ca\3\2\2\2m\u01cc\3\2"+ - "\2\2o\u01ce\3\2\2\2qr\7k\2\2rv\7p\2\2st\7K\2\2tv\7P\2\2uq\3\2\2\2us\3"+ - "\2\2\2v\4\3\2\2\2wx\7/\2\2xy\7@\2\2y\6\3\2\2\2z{\7$\2\2{\b\3\2\2\2|}\7"+ - ")\2\2}\n\3\2\2\2~\177\7.\2\2\177\f\3\2\2\2\u0080\u0081\7\60\2\2\u0081"+ - "\16\3\2\2\2\u0082\u0083\7c\2\2\u0083\u0084\7p\2\2\u0084\u008b\7f\2\2\u0085"+ - "\u0086\7(\2\2\u0086\u008b\7(\2\2\u0087\u0088\7C\2\2\u0088\u0089\7P\2\2"+ - "\u0089\u008b\7F\2\2\u008a\u0082\3\2\2\2\u008a\u0085\3\2\2\2\u008a\u0087"+ - "\3\2\2\2\u008b\20\3\2\2\2\u008c\u008d\7q\2\2\u008d\u0093\7t\2\2\u008e"+ - "\u008f\7~\2\2\u008f\u0093\7~\2\2\u0090\u0091\7Q\2\2\u0091\u0093\7T\2\2"+ - "\u0092\u008c\3\2\2\2\u0092\u008e\3\2\2\2\u0092\u0090\3\2\2\2\u0093\22"+ - "\3\2\2\2\u0094\u0095\7p\2\2\u0095\u0096\7q\2\2\u0096\u009b\7v\2\2\u0097"+ - "\u0098\7P\2\2\u0098\u0099\7Q\2\2\u0099\u009b\7V\2\2\u009a\u0094\3\2\2"+ - "\2\u009a\u0097\3\2\2\2\u009b\24\3\2\2\2\u009c\u009d\7v\2\2\u009d\u009e"+ - "\7t\2\2\u009e\u009f\7w\2\2\u009f\u00a5\7g\2\2\u00a0\u00a1\7V\2\2\u00a1"+ - "\u00a2\7T\2\2\u00a2\u00a3\7W\2\2\u00a3\u00a5\7G\2\2\u00a4\u009c\3\2\2"+ - "\2\u00a4\u00a0\3\2\2\2\u00a5\26\3\2\2\2\u00a6\u00a7\7h\2\2\u00a7\u00a8"+ - "\7c\2\2\u00a8\u00a9\7n\2\2\u00a9\u00aa\7u\2\2\u00aa\u00b1\7g\2\2\u00ab"+ - "\u00ac\7H\2\2\u00ac\u00ad\7C\2\2\u00ad\u00ae\7N\2\2\u00ae\u00af\7U\2\2"+ - "\u00af\u00b1\7G\2\2\u00b0\u00a6\3\2\2\2\u00b0\u00ab\3\2\2\2\u00b1\30\3"+ - "\2\2\2\u00b2\u00b3\7?\2\2\u00b3\u00b4\7?\2\2\u00b4\32\3\2\2\2\u00b5\u00b6"+ - "\7#\2\2\u00b6\u00b7\7?\2\2\u00b7\34\3\2\2\2\u00b8\u00b9\7>\2\2\u00b9\36"+ - "\3\2\2\2\u00ba\u00bb\7>\2\2\u00bb\u00bc\7?\2\2\u00bc \3\2\2\2\u00bd\u00be"+ - "\7@\2\2\u00be\"\3\2\2\2\u00bf\u00c0\7@\2\2\u00c0\u00c1\7?\2\2\u00c1$\3"+ - "\2\2\2\u00c2\u00c3\7A\2\2\u00c3&\3\2\2\2\u00c4\u00c5\7<\2\2\u00c5(\3\2"+ - "\2\2\u00c6\u00c7\7K\2\2\u00c7\u00cb\7H\2\2\u00c8\u00c9\7k\2\2\u00c9\u00cb"+ - "\7h\2\2\u00ca\u00c6\3\2\2\2\u00ca\u00c8\3\2\2\2\u00cb*\3\2\2\2\u00cc\u00cd"+ - "\7V\2\2\u00cd\u00ce\7J\2\2\u00ce\u00cf\7G\2\2\u00cf\u00d5\7P\2\2\u00d0"+ - "\u00d1\7v\2\2\u00d1\u00d2\7j\2\2\u00d2\u00d3\7g\2\2\u00d3\u00d5\7p\2\2"+ - "\u00d4\u00cc\3\2\2\2\u00d4\u00d0\3\2\2\2\u00d5,\3\2\2\2\u00d6\u00d7\7"+ - "G\2\2\u00d7\u00d8\7N\2\2\u00d8\u00d9\7U\2\2\u00d9\u00df\7G\2\2\u00da\u00db"+ - "\7g\2\2\u00db\u00dc\7n\2\2\u00dc\u00dd\7u\2\2\u00dd\u00df\7g\2\2\u00de"+ - "\u00d6\3\2\2\2\u00de\u00da\3\2\2\2\u00df.\3\2\2\2\u00e0\u00e1\7p\2\2\u00e1"+ - "\u00e2\7w\2\2\u00e2\u00e3\7n\2\2\u00e3\u00e9\7n\2\2\u00e4\u00e5\7P\2\2"+ - "\u00e5\u00e6\7W\2\2\u00e6\u00e7\7N\2\2\u00e7\u00e9\7N\2\2\u00e8\u00e0"+ - "\3\2\2\2\u00e8\u00e4\3\2\2\2\u00e9\60\3\2\2\2\u00ea\u00eb\7/\2\2\u00eb"+ - "\62\3\2\2\2\u00ec\u00ed\7-\2\2\u00ed\64\3\2\2\2\u00ee\u00ef\7\61\2\2\u00ef"+ - "\66\3\2\2\2\u00f0\u00f1\7,\2\2\u00f18\3\2\2\2\u00f2\u00f3\7}\2\2\u00f3"+ - ":\3\2\2\2\u00f4\u00f5\7\177\2\2\u00f5<\3\2\2\2\u00f6\u00f7\7]\2\2\u00f7"+ - ">\3\2\2\2\u00f8\u00f9\7_\2\2\u00f9@\3\2\2\2\u00fa\u00fb\7*\2\2\u00fbB"+ - "\3\2\2\2\u00fc\u00fd\7+\2\2\u00fdD\3\2\2\2\u00fe\u00ff\7p\2\2\u00ff\u0100"+ - "\7q\2\2\u0100\u0101\7v\2\2\u0101\u0102\7\"\2\2\u0102\u0103\7k\2\2\u0103"+ - "\u010b\7p\2\2\u0104\u0105\7P\2\2\u0105\u0106\7Q\2\2\u0106\u0107\7V\2\2"+ - "\u0107\u0108\7\"\2\2\u0108\u0109\7K\2\2\u0109\u010b\7P\2\2\u010a\u00fe"+ - "\3\2\2\2\u010a\u0104\3\2\2\2\u010bF\3\2\2\2\u010c\u010d\7g\2\2\u010d\u010e"+ - "\7z\2\2\u010e\u010f\7k\2\2\u010f\u0110\7u\2\2\u0110\u0111\7v\2\2\u0111"+ - "\u0119\7u\2\2\u0112\u0113\7G\2\2\u0113\u0114\7Z\2\2\u0114\u0115\7K\2\2"+ - "\u0115\u0116\7U\2\2\u0116\u0117\7V\2\2\u0117\u0119\7U\2\2\u0118\u010c"+ - "\3\2\2\2\u0118\u0112\3\2\2\2\u0119H\3\2\2\2\u011a\u011d\5c\62\2\u011b"+ - "\u011e\5\63\32\2\u011c\u011e\5\61\31\2\u011d\u011b\3\2\2\2\u011d\u011c"+ - "\3\2\2\2\u011d\u011e\3\2\2\2\u011e\u0120\3\2\2\2\u011f\u0121\5_\60\2\u0120"+ - "\u011f\3\2\2\2\u0121\u0122\3\2\2\2\u0122\u0120\3\2\2\2\u0122\u0123\3\2"+ - "\2\2\u0123J\3\2\2\2\u0124\u0126\5\61\31\2\u0125\u0124\3\2\2\2\u0125\u0126"+ - "\3\2\2\2\u0126\u0127\3\2\2\2\u0127\u0133\5[.\2\u0128\u012a\5\61\31\2\u0129"+ - "\u0128\3\2\2\2\u0129\u012a\3\2\2\2\u012a\u012b\3\2\2\2\u012b\u012f\5]"+ - "/\2\u012c\u012e\5_\60\2\u012d\u012c\3\2\2\2\u012e\u0131\3\2\2\2\u012f"+ - "\u012d\3\2\2\2\u012f\u0130\3\2\2\2\u0130\u0133\3\2\2\2\u0131\u012f\3\2"+ - "\2\2\u0132\u0125\3\2\2\2\u0132\u0129\3\2\2\2\u0133L\3\2\2\2\u0134\u0135"+ - "\5K&\2\u0135\u0139\5\r\7\2\u0136\u0138\5_\60\2\u0137\u0136\3\2\2\2\u0138"+ - "\u013b\3\2\2\2\u0139\u0137\3\2\2\2\u0139\u013a\3\2\2\2\u013a\u013d\3\2"+ - "\2\2\u013b\u0139\3\2\2\2\u013c\u013e\5I%\2\u013d\u013c\3\2\2\2\u013d\u013e"+ - "\3\2\2\2\u013e\u0140\3\2\2\2\u013f\u0141\5a\61\2\u0140\u013f\3\2\2\2\u0140"+ - "\u0141\3\2\2\2\u0141\u015a\3\2\2\2\u0142\u0144\5\r\7\2\u0143\u0145\5_"+ - "\60\2\u0144\u0143\3\2\2\2\u0145\u0146\3\2\2\2\u0146\u0144\3\2\2\2\u0146"+ - "\u0147\3\2\2\2\u0147\u0149\3\2\2\2\u0148\u014a\5I%\2\u0149\u0148\3\2\2"+ - "\2\u0149\u014a\3\2\2\2\u014a\u014c\3\2\2\2\u014b\u014d\5a\61\2\u014c\u014b"+ - "\3\2\2\2\u014c\u014d\3\2\2\2\u014d\u015a\3\2\2\2\u014e\u014f\5K&\2\u014f"+ - "\u0151\5I%\2\u0150\u0152\5a\61\2\u0151\u0150\3\2\2\2\u0151\u0152\3\2\2"+ - "\2\u0152\u015a\3\2\2\2\u0153\u0155\5K&\2\u0154\u0156\5I%\2\u0155\u0154"+ - "\3\2\2\2\u0155\u0156\3\2\2\2\u0156\u0157\3\2\2\2\u0157\u0158\5a\61\2\u0158"+ - "\u015a\3\2\2\2\u0159\u0134\3\2\2\2\u0159\u0142\3\2\2\2\u0159\u014e\3\2"+ - "\2\2\u0159\u0153\3\2\2\2\u015aN\3\2\2\2\u015b\u015c\5K&\2\u015c\u0160"+ - "\5\r\7\2\u015d\u015f\5_\60\2\u015e\u015d\3\2\2\2\u015f\u0162\3\2\2\2\u0160"+ - "\u015e\3\2\2\2\u0160\u0161\3\2\2\2\u0161\u0164\3\2\2\2\u0162\u0160\3\2"+ - "\2\2\u0163\u0165\5I%\2\u0164\u0163\3\2\2\2\u0164\u0165\3\2\2\2\u0165\u0166"+ - "\3\2\2\2\u0166\u0167\5e\63\2\u0167\u017d\3\2\2\2\u0168\u016a\5\61\31\2"+ - "\u0169\u0168\3\2\2\2\u0169\u016a\3\2\2\2\u016a\u016b\3\2\2\2\u016b\u016d"+ - "\5\r\7\2\u016c\u016e\5_\60\2\u016d\u016c\3\2\2\2\u016e\u016f\3\2\2\2\u016f"+ - "\u016d\3\2\2\2\u016f\u0170\3\2\2\2\u0170\u0172\3\2\2\2\u0171\u0173\5I"+ - "%\2\u0172\u0171\3\2\2\2\u0172\u0173\3\2\2\2\u0173\u0174\3\2\2\2\u0174"+ - "\u0175\5e\63\2\u0175\u017d\3\2\2\2\u0176\u0178\5K&\2\u0177\u0179\5I%\2"+ - "\u0178\u0177\3\2\2\2\u0178\u0179\3\2\2\2\u0179\u017a\3\2\2\2\u017a\u017b"+ - "\5e\63\2\u017b\u017d\3\2\2\2\u017c\u015b\3\2\2\2\u017c\u0169\3\2\2\2\u017c"+ - "\u0176\3\2\2\2\u017dP\3\2\2\2\u017e\u017f\5K&\2\u017f\u0180\5g\64\2\u0180"+ - "R\3\2\2\2\u0181\u018c\5k\66\2\u0182\u0186\5k\66\2\u0183\u0185\5m\67\2"+ - "\u0184\u0183\3\2\2\2\u0185\u0188\3\2\2\2\u0186\u0184\3\2\2\2\u0186\u0187"+ - "\3\2\2\2\u0187\u0189\3\2\2\2\u0188\u0186\3\2\2\2\u0189\u018a\5o8\2\u018a"+ - "\u018c\3\2\2\2\u018b\u0181\3\2\2\2\u018b\u0182\3\2\2\2\u018cT\3\2\2\2"+ - "\u018d\u0193\5\t\5\2\u018e\u0192\n\2\2\2\u018f\u0190\7^\2\2\u0190\u0192"+ - "\t\3\2\2\u0191\u018e\3\2\2\2\u0191\u018f\3\2\2\2\u0192\u0195\3\2\2\2\u0193"+ - "\u0191\3\2\2\2\u0193\u0194\3\2\2\2\u0194\u0196\3\2\2\2\u0195\u0193\3\2"+ - "\2\2\u0196\u0197\5\t\5\2\u0197\u01a4\3\2\2\2\u0198\u019e\5\7\4\2\u0199"+ - "\u019d\n\4\2\2\u019a\u019b\7^\2\2\u019b\u019d\t\5\2\2\u019c\u0199\3\2"+ - "\2\2\u019c\u019a\3\2\2\2\u019d\u01a0\3\2\2\2\u019e\u019c\3\2\2\2\u019e"+ - "\u019f\3\2\2\2\u019f\u01a1\3\2\2\2\u01a0\u019e\3\2\2\2\u01a1\u01a2\5\7"+ - "\4\2\u01a2\u01a4\3\2\2\2\u01a3\u018d\3\2\2\2\u01a3\u0198\3\2\2\2\u01a4"+ - "V\3\2\2\2\u01a5\u01a6\7\61\2\2\u01a6\u01a7\7\61\2\2\u01a7\u01a9\3\2\2"+ - "\2\u01a8\u01aa\13\2\2\2\u01a9\u01a8\3\2\2\2\u01aa\u01ab\3\2\2\2\u01ab"+ - "\u01ac\3\2\2\2\u01ab\u01a9\3\2\2\2\u01ac\u01af\3\2\2\2\u01ad\u01b0\5i"+ - "\65\2\u01ae\u01b0\7\2\2\3\u01af\u01ad\3\2\2\2\u01af\u01ae\3\2\2\2\u01b0"+ - "\u01b1\3\2\2\2\u01b1\u01b2\b,\2\2\u01b2X\3\2\2\2\u01b3\u01b5\t\6\2\2\u01b4"+ - "\u01b3\3\2\2\2\u01b5\u01b6\3\2\2\2\u01b6\u01b4\3\2\2\2\u01b6\u01b7\3\2"+ - "\2\2\u01b7\u01b8\3\2\2\2\u01b8\u01b9\b-\2\2\u01b9Z\3\2\2\2\u01ba\u01bb"+ - "\7\62\2\2\u01bb\\\3\2\2\2\u01bc\u01bd\4\63;\2\u01bd^\3\2\2\2\u01be\u01bf"+ - "\4\62;\2\u01bf`\3\2\2\2\u01c0\u01c1\t\7\2\2\u01c1b\3\2\2\2\u01c2\u01c3"+ - "\t\b\2\2\u01c3d\3\2\2\2\u01c4\u01c5\t\t\2\2\u01c5f\3\2\2\2\u01c6\u01c7"+ - "\t\n\2\2\u01c7h\3\2\2\2\u01c8\u01c9\7\f\2\2\u01c9j\3\2\2\2\u01ca\u01cb"+ - "\t\13\2\2\u01cbl\3\2\2\2\u01cc\u01cd\t\f\2\2\u01cdn\3\2\2\2\u01ce\u01cf"+ - "\t\r\2\2\u01cfp\3\2\2\2/\2u\u008a\u0092\u009a\u00a4\u00b0\u00ca\u00d4"+ - "\u00de\u00e8\u010a\u0118\u011d\u0122\u0125\u0129\u012f\u0132\u0139\u013d"+ - "\u0140\u0146\u0149\u014c\u0151\u0155\u0159\u0160\u0164\u0169\u016f\u0172"+ - "\u0178\u017c\u0186\u018b\u0191\u0193\u019c\u019e\u01a3\u01ab\u01af\u01b6"+ - "\3\b\2\2"; - public static final ATN _ATN = - new ATNDeserializer().deserialize(_serializedATN.toCharArray()); - static { - _decisionToDFA = new DFA[_ATN.getNumberOfDecisions()]; - for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) { - _decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/metron/blob/a5b13777/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarListener.java ---------------------------------------------------------------------- diff --git a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarListener.java b/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarListener.java deleted file mode 100644 index 6c00691..0000000 --- a/metron-platform/metron-common/src/main/java/org/apache/metron/common/stellar/generated/StellarListener.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated from org/apache/metron/common/stellar/generated/Stellar.g4 by ANTLR 4.5 -package org.apache.metron.common.stellar.generated; - -//CHECKSTYLE:OFF -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import org.antlr.v4.runtime.misc.NotNull; -import org.antlr.v4.runtime.tree.ParseTreeListener; - -/** - * This interface defines a complete listener for a parse tree produced by - * {@link StellarParser}. - */ -public interface StellarListener extends ParseTreeListener { - /** - * Enter a parse tree produced by {@link StellarParser#transformation}. - * @param ctx the parse tree - */ - void enterTransformation(StellarParser.TransformationContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#transformation}. - * @param ctx the parse tree - */ - void exitTransformation(StellarParser.TransformationContext ctx); - /** - * Enter a parse tree produced by the {@code ConditionalExpr} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void enterConditionalExpr(StellarParser.ConditionalExprContext ctx); - /** - * Exit a parse tree produced by the {@code ConditionalExpr} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void exitConditionalExpr(StellarParser.ConditionalExprContext ctx); - /** - * Enter a parse tree produced by the {@code TransformationExpr} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void enterTransformationExpr(StellarParser.TransformationExprContext ctx); - /** - * Exit a parse tree produced by the {@code TransformationExpr} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void exitTransformationExpr(StellarParser.TransformationExprContext ctx); - /** - * Enter a parse tree produced by the {@code ArithExpression} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void enterArithExpression(StellarParser.ArithExpressionContext ctx); - /** - * Exit a parse tree produced by the {@code ArithExpression} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void exitArithExpression(StellarParser.ArithExpressionContext ctx); - /** - * Enter a parse tree produced by the {@code TransformationEntity} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void enterTransformationEntity(StellarParser.TransformationEntityContext ctx); - /** - * Exit a parse tree produced by the {@code TransformationEntity} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void exitTransformationEntity(StellarParser.TransformationEntityContext ctx); - /** - * Enter a parse tree produced by the {@code ComparisonExpression} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void enterComparisonExpression(StellarParser.ComparisonExpressionContext ctx); - /** - * Exit a parse tree produced by the {@code ComparisonExpression} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void exitComparisonExpression(StellarParser.ComparisonExpressionContext ctx); - /** - * Enter a parse tree produced by the {@code LogicalExpression} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void enterLogicalExpression(StellarParser.LogicalExpressionContext ctx); - /** - * Exit a parse tree produced by the {@code LogicalExpression} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void exitLogicalExpression(StellarParser.LogicalExpressionContext ctx); - /** - * Enter a parse tree produced by the {@code InExpression} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void enterInExpression(StellarParser.InExpressionContext ctx); - /** - * Exit a parse tree produced by the {@code InExpression} - * labeled alternative in {@link StellarParser#transformation_expr}. - * @param ctx the parse tree - */ - void exitInExpression(StellarParser.InExpressionContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#if_expr}. - * @param ctx the parse tree - */ - void enterIf_expr(StellarParser.If_exprContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#if_expr}. - * @param ctx the parse tree - */ - void exitIf_expr(StellarParser.If_exprContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#then_expr}. - * @param ctx the parse tree - */ - void enterThen_expr(StellarParser.Then_exprContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#then_expr}. - * @param ctx the parse tree - */ - void exitThen_expr(StellarParser.Then_exprContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#else_expr}. - * @param ctx the parse tree - */ - void enterElse_expr(StellarParser.Else_exprContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#else_expr}. - * @param ctx the parse tree - */ - void exitElse_expr(StellarParser.Else_exprContext ctx); - /** - * Enter a parse tree produced by the {@code TernaryFuncWithoutIf} - * labeled alternative in {@link StellarParser#conditional_expr}. - * @param ctx the parse tree - */ - void enterTernaryFuncWithoutIf(StellarParser.TernaryFuncWithoutIfContext ctx); - /** - * Exit a parse tree produced by the {@code TernaryFuncWithoutIf} - * labeled alternative in {@link StellarParser#conditional_expr}. - * @param ctx the parse tree - */ - void exitTernaryFuncWithoutIf(StellarParser.TernaryFuncWithoutIfContext ctx); - /** - * Enter a parse tree produced by the {@code TernaryFuncWithIf} - * labeled alternative in {@link StellarParser#conditional_expr}. - * @param ctx the parse tree - */ - void enterTernaryFuncWithIf(StellarParser.TernaryFuncWithIfContext ctx); - /** - * Exit a parse tree produced by the {@code TernaryFuncWithIf} - * labeled alternative in {@link StellarParser#conditional_expr}. - * @param ctx the parse tree - */ - void exitTernaryFuncWithIf(StellarParser.TernaryFuncWithIfContext ctx); - /** - * Enter a parse tree produced by the {@code LogicalExpressionAnd} - * labeled alternative in {@link StellarParser#logical_expr}. - * @param ctx the parse tree - */ - void enterLogicalExpressionAnd(StellarParser.LogicalExpressionAndContext ctx); - /** - * Exit a parse tree produced by the {@code LogicalExpressionAnd} - * labeled alternative in {@link StellarParser#logical_expr}. - * @param ctx the parse tree - */ - void exitLogicalExpressionAnd(StellarParser.LogicalExpressionAndContext ctx); - /** - * Enter a parse tree produced by the {@code LogicalExpressionOr} - * labeled alternative in {@link StellarParser#logical_expr}. - * @param ctx the parse tree - */ - void enterLogicalExpressionOr(StellarParser.LogicalExpressionOrContext ctx); - /** - * Exit a parse tree produced by the {@code LogicalExpressionOr} - * labeled alternative in {@link StellarParser#logical_expr}. - * @param ctx the parse tree - */ - void exitLogicalExpressionOr(StellarParser.LogicalExpressionOrContext ctx); - /** - * Enter a parse tree produced by the {@code BoleanExpression} - * labeled alternative in {@link StellarParser#logical_expr}. - * @param ctx the parse tree - */ - void enterBoleanExpression(StellarParser.BoleanExpressionContext ctx); - /** - * Exit a parse tree produced by the {@code BoleanExpression} - * labeled alternative in {@link StellarParser#logical_expr}. - * @param ctx the parse tree - */ - void exitBoleanExpression(StellarParser.BoleanExpressionContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#b_expr}. - * @param ctx the parse tree - */ - void enterB_expr(StellarParser.B_exprContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#b_expr}. - * @param ctx the parse tree - */ - void exitB_expr(StellarParser.B_exprContext ctx); - /** - * Enter a parse tree produced by the {@code InExpressionStatement} - * labeled alternative in {@link StellarParser#in_expr}. - * @param ctx the parse tree - */ - void enterInExpressionStatement(StellarParser.InExpressionStatementContext ctx); - /** - * Exit a parse tree produced by the {@code InExpressionStatement} - * labeled alternative in {@link StellarParser#in_expr}. - * @param ctx the parse tree - */ - void exitInExpressionStatement(StellarParser.InExpressionStatementContext ctx); - /** - * Enter a parse tree produced by the {@code NInExpressionStatement} - * labeled alternative in {@link StellarParser#in_expr}. - * @param ctx the parse tree - */ - void enterNInExpressionStatement(StellarParser.NInExpressionStatementContext ctx); - /** - * Exit a parse tree produced by the {@code NInExpressionStatement} - * labeled alternative in {@link StellarParser#in_expr}. - * @param ctx the parse tree - */ - void exitNInExpressionStatement(StellarParser.NInExpressionStatementContext ctx); - /** - * Enter a parse tree produced by the {@code NotFunc} - * labeled alternative in {@link StellarParser#comparison_expr}. - * @param ctx the parse tree - */ - void enterNotFunc(StellarParser.NotFuncContext ctx); - /** - * Exit a parse tree produced by the {@code NotFunc} - * labeled alternative in {@link StellarParser#comparison_expr}. - * @param ctx the parse tree - */ - void exitNotFunc(StellarParser.NotFuncContext ctx); - /** - * Enter a parse tree produced by the {@code ComparisonExpressionParens} - * labeled alternative in {@link StellarParser#comparison_expr}. - * @param ctx the parse tree - */ - void enterComparisonExpressionParens(StellarParser.ComparisonExpressionParensContext ctx); - /** - * Exit a parse tree produced by the {@code ComparisonExpressionParens} - * labeled alternative in {@link StellarParser#comparison_expr}. - * @param ctx the parse tree - */ - void exitComparisonExpressionParens(StellarParser.ComparisonExpressionParensContext ctx); - /** - * Enter a parse tree produced by the {@code ComparisonExpressionWithOperator} - * labeled alternative in {@link StellarParser#comparison_expr}. - * @param ctx the parse tree - */ - void enterComparisonExpressionWithOperator(StellarParser.ComparisonExpressionWithOperatorContext ctx); - /** - * Exit a parse tree produced by the {@code ComparisonExpressionWithOperator} - * labeled alternative in {@link StellarParser#comparison_expr}. - * @param ctx the parse tree - */ - void exitComparisonExpressionWithOperator(StellarParser.ComparisonExpressionWithOperatorContext ctx); - /** - * Enter a parse tree produced by the {@code operand} - * labeled alternative in {@link StellarParser#comparison_expr}. - * @param ctx the parse tree - */ - void enterOperand(StellarParser.OperandContext ctx); - /** - * Exit a parse tree produced by the {@code operand} - * labeled alternative in {@link StellarParser#comparison_expr}. - * @param ctx the parse tree - */ - void exitOperand(StellarParser.OperandContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#transformation_entity}. - * @param ctx the parse tree - */ - void enterTransformation_entity(StellarParser.Transformation_entityContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#transformation_entity}. - * @param ctx the parse tree - */ - void exitTransformation_entity(StellarParser.Transformation_entityContext ctx); - /** - * Enter a parse tree produced by the {@code ComparisonOp} - * labeled alternative in {@link StellarParser#comp_operator}. - * @param ctx the parse tree - */ - void enterComparisonOp(StellarParser.ComparisonOpContext ctx); - /** - * Exit a parse tree produced by the {@code ComparisonOp} - * labeled alternative in {@link StellarParser#comp_operator}. - * @param ctx the parse tree - */ - void exitComparisonOp(StellarParser.ComparisonOpContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#func_args}. - * @param ctx the parse tree - */ - void enterFunc_args(StellarParser.Func_argsContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#func_args}. - * @param ctx the parse tree - */ - void exitFunc_args(StellarParser.Func_argsContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#op_list}. - * @param ctx the parse tree - */ - void enterOp_list(StellarParser.Op_listContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#op_list}. - * @param ctx the parse tree - */ - void exitOp_list(StellarParser.Op_listContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#list_entity}. - * @param ctx the parse tree - */ - void enterList_entity(StellarParser.List_entityContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#list_entity}. - * @param ctx the parse tree - */ - void exitList_entity(StellarParser.List_entityContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#kv_list}. - * @param ctx the parse tree - */ - void enterKv_list(StellarParser.Kv_listContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#kv_list}. - * @param ctx the parse tree - */ - void exitKv_list(StellarParser.Kv_listContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#map_entity}. - * @param ctx the parse tree - */ - void enterMap_entity(StellarParser.Map_entityContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#map_entity}. - * @param ctx the parse tree - */ - void exitMap_entity(StellarParser.Map_entityContext ctx); - /** - * Enter a parse tree produced by the {@code ArithExpr_solo} - * labeled alternative in {@link StellarParser#arithmetic_expr}. - * @param ctx the parse tree - */ - void enterArithExpr_solo(StellarParser.ArithExpr_soloContext ctx); - /** - * Exit a parse tree produced by the {@code ArithExpr_solo} - * labeled alternative in {@link StellarParser#arithmetic_expr}. - * @param ctx the parse tree - */ - void exitArithExpr_solo(StellarParser.ArithExpr_soloContext ctx); - /** - * Enter a parse tree produced by the {@code ArithExpr_minus} - * labeled alternative in {@link StellarParser#arithmetic_expr}. - * @param ctx the parse tree - */ - void enterArithExpr_minus(StellarParser.ArithExpr_minusContext ctx); - /** - * Exit a parse tree produced by the {@code ArithExpr_minus} - * labeled alternative in {@link StellarParser#arithmetic_expr}. - * @param ctx the parse tree - */ - void exitArithExpr_minus(StellarParser.ArithExpr_minusContext ctx); - /** - * Enter a parse tree produced by the {@code ArithExpr_plus} - * labeled alternative in {@link StellarParser#arithmetic_expr}. - * @param ctx the parse tree - */ - void enterArithExpr_plus(StellarParser.ArithExpr_plusContext ctx); - /** - * Exit a parse tree produced by the {@code ArithExpr_plus} - * labeled alternative in {@link StellarParser#arithmetic_expr}. - * @param ctx the parse tree - */ - void exitArithExpr_plus(StellarParser.ArithExpr_plusContext ctx); - /** - * Enter a parse tree produced by the {@code ArithExpr_div} - * labeled alternative in {@link StellarParser#arithmetic_expr_mul}. - * @param ctx the parse tree - */ - void enterArithExpr_div(StellarParser.ArithExpr_divContext ctx); - /** - * Exit a parse tree produced by the {@code ArithExpr_div} - * labeled alternative in {@link StellarParser#arithmetic_expr_mul}. - * @param ctx the parse tree - */ - void exitArithExpr_div(StellarParser.ArithExpr_divContext ctx); - /** - * Enter a parse tree produced by the {@code ArithExpr_mul_solo} - * labeled alternative in {@link StellarParser#arithmetic_expr_mul}. - * @param ctx the parse tree - */ - void enterArithExpr_mul_solo(StellarParser.ArithExpr_mul_soloContext ctx); - /** - * Exit a parse tree produced by the {@code ArithExpr_mul_solo} - * labeled alternative in {@link StellarParser#arithmetic_expr_mul}. - * @param ctx the parse tree - */ - void exitArithExpr_mul_solo(StellarParser.ArithExpr_mul_soloContext ctx); - /** - * Enter a parse tree produced by the {@code ArithExpr_mul} - * labeled alternative in {@link StellarParser#arithmetic_expr_mul}. - * @param ctx the parse tree - */ - void enterArithExpr_mul(StellarParser.ArithExpr_mulContext ctx); - /** - * Exit a parse tree produced by the {@code ArithExpr_mul} - * labeled alternative in {@link StellarParser#arithmetic_expr_mul}. - * @param ctx the parse tree - */ - void exitArithExpr_mul(StellarParser.ArithExpr_mulContext ctx); - /** - * Enter a parse tree produced by the {@code TransformationFunc} - * labeled alternative in {@link StellarParser#functions}. - * @param ctx the parse tree - */ - void enterTransformationFunc(StellarParser.TransformationFuncContext ctx); - /** - * Exit a parse tree produced by the {@code TransformationFunc} - * labeled alternative in {@link StellarParser#functions}. - * @param ctx the parse tree - */ - void exitTransformationFunc(StellarParser.TransformationFuncContext ctx); - /** - * Enter a parse tree produced by the {@code NumericFunctions} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void enterNumericFunctions(StellarParser.NumericFunctionsContext ctx); - /** - * Exit a parse tree produced by the {@code NumericFunctions} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void exitNumericFunctions(StellarParser.NumericFunctionsContext ctx); - /** - * Enter a parse tree produced by the {@code DoubleLiteral} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void enterDoubleLiteral(StellarParser.DoubleLiteralContext ctx); - /** - * Exit a parse tree produced by the {@code DoubleLiteral} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void exitDoubleLiteral(StellarParser.DoubleLiteralContext ctx); - /** - * Enter a parse tree produced by the {@code IntLiteral} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void enterIntLiteral(StellarParser.IntLiteralContext ctx); - /** - * Exit a parse tree produced by the {@code IntLiteral} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void exitIntLiteral(StellarParser.IntLiteralContext ctx); - /** - * Enter a parse tree produced by the {@code LongLiteral} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void enterLongLiteral(StellarParser.LongLiteralContext ctx); - /** - * Exit a parse tree produced by the {@code LongLiteral} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void exitLongLiteral(StellarParser.LongLiteralContext ctx); - /** - * Enter a parse tree produced by the {@code FloatLiteral} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void enterFloatLiteral(StellarParser.FloatLiteralContext ctx); - /** - * Exit a parse tree produced by the {@code FloatLiteral} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void exitFloatLiteral(StellarParser.FloatLiteralContext ctx); - /** - * Enter a parse tree produced by the {@code Variable} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void enterVariable(StellarParser.VariableContext ctx); - /** - * Exit a parse tree produced by the {@code Variable} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void exitVariable(StellarParser.VariableContext ctx); - /** - * Enter a parse tree produced by the {@code ParenArith} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void enterParenArith(StellarParser.ParenArithContext ctx); - /** - * Exit a parse tree produced by the {@code ParenArith} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void exitParenArith(StellarParser.ParenArithContext ctx); - /** - * Enter a parse tree produced by the {@code condExpr} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void enterCondExpr(StellarParser.CondExprContext ctx); - /** - * Exit a parse tree produced by the {@code condExpr} - * labeled alternative in {@link StellarParser#arithmetic_operands}. - * @param ctx the parse tree - */ - void exitCondExpr(StellarParser.CondExprContext ctx); - /** - * Enter a parse tree produced by the {@code LogicalConst} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterLogicalConst(StellarParser.LogicalConstContext ctx); - /** - * Exit a parse tree produced by the {@code LogicalConst} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitLogicalConst(StellarParser.LogicalConstContext ctx); - /** - * Enter a parse tree produced by the {@code LambdaWithArgsExpr} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterLambdaWithArgsExpr(StellarParser.LambdaWithArgsExprContext ctx); - /** - * Exit a parse tree produced by the {@code LambdaWithArgsExpr} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitLambdaWithArgsExpr(StellarParser.LambdaWithArgsExprContext ctx); - /** - * Enter a parse tree produced by the {@code LambdaWithoutArgsExpr} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterLambdaWithoutArgsExpr(StellarParser.LambdaWithoutArgsExprContext ctx); - /** - * Exit a parse tree produced by the {@code LambdaWithoutArgsExpr} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitLambdaWithoutArgsExpr(StellarParser.LambdaWithoutArgsExprContext ctx); - /** - * Enter a parse tree produced by the {@code ArithmeticOperands} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterArithmeticOperands(StellarParser.ArithmeticOperandsContext ctx); - /** - * Exit a parse tree produced by the {@code ArithmeticOperands} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitArithmeticOperands(StellarParser.ArithmeticOperandsContext ctx); - /** - * Enter a parse tree produced by the {@code StringLiteral} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterStringLiteral(StellarParser.StringLiteralContext ctx); - /** - * Exit a parse tree produced by the {@code StringLiteral} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitStringLiteral(StellarParser.StringLiteralContext ctx); - /** - * Enter a parse tree produced by the {@code List} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterList(StellarParser.ListContext ctx); - /** - * Exit a parse tree produced by the {@code List} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitList(StellarParser.ListContext ctx); - /** - * Enter a parse tree produced by the {@code MapConst} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterMapConst(StellarParser.MapConstContext ctx); - /** - * Exit a parse tree produced by the {@code MapConst} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitMapConst(StellarParser.MapConstContext ctx); - /** - * Enter a parse tree produced by the {@code NullConst} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterNullConst(StellarParser.NullConstContext ctx); - /** - * Exit a parse tree produced by the {@code NullConst} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitNullConst(StellarParser.NullConstContext ctx); - /** - * Enter a parse tree produced by the {@code ExistsFunc} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterExistsFunc(StellarParser.ExistsFuncContext ctx); - /** - * Exit a parse tree produced by the {@code ExistsFunc} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitExistsFunc(StellarParser.ExistsFuncContext ctx); - /** - * Enter a parse tree produced by the {@code condExpr_paren} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void enterCondExpr_paren(StellarParser.CondExpr_parenContext ctx); - /** - * Exit a parse tree produced by the {@code condExpr_paren} - * labeled alternative in {@link StellarParser#identifier_operand}. - * @param ctx the parse tree - */ - void exitCondExpr_paren(StellarParser.CondExpr_parenContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#lambda_without_args}. - * @param ctx the parse tree - */ - void enterLambda_without_args(StellarParser.Lambda_without_argsContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#lambda_without_args}. - * @param ctx the parse tree - */ - void exitLambda_without_args(StellarParser.Lambda_without_argsContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#lambda_with_args}. - * @param ctx the parse tree - */ - void enterLambda_with_args(StellarParser.Lambda_with_argsContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#lambda_with_args}. - * @param ctx the parse tree - */ - void exitLambda_with_args(StellarParser.Lambda_with_argsContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#lambda_variables}. - * @param ctx the parse tree - */ - void enterLambda_variables(StellarParser.Lambda_variablesContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#lambda_variables}. - * @param ctx the parse tree - */ - void exitLambda_variables(StellarParser.Lambda_variablesContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#single_lambda_variable}. - * @param ctx the parse tree - */ - void enterSingle_lambda_variable(StellarParser.Single_lambda_variableContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#single_lambda_variable}. - * @param ctx the parse tree - */ - void exitSingle_lambda_variable(StellarParser.Single_lambda_variableContext ctx); - /** - * Enter a parse tree produced by {@link StellarParser#lambda_variable}. - * @param ctx the parse tree - */ - void enterLambda_variable(StellarParser.Lambda_variableContext ctx); - /** - * Exit a parse tree produced by {@link StellarParser#lambda_variable}. - * @param ctx the parse tree - */ - void exitLambda_variable(StellarParser.Lambda_variableContext ctx); -} \ No newline at end of file
