| 1 |
// Generated from BindingExpression.g4 by ANTLR 4.5.3 |
| 2 |
package android.databinding.parser; |
| 3 |
import org.antlr.v4.runtime.tree.ParseTreeVisitor; |
| 4 |
|
| 5 |
/** |
| 6 |
* This interface defines a complete generic visitor for a parse tree produced |
| 7 |
* by {@link BindingExpressionParser}. |
| 8 |
* |
| 9 |
* @param <T> The return type of the visit operation. Use {@link Void} for |
| 10 |
* operations with no return type. |
| 11 |
*/ |
| 12 |
public interface BindingExpressionVisitor<T> extends ParseTreeVisitor<T> { |
| 13 |
/** |
| 14 |
* Visit a parse tree produced by the {@code RootExpr} |
| 15 |
* labeled alternative in {@link BindingExpressionParser#bindingSyntax}. |
| 16 |
* @param ctx the parse tree |
| 17 |
* @return the visitor result |
| 18 |
*/ |
| 19 |
T visitRootExpr(BindingExpressionParser.RootExprContext ctx); |
| 20 |
/** |
| 21 |
* Visit a parse tree produced by the {@code RootLambda} |
| 22 |
* labeled alternative in {@link BindingExpressionParser#bindingSyntax}. |
| 23 |
* @param ctx the parse tree |
| 24 |
* @return the visitor result |
| 25 |
*/ |
| 26 |
T visitRootLambda(BindingExpressionParser.RootLambdaContext ctx); |
| 27 |
/** |
| 28 |
* Visit a parse tree produced by {@link BindingExpressionParser#defaults}. |
| 29 |
* @param ctx the parse tree |
| 30 |
* @return the visitor result |
| 31 |
*/ |
| 32 |
T visitDefaults(BindingExpressionParser.DefaultsContext ctx); |
| 33 |
/** |
| 34 |
* Visit a parse tree produced by {@link BindingExpressionParser#constantValue}. |
| 35 |
* @param ctx the parse tree |
| 36 |
* @return the visitor result |
| 37 |
*/ |
| 38 |
T visitConstantValue(BindingExpressionParser.ConstantValueContext ctx); |
| 39 |
/** |
| 40 |
* Visit a parse tree produced by {@link BindingExpressionParser#lambdaExpression}. |
| 41 |
* @param ctx the parse tree |
| 42 |
* @return the visitor result |
| 43 |
*/ |
| 44 |
T visitLambdaExpression(BindingExpressionParser.LambdaExpressionContext ctx); |
| 45 |
/** |
| 46 |
* Visit a parse tree produced by the {@code SingleLambdaParameter} |
| 47 |
* labeled alternative in {@link BindingExpressionParser#lambdaParameters}. |
| 48 |
* @param ctx the parse tree |
| 49 |
* @return the visitor result |
| 50 |
*/ |
| 51 |
T visitSingleLambdaParameter(BindingExpressionParser.SingleLambdaParameterContext ctx); |
| 52 |
/** |
| 53 |
* Visit a parse tree produced by the {@code LambdaParameterList} |
| 54 |
* labeled alternative in {@link BindingExpressionParser#lambdaParameters}. |
| 55 |
* @param ctx the parse tree |
| 56 |
* @return the visitor result |
| 57 |
*/ |
| 58 |
T visitLambdaParameterList(BindingExpressionParser.LambdaParameterListContext ctx); |
| 59 |
/** |
| 60 |
* Visit a parse tree produced by {@link BindingExpressionParser#inferredFormalParameterList}. |
| 61 |
* @param ctx the parse tree |
| 62 |
* @return the visitor result |
| 63 |
*/ |
| 64 |
T visitInferredFormalParameterList(BindingExpressionParser.InferredFormalParameterListContext ctx); |
| 65 |
/** |
| 66 |
* Visit a parse tree produced by the {@code CastOp} |
| 67 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 68 |
* @param ctx the parse tree |
| 69 |
* @return the visitor result |
| 70 |
*/ |
| 71 |
T visitCastOp(BindingExpressionParser.CastOpContext ctx); |
| 72 |
/** |
| 73 |
* Visit a parse tree produced by the {@code ComparisonOp} |
| 74 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 75 |
* @param ctx the parse tree |
| 76 |
* @return the visitor result |
| 77 |
*/ |
| 78 |
T visitComparisonOp(BindingExpressionParser.ComparisonOpContext ctx); |
| 79 |
/** |
| 80 |
* Visit a parse tree produced by the {@code UnaryOp} |
| 81 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 82 |
* @param ctx the parse tree |
| 83 |
* @return the visitor result |
| 84 |
*/ |
| 85 |
T visitUnaryOp(BindingExpressionParser.UnaryOpContext ctx); |
| 86 |
/** |
| 87 |
* Visit a parse tree produced by the {@code BracketOp} |
| 88 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 89 |
* @param ctx the parse tree |
| 90 |
* @return the visitor result |
| 91 |
*/ |
| 92 |
T visitBracketOp(BindingExpressionParser.BracketOpContext ctx); |
| 93 |
/** |
| 94 |
* Visit a parse tree produced by the {@code Resource} |
| 95 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 96 |
* @param ctx the parse tree |
| 97 |
* @return the visitor result |
| 98 |
*/ |
| 99 |
T visitResource(BindingExpressionParser.ResourceContext ctx); |
| 100 |
/** |
| 101 |
* Visit a parse tree produced by the {@code QuestionQuestionOp} |
| 102 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 103 |
* @param ctx the parse tree |
| 104 |
* @return the visitor result |
| 105 |
*/ |
| 106 |
T visitQuestionQuestionOp(BindingExpressionParser.QuestionQuestionOpContext ctx); |
| 107 |
/** |
| 108 |
* Visit a parse tree produced by the {@code Grouping} |
| 109 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 110 |
* @param ctx the parse tree |
| 111 |
* @return the visitor result |
| 112 |
*/ |
| 113 |
T visitGrouping(BindingExpressionParser.GroupingContext ctx); |
| 114 |
/** |
| 115 |
* Visit a parse tree produced by the {@code MethodInvocation} |
| 116 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 117 |
* @param ctx the parse tree |
| 118 |
* @return the visitor result |
| 119 |
*/ |
| 120 |
T visitMethodInvocation(BindingExpressionParser.MethodInvocationContext ctx); |
| 121 |
/** |
| 122 |
* Visit a parse tree produced by the {@code BitShiftOp} |
| 123 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 124 |
* @param ctx the parse tree |
| 125 |
* @return the visitor result |
| 126 |
*/ |
| 127 |
T visitBitShiftOp(BindingExpressionParser.BitShiftOpContext ctx); |
| 128 |
/** |
| 129 |
* Visit a parse tree produced by the {@code AndOrOp} |
| 130 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 131 |
* @param ctx the parse tree |
| 132 |
* @return the visitor result |
| 133 |
*/ |
| 134 |
T visitAndOrOp(BindingExpressionParser.AndOrOpContext ctx); |
| 135 |
/** |
| 136 |
* Visit a parse tree produced by the {@code TernaryOp} |
| 137 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 138 |
* @param ctx the parse tree |
| 139 |
* @return the visitor result |
| 140 |
*/ |
| 141 |
T visitTernaryOp(BindingExpressionParser.TernaryOpContext ctx); |
| 142 |
/** |
| 143 |
* Visit a parse tree produced by the {@code Primary} |
| 144 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 145 |
* @param ctx the parse tree |
| 146 |
* @return the visitor result |
| 147 |
*/ |
| 148 |
T visitPrimary(BindingExpressionParser.PrimaryContext ctx); |
| 149 |
/** |
| 150 |
* Visit a parse tree produced by the {@code DotOp} |
| 151 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 152 |
* @param ctx the parse tree |
| 153 |
* @return the visitor result |
| 154 |
*/ |
| 155 |
T visitDotOp(BindingExpressionParser.DotOpContext ctx); |
| 156 |
/** |
| 157 |
* Visit a parse tree produced by the {@code MathOp} |
| 158 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 159 |
* @param ctx the parse tree |
| 160 |
* @return the visitor result |
| 161 |
*/ |
| 162 |
T visitMathOp(BindingExpressionParser.MathOpContext ctx); |
| 163 |
/** |
| 164 |
* Visit a parse tree produced by the {@code InstanceOfOp} |
| 165 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 166 |
* @param ctx the parse tree |
| 167 |
* @return the visitor result |
| 168 |
*/ |
| 169 |
T visitInstanceOfOp(BindingExpressionParser.InstanceOfOpContext ctx); |
| 170 |
/** |
| 171 |
* Visit a parse tree produced by the {@code BinaryOp} |
| 172 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 173 |
* @param ctx the parse tree |
| 174 |
* @return the visitor result |
| 175 |
*/ |
| 176 |
T visitBinaryOp(BindingExpressionParser.BinaryOpContext ctx); |
| 177 |
/** |
| 178 |
* Visit a parse tree produced by the {@code FunctionRef} |
| 179 |
* labeled alternative in {@link BindingExpressionParser#expression}. |
| 180 |
* @param ctx the parse tree |
| 181 |
* @return the visitor result |
| 182 |
*/ |
| 183 |
T visitFunctionRef(BindingExpressionParser.FunctionRefContext ctx); |
| 184 |
/** |
| 185 |
* Visit a parse tree produced by {@link BindingExpressionParser#classExtraction}. |
| 186 |
* @param ctx the parse tree |
| 187 |
* @return the visitor result |
| 188 |
*/ |
| 189 |
T visitClassExtraction(BindingExpressionParser.ClassExtractionContext ctx); |
| 190 |
/** |
| 191 |
* Visit a parse tree produced by {@link BindingExpressionParser#expressionList}. |
| 192 |
* @param ctx the parse tree |
| 193 |
* @return the visitor result |
| 194 |
*/ |
| 195 |
T visitExpressionList(BindingExpressionParser.ExpressionListContext ctx); |
| 196 |
/** |
| 197 |
* Visit a parse tree produced by {@link BindingExpressionParser#literal}. |
| 198 |
* @param ctx the parse tree |
| 199 |
* @return the visitor result |
| 200 |
*/ |
| 201 |
T visitLiteral(BindingExpressionParser.LiteralContext ctx); |
| 202 |
/** |
| 203 |
* Visit a parse tree produced by {@link BindingExpressionParser#identifier}. |
| 204 |
* @param ctx the parse tree |
| 205 |
* @return the visitor result |
| 206 |
*/ |
| 207 |
T visitIdentifier(BindingExpressionParser.IdentifierContext ctx); |
| 208 |
/** |
| 209 |
* Visit a parse tree produced by {@link BindingExpressionParser#javaLiteral}. |
| 210 |
* @param ctx the parse tree |
| 211 |
* @return the visitor result |
| 212 |
*/ |
| 213 |
T visitJavaLiteral(BindingExpressionParser.JavaLiteralContext ctx); |
| 214 |
/** |
| 215 |
* Visit a parse tree produced by {@link BindingExpressionParser#stringLiteral}. |
| 216 |
* @param ctx the parse tree |
| 217 |
* @return the visitor result |
| 218 |
*/ |
| 219 |
T visitStringLiteral(BindingExpressionParser.StringLiteralContext ctx); |
| 220 |
/** |
| 221 |
* Visit a parse tree produced by {@link BindingExpressionParser#explicitGenericInvocation}. |
| 222 |
* @param ctx the parse tree |
| 223 |
* @return the visitor result |
| 224 |
*/ |
| 225 |
T visitExplicitGenericInvocation(BindingExpressionParser.ExplicitGenericInvocationContext ctx); |
| 226 |
/** |
| 227 |
* Visit a parse tree produced by {@link BindingExpressionParser#typeArguments}. |
| 228 |
* @param ctx the parse tree |
| 229 |
* @return the visitor result |
| 230 |
*/ |
| 231 |
T visitTypeArguments(BindingExpressionParser.TypeArgumentsContext ctx); |
| 232 |
/** |
| 233 |
* Visit a parse tree produced by {@link BindingExpressionParser#type}. |
| 234 |
* @param ctx the parse tree |
| 235 |
* @return the visitor result |
| 236 |
*/ |
| 237 |
T visitType(BindingExpressionParser.TypeContext ctx); |
| 238 |
/** |
| 239 |
* Visit a parse tree produced by {@link BindingExpressionParser#explicitGenericInvocationSuffix}. |
| 240 |
* @param ctx the parse tree |
| 241 |
* @return the visitor result |
| 242 |
*/ |
| 243 |
T visitExplicitGenericInvocationSuffix(BindingExpressionParser.ExplicitGenericInvocationSuffixContext ctx); |
| 244 |
/** |
| 245 |
* Visit a parse tree produced by {@link BindingExpressionParser#arguments}. |
| 246 |
* @param ctx the parse tree |
| 247 |
* @return the visitor result |
| 248 |
*/ |
| 249 |
T visitArguments(BindingExpressionParser.ArgumentsContext ctx); |
| 250 |
/** |
| 251 |
* Visit a parse tree produced by {@link BindingExpressionParser#classOrInterfaceType}. |
| 252 |
* @param ctx the parse tree |
| 253 |
* @return the visitor result |
| 254 |
*/ |
| 255 |
T visitClassOrInterfaceType(BindingExpressionParser.ClassOrInterfaceTypeContext ctx); |
| 256 |
/** |
| 257 |
* Visit a parse tree produced by {@link BindingExpressionParser#primitiveType}. |
| 258 |
* @param ctx the parse tree |
| 259 |
* @return the visitor result |
| 260 |
*/ |
| 261 |
T visitPrimitiveType(BindingExpressionParser.PrimitiveTypeContext ctx); |
| 262 |
/** |
| 263 |
* Visit a parse tree produced by {@link BindingExpressionParser#resources}. |
| 264 |
* @param ctx the parse tree |
| 265 |
* @return the visitor result |
| 266 |
*/ |
| 267 |
T visitResources(BindingExpressionParser.ResourcesContext ctx); |
| 268 |
/** |
| 269 |
* Visit a parse tree produced by {@link BindingExpressionParser#resourceParameters}. |
| 270 |
* @param ctx the parse tree |
| 271 |
* @return the visitor result |
| 272 |
*/ |
| 273 |
T visitResourceParameters(BindingExpressionParser.ResourceParametersContext ctx); |
| 274 |
} |