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