Committed by
Gerrit Code Review
[ONOS-4762][ONOS-4601]Grammar for meta data + Union defect fix
Change-Id: I8f78127e5b292cca6a79b32d496c2602c9105acd
Showing
21 changed files
with
560 additions
and
574 deletions
| ... | @@ -27,904 +27,791 @@ import org.antlr.v4.runtime.tree.ParseTreeListener; | ... | @@ -27,904 +27,791 @@ import org.antlr.v4.runtime.tree.ParseTreeListener; |
| 27 | public interface GeneratedYangListener extends ParseTreeListener { | 27 | public interface GeneratedYangListener extends ParseTreeListener { |
| 28 | 28 | ||
| 29 | /** | 29 | /** |
| 30 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 30 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule yangfile. |
| 31 | - * yangfile. | ||
| 32 | * | 31 | * |
| 33 | * @param currentContext current context in the parsed tree | 32 | * @param currentContext current context in the parsed tree |
| 34 | */ | 33 | */ |
| 35 | void enterYangfile(GeneratedYangParser.YangfileContext currentContext); | 34 | void enterYangfile(GeneratedYangParser.YangfileContext currentContext); |
| 36 | 35 | ||
| 37 | /** | 36 | /** |
| 38 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 37 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule yangfile. |
| 39 | - * yangfile. | ||
| 40 | * | 38 | * |
| 41 | * @param currentContext current context in the parsed tree | 39 | * @param currentContext current context in the parsed tree |
| 42 | */ | 40 | */ |
| 43 | void exitYangfile(GeneratedYangParser.YangfileContext currentContext); | 41 | void exitYangfile(GeneratedYangParser.YangfileContext currentContext); |
| 44 | 42 | ||
| 45 | /** | 43 | /** |
| 46 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 44 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule moduleStatement. |
| 47 | - * moduleStatement. | ||
| 48 | * | 45 | * |
| 49 | * @param currentContext current context in the parsed tree | 46 | * @param currentContext current context in the parsed tree |
| 50 | */ | 47 | */ |
| 51 | void enterModuleStatement(GeneratedYangParser.ModuleStatementContext currentContext); | 48 | void enterModuleStatement(GeneratedYangParser.ModuleStatementContext currentContext); |
| 52 | 49 | ||
| 53 | /** | 50 | /** |
| 54 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 51 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule moduleStatement. |
| 55 | - * moduleStatement. | ||
| 56 | * | 52 | * |
| 57 | * @param currentContext current context in the parsed tree | 53 | * @param currentContext current context in the parsed tree |
| 58 | */ | 54 | */ |
| 59 | void exitModuleStatement(GeneratedYangParser.ModuleStatementContext currentContext); | 55 | void exitModuleStatement(GeneratedYangParser.ModuleStatementContext currentContext); |
| 60 | 56 | ||
| 61 | /** | 57 | /** |
| 62 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 58 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule moduleBody. |
| 63 | - * moduleBody. | ||
| 64 | * | 59 | * |
| 65 | * @param currentContext current context in the parsed tree | 60 | * @param currentContext current context in the parsed tree |
| 66 | */ | 61 | */ |
| 67 | void enterModuleBody(GeneratedYangParser.ModuleBodyContext currentContext); | 62 | void enterModuleBody(GeneratedYangParser.ModuleBodyContext currentContext); |
| 68 | 63 | ||
| 69 | /** | 64 | /** |
| 70 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 65 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule moduleBody. |
| 71 | - * moduleBody. | ||
| 72 | * | 66 | * |
| 73 | * @param currentContext current context in the parsed tree | 67 | * @param currentContext current context in the parsed tree |
| 74 | */ | 68 | */ |
| 75 | void exitModuleBody(GeneratedYangParser.ModuleBodyContext currentContext); | 69 | void exitModuleBody(GeneratedYangParser.ModuleBodyContext currentContext); |
| 76 | 70 | ||
| 77 | /** | 71 | /** |
| 78 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 72 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule moduleHeaderStatement. |
| 79 | - * moduleHeaderStatement. | ||
| 80 | * | 73 | * |
| 81 | * @param currentContext current context in the parsed tree | 74 | * @param currentContext current context in the parsed tree |
| 82 | */ | 75 | */ |
| 83 | void enterModuleHeaderStatement(GeneratedYangParser.ModuleHeaderStatementContext currentContext); | 76 | void enterModuleHeaderStatement(GeneratedYangParser.ModuleHeaderStatementContext currentContext); |
| 84 | 77 | ||
| 85 | /** | 78 | /** |
| 86 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 79 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule moduleHeaderStatement. |
| 87 | - * moduleHeaderStatement. | ||
| 88 | * | 80 | * |
| 89 | * @param currentContext current context in the parsed tree | 81 | * @param currentContext current context in the parsed tree |
| 90 | */ | 82 | */ |
| 91 | void exitModuleHeaderStatement(GeneratedYangParser.ModuleHeaderStatementContext currentContext); | 83 | void exitModuleHeaderStatement(GeneratedYangParser.ModuleHeaderStatementContext currentContext); |
| 92 | 84 | ||
| 93 | /** | 85 | /** |
| 94 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 86 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule linkageStatements. |
| 95 | - * linkageStatements. | ||
| 96 | * | 87 | * |
| 97 | * @param currentContext current context in the parsed tree | 88 | * @param currentContext current context in the parsed tree |
| 98 | */ | 89 | */ |
| 99 | void enterLinkageStatements(GeneratedYangParser.LinkageStatementsContext currentContext); | 90 | void enterLinkageStatements(GeneratedYangParser.LinkageStatementsContext currentContext); |
| 100 | 91 | ||
| 101 | /** | 92 | /** |
| 102 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 93 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule linkageStatements. |
| 103 | - * linkageStatements. | ||
| 104 | * | 94 | * |
| 105 | * @param currentContext current context in the parsed tree | 95 | * @param currentContext current context in the parsed tree |
| 106 | */ | 96 | */ |
| 107 | void exitLinkageStatements(GeneratedYangParser.LinkageStatementsContext currentContext); | 97 | void exitLinkageStatements(GeneratedYangParser.LinkageStatementsContext currentContext); |
| 108 | 98 | ||
| 109 | /** | 99 | /** |
| 110 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 100 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule metaStatements. |
| 111 | - * metaStatements. | ||
| 112 | * | 101 | * |
| 113 | * @param currentContext current context in the parsed tree | 102 | * @param currentContext current context in the parsed tree |
| 114 | */ | 103 | */ |
| 115 | void enterMetaStatements(GeneratedYangParser.MetaStatementsContext currentContext); | 104 | void enterMetaStatements(GeneratedYangParser.MetaStatementsContext currentContext); |
| 116 | 105 | ||
| 117 | /** | 106 | /** |
| 118 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 107 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule metaStatements. |
| 119 | - * metaStatements. | ||
| 120 | * | 108 | * |
| 121 | * @param currentContext current context in the parsed tree | 109 | * @param currentContext current context in the parsed tree |
| 122 | */ | 110 | */ |
| 123 | void exitMetaStatements(GeneratedYangParser.MetaStatementsContext currentContext); | 111 | void exitMetaStatements(GeneratedYangParser.MetaStatementsContext currentContext); |
| 124 | 112 | ||
| 125 | /** | 113 | /** |
| 126 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 114 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule revisionStatements. |
| 127 | - * revisionStatements. | ||
| 128 | * | 115 | * |
| 129 | * @param currentContext current context in the parsed tree | 116 | * @param currentContext current context in the parsed tree |
| 130 | */ | 117 | */ |
| 131 | void enterRevisionStatements(GeneratedYangParser.RevisionStatementsContext currentContext); | 118 | void enterRevisionStatements(GeneratedYangParser.RevisionStatementsContext currentContext); |
| 132 | 119 | ||
| 133 | /** | 120 | /** |
| 134 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 121 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule revisionStatements. |
| 135 | - * revisionStatements. | ||
| 136 | * | 122 | * |
| 137 | * @param currentContext current context in the parsed tree | 123 | * @param currentContext current context in the parsed tree |
| 138 | */ | 124 | */ |
| 139 | void exitRevisionStatements(GeneratedYangParser.RevisionStatementsContext currentContext); | 125 | void exitRevisionStatements(GeneratedYangParser.RevisionStatementsContext currentContext); |
| 140 | 126 | ||
| 141 | /** | 127 | /** |
| 142 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 128 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule bodyStatements. |
| 143 | - * bodyStatements. | ||
| 144 | * | 129 | * |
| 145 | * @param currentContext current context in the parsed tree | 130 | * @param currentContext current context in the parsed tree |
| 146 | */ | 131 | */ |
| 147 | void enterBodyStatements(GeneratedYangParser.BodyStatementsContext currentContext); | 132 | void enterBodyStatements(GeneratedYangParser.BodyStatementsContext currentContext); |
| 148 | 133 | ||
| 149 | /** | 134 | /** |
| 150 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 135 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule bodyStatements. |
| 151 | - * bodyStatements. | ||
| 152 | * | 136 | * |
| 153 | * @param currentContext current context in the parsed tree | 137 | * @param currentContext current context in the parsed tree |
| 154 | */ | 138 | */ |
| 155 | void exitBodyStatements(GeneratedYangParser.BodyStatementsContext currentContext); | 139 | void exitBodyStatements(GeneratedYangParser.BodyStatementsContext currentContext); |
| 156 | 140 | ||
| 157 | /** | 141 | /** |
| 158 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 142 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule yangVersionStatement. |
| 159 | - * yangVersionStatement. | ||
| 160 | * | 143 | * |
| 161 | * @param currentContext current context in the parsed tree | 144 | * @param currentContext current context in the parsed tree |
| 162 | */ | 145 | */ |
| 163 | void enterYangVersionStatement(GeneratedYangParser.YangVersionStatementContext currentContext); | 146 | void enterYangVersionStatement(GeneratedYangParser.YangVersionStatementContext currentContext); |
| 164 | 147 | ||
| 165 | /** | 148 | /** |
| 166 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 149 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule yangVersionStatement. |
| 167 | - * yangVersionStatement. | ||
| 168 | * | 150 | * |
| 169 | * @param currentContext current context in the parsed tree | 151 | * @param currentContext current context in the parsed tree |
| 170 | */ | 152 | */ |
| 171 | void exitYangVersionStatement(GeneratedYangParser.YangVersionStatementContext currentContext); | 153 | void exitYangVersionStatement(GeneratedYangParser.YangVersionStatementContext currentContext); |
| 172 | 154 | ||
| 173 | /** | 155 | /** |
| 174 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 156 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule namespaceStatement. |
| 175 | - * namespaceStatement. | ||
| 176 | * | 157 | * |
| 177 | * @param currentContext current context in the parsed tree | 158 | * @param currentContext current context in the parsed tree |
| 178 | */ | 159 | */ |
| 179 | void enterNamespaceStatement(GeneratedYangParser.NamespaceStatementContext currentContext); | 160 | void enterNamespaceStatement(GeneratedYangParser.NamespaceStatementContext currentContext); |
| 180 | 161 | ||
| 181 | /** | 162 | /** |
| 182 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 163 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule namespaceStatement. |
| 183 | - * namespaceStatement. | ||
| 184 | * | 164 | * |
| 185 | * @param currentContext current context in the parsed tree | 165 | * @param currentContext current context in the parsed tree |
| 186 | */ | 166 | */ |
| 187 | void exitNamespaceStatement(GeneratedYangParser.NamespaceStatementContext currentContext); | 167 | void exitNamespaceStatement(GeneratedYangParser.NamespaceStatementContext currentContext); |
| 188 | 168 | ||
| 189 | /** | 169 | /** |
| 190 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 170 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule prefixStatement. |
| 191 | - * prefixStatement. | ||
| 192 | * | 171 | * |
| 193 | * @param currentContext current context in the parsed tree | 172 | * @param currentContext current context in the parsed tree |
| 194 | */ | 173 | */ |
| 195 | void enterPrefixStatement(GeneratedYangParser.PrefixStatementContext currentContext); | 174 | void enterPrefixStatement(GeneratedYangParser.PrefixStatementContext currentContext); |
| 196 | 175 | ||
| 197 | /** | 176 | /** |
| 198 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 177 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule prefixStatement. |
| 199 | - * prefixStatement. | ||
| 200 | * | 178 | * |
| 201 | * @param currentContext current context in the parsed tree | 179 | * @param currentContext current context in the parsed tree |
| 202 | */ | 180 | */ |
| 203 | void exitPrefixStatement(GeneratedYangParser.PrefixStatementContext currentContext); | 181 | void exitPrefixStatement(GeneratedYangParser.PrefixStatementContext currentContext); |
| 204 | 182 | ||
| 205 | /** | 183 | /** |
| 206 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 184 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule importStatement. |
| 207 | - * importStatement. | ||
| 208 | * | 185 | * |
| 209 | * @param currentContext current context in the parsed tree | 186 | * @param currentContext current context in the parsed tree |
| 210 | */ | 187 | */ |
| 211 | void enterImportStatement(GeneratedYangParser.ImportStatementContext currentContext); | 188 | void enterImportStatement(GeneratedYangParser.ImportStatementContext currentContext); |
| 212 | 189 | ||
| 213 | /** | 190 | /** |
| 214 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 191 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule importStatement. |
| 215 | - * importStatement. | ||
| 216 | * | 192 | * |
| 217 | * @param currentContext current context in the parsed tree | 193 | * @param currentContext current context in the parsed tree |
| 218 | */ | 194 | */ |
| 219 | void exitImportStatement(GeneratedYangParser.ImportStatementContext currentContext); | 195 | void exitImportStatement(GeneratedYangParser.ImportStatementContext currentContext); |
| 220 | 196 | ||
| 221 | /** | 197 | /** |
| 222 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 198 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule importStatementBody. |
| 223 | - * importStatementBody. | ||
| 224 | * | 199 | * |
| 225 | * @param currentContext current context in the parsed tree | 200 | * @param currentContext current context in the parsed tree |
| 226 | */ | 201 | */ |
| 227 | void enterImportStatementBody(GeneratedYangParser.ImportStatementBodyContext currentContext); | 202 | void enterImportStatementBody(GeneratedYangParser.ImportStatementBodyContext currentContext); |
| 228 | 203 | ||
| 229 | /** | 204 | /** |
| 230 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 205 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule importStatementBody. |
| 231 | - * importStatementBody. | ||
| 232 | * | 206 | * |
| 233 | * @param currentContext current context in the parsed tree | 207 | * @param currentContext current context in the parsed tree |
| 234 | */ | 208 | */ |
| 235 | void exitImportStatementBody(GeneratedYangParser.ImportStatementBodyContext currentContext); | 209 | void exitImportStatementBody(GeneratedYangParser.ImportStatementBodyContext currentContext); |
| 236 | 210 | ||
| 237 | /** | 211 | /** |
| 238 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 212 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule revisionDateStatement. |
| 239 | - * revisionDateStatement. | ||
| 240 | * | 213 | * |
| 241 | * @param currentContext current context in the parsed tree | 214 | * @param currentContext current context in the parsed tree |
| 242 | */ | 215 | */ |
| 243 | void enterRevisionDateStatement(GeneratedYangParser.RevisionDateStatementContext currentContext); | 216 | void enterRevisionDateStatement(GeneratedYangParser.RevisionDateStatementContext currentContext); |
| 244 | 217 | ||
| 245 | /** | 218 | /** |
| 246 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 219 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule revisionDateStatement. |
| 247 | - * revisionDateStatement. | ||
| 248 | * | 220 | * |
| 249 | * @param currentContext current context in the parsed tree | 221 | * @param currentContext current context in the parsed tree |
| 250 | */ | 222 | */ |
| 251 | void exitRevisionDateStatement(GeneratedYangParser.RevisionDateStatementContext currentContext); | 223 | void exitRevisionDateStatement(GeneratedYangParser.RevisionDateStatementContext currentContext); |
| 252 | 224 | ||
| 253 | /** | 225 | /** |
| 254 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 226 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule includeStatement. |
| 255 | - * includeStatement. | ||
| 256 | * | 227 | * |
| 257 | * @param currentContext current context in the parsed tree | 228 | * @param currentContext current context in the parsed tree |
| 258 | */ | 229 | */ |
| 259 | void enterIncludeStatement(GeneratedYangParser.IncludeStatementContext currentContext); | 230 | void enterIncludeStatement(GeneratedYangParser.IncludeStatementContext currentContext); |
| 260 | 231 | ||
| 261 | /** | 232 | /** |
| 262 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 233 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule includeStatement. |
| 263 | - * includeStatement. | ||
| 264 | * | 234 | * |
| 265 | * @param currentContext current context in the parsed tree | 235 | * @param currentContext current context in the parsed tree |
| 266 | */ | 236 | */ |
| 267 | void exitIncludeStatement(GeneratedYangParser.IncludeStatementContext currentContext); | 237 | void exitIncludeStatement(GeneratedYangParser.IncludeStatementContext currentContext); |
| 268 | 238 | ||
| 269 | /** | 239 | /** |
| 270 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 240 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule organizationStatement. |
| 271 | - * organizationStatement. | ||
| 272 | * | 241 | * |
| 273 | * @param currentContext current context in the parsed tree | 242 | * @param currentContext current context in the parsed tree |
| 274 | */ | 243 | */ |
| 275 | void enterOrganizationStatement(GeneratedYangParser.OrganizationStatementContext currentContext); | 244 | void enterOrganizationStatement(GeneratedYangParser.OrganizationStatementContext currentContext); |
| 276 | 245 | ||
| 277 | /** | 246 | /** |
| 278 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 247 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule organizationStatement. |
| 279 | - * organizationStatement. | ||
| 280 | * | 248 | * |
| 281 | * @param currentContext current context in the parsed tree | 249 | * @param currentContext current context in the parsed tree |
| 282 | */ | 250 | */ |
| 283 | void exitOrganizationStatement(GeneratedYangParser.OrganizationStatementContext currentContext); | 251 | void exitOrganizationStatement(GeneratedYangParser.OrganizationStatementContext currentContext); |
| 284 | 252 | ||
| 285 | /** | 253 | /** |
| 286 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 254 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule contactStatement. |
| 287 | - * contactStatement. | ||
| 288 | * | 255 | * |
| 289 | * @param currentContext current context in the parsed tree | 256 | * @param currentContext current context in the parsed tree |
| 290 | */ | 257 | */ |
| 291 | void enterContactStatement(GeneratedYangParser.ContactStatementContext currentContext); | 258 | void enterContactStatement(GeneratedYangParser.ContactStatementContext currentContext); |
| 292 | 259 | ||
| 293 | /** | 260 | /** |
| 294 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 261 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule contactStatement. |
| 295 | - * contactStatement. | ||
| 296 | * | 262 | * |
| 297 | * @param currentContext current context in the parsed tree | 263 | * @param currentContext current context in the parsed tree |
| 298 | */ | 264 | */ |
| 299 | void exitContactStatement(GeneratedYangParser.ContactStatementContext currentContext); | 265 | void exitContactStatement(GeneratedYangParser.ContactStatementContext currentContext); |
| 300 | 266 | ||
| 301 | /** | 267 | /** |
| 302 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 268 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule descriptionStatement. |
| 303 | - * descriptionStatement. | ||
| 304 | * | 269 | * |
| 305 | * @param currentContext current context in the parsed tree | 270 | * @param currentContext current context in the parsed tree |
| 306 | */ | 271 | */ |
| 307 | void enterDescriptionStatement(GeneratedYangParser.DescriptionStatementContext currentContext); | 272 | void enterDescriptionStatement(GeneratedYangParser.DescriptionStatementContext currentContext); |
| 308 | 273 | ||
| 309 | /** | 274 | /** |
| 310 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 275 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule descriptionStatement. |
| 311 | - * descriptionStatement. | ||
| 312 | * | 276 | * |
| 313 | * @param currentContext current context in the parsed tree | 277 | * @param currentContext current context in the parsed tree |
| 314 | */ | 278 | */ |
| 315 | void exitDescriptionStatement(GeneratedYangParser.DescriptionStatementContext currentContext); | 279 | void exitDescriptionStatement(GeneratedYangParser.DescriptionStatementContext currentContext); |
| 316 | 280 | ||
| 317 | /** | 281 | /** |
| 318 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 282 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule referenceStatement. |
| 319 | - * referenceStatement. | ||
| 320 | * | 283 | * |
| 321 | * @param currentContext current context in the parsed tree | 284 | * @param currentContext current context in the parsed tree |
| 322 | */ | 285 | */ |
| 323 | void enterReferenceStatement(GeneratedYangParser.ReferenceStatementContext currentContext); | 286 | void enterReferenceStatement(GeneratedYangParser.ReferenceStatementContext currentContext); |
| 324 | 287 | ||
| 325 | /** | 288 | /** |
| 326 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 289 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule referenceStatement. |
| 327 | - * referenceStatement. | ||
| 328 | * | 290 | * |
| 329 | * @param currentContext current context in the parsed tree | 291 | * @param currentContext current context in the parsed tree |
| 330 | */ | 292 | */ |
| 331 | void exitReferenceStatement(GeneratedYangParser.ReferenceStatementContext currentContext); | 293 | void exitReferenceStatement(GeneratedYangParser.ReferenceStatementContext currentContext); |
| 332 | 294 | ||
| 333 | /** | 295 | /** |
| 334 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 296 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule revisionStatement. |
| 335 | - * revisionStatement. | ||
| 336 | * | 297 | * |
| 337 | * @param currentContext current context in the parsed tree | 298 | * @param currentContext current context in the parsed tree |
| 338 | */ | 299 | */ |
| 339 | void enterRevisionStatement(GeneratedYangParser.RevisionStatementContext currentContext); | 300 | void enterRevisionStatement(GeneratedYangParser.RevisionStatementContext currentContext); |
| 340 | 301 | ||
| 341 | /** | 302 | /** |
| 342 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 303 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule revisionStatement. |
| 343 | - * revisionStatement. | ||
| 344 | * | 304 | * |
| 345 | * @param currentContext current context in the parsed tree | 305 | * @param currentContext current context in the parsed tree |
| 346 | */ | 306 | */ |
| 347 | void exitRevisionStatement(GeneratedYangParser.RevisionStatementContext currentContext); | 307 | void exitRevisionStatement(GeneratedYangParser.RevisionStatementContext currentContext); |
| 348 | 308 | ||
| 349 | /** | 309 | /** |
| 350 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 310 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule revisionStatementBody. |
| 351 | - * revisionStatementBody. | ||
| 352 | * | 311 | * |
| 353 | * @param currentContext current context in the parsed tree | 312 | * @param currentContext current context in the parsed tree |
| 354 | */ | 313 | */ |
| 355 | void enterRevisionStatementBody(GeneratedYangParser.RevisionStatementBodyContext currentContext); | 314 | void enterRevisionStatementBody(GeneratedYangParser.RevisionStatementBodyContext currentContext); |
| 356 | 315 | ||
| 357 | /** | 316 | /** |
| 358 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 317 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule revisionStatementBody. |
| 359 | - * revisionStatementBody. | ||
| 360 | * | 318 | * |
| 361 | * @param currentContext current context in the parsed tree | 319 | * @param currentContext current context in the parsed tree |
| 362 | */ | 320 | */ |
| 363 | void exitRevisionStatementBody(GeneratedYangParser.RevisionStatementBodyContext currentContext); | 321 | void exitRevisionStatementBody(GeneratedYangParser.RevisionStatementBodyContext currentContext); |
| 364 | 322 | ||
| 365 | /** | 323 | /** |
| 366 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 324 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule subModuleStatement. |
| 367 | - * subModuleStatement. | ||
| 368 | * | 325 | * |
| 369 | * @param currentContext current context in the parsed tree | 326 | * @param currentContext current context in the parsed tree |
| 370 | */ | 327 | */ |
| 371 | void enterSubModuleStatement(GeneratedYangParser.SubModuleStatementContext currentContext); | 328 | void enterSubModuleStatement(GeneratedYangParser.SubModuleStatementContext currentContext); |
| 372 | 329 | ||
| 373 | /** | 330 | /** |
| 374 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 331 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule subModuleStatement. |
| 375 | - * subModuleStatement. | ||
| 376 | * | 332 | * |
| 377 | * @param currentContext current context in the parsed tree | 333 | * @param currentContext current context in the parsed tree |
| 378 | */ | 334 | */ |
| 379 | void exitSubModuleStatement(GeneratedYangParser.SubModuleStatementContext currentContext); | 335 | void exitSubModuleStatement(GeneratedYangParser.SubModuleStatementContext currentContext); |
| 380 | 336 | ||
| 381 | /** | 337 | /** |
| 382 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 338 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule submoduleBody. |
| 383 | - * submoduleBody. | ||
| 384 | * | 339 | * |
| 385 | * @param currentContext current context in the parsed tree | 340 | * @param currentContext current context in the parsed tree |
| 386 | */ | 341 | */ |
| 387 | void enterSubmoduleBody(GeneratedYangParser.SubmoduleBodyContext currentContext); | 342 | void enterSubmoduleBody(GeneratedYangParser.SubmoduleBodyContext currentContext); |
| 388 | 343 | ||
| 389 | /** | 344 | /** |
| 390 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 345 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule submoduleBody. |
| 391 | - * submoduleBody. | ||
| 392 | * | 346 | * |
| 393 | * @param currentContext current context in the parsed tree | 347 | * @param currentContext current context in the parsed tree |
| 394 | */ | 348 | */ |
| 395 | void exitSubmoduleBody(GeneratedYangParser.SubmoduleBodyContext currentContext); | 349 | void exitSubmoduleBody(GeneratedYangParser.SubmoduleBodyContext currentContext); |
| 396 | 350 | ||
| 397 | /** | 351 | /** |
| 398 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 352 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule submoduleHeaderStatement. |
| 399 | - * submoduleHeaderStatement. | ||
| 400 | * | 353 | * |
| 401 | * @param currentContext current context in the parsed tree | 354 | * @param currentContext current context in the parsed tree |
| 402 | */ | 355 | */ |
| 403 | void enterSubmoduleHeaderStatement(GeneratedYangParser.SubmoduleHeaderStatementContext currentContext); | 356 | void enterSubmoduleHeaderStatement(GeneratedYangParser.SubmoduleHeaderStatementContext currentContext); |
| 404 | 357 | ||
| 405 | /** | 358 | /** |
| 406 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 359 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule submoduleHeaderStatement. |
| 407 | - * submoduleHeaderStatement. | ||
| 408 | * | 360 | * |
| 409 | * @param currentContext current context in the parsed tree | 361 | * @param currentContext current context in the parsed tree |
| 410 | */ | 362 | */ |
| 411 | void exitSubmoduleHeaderStatement(GeneratedYangParser.SubmoduleHeaderStatementContext currentContext); | 363 | void exitSubmoduleHeaderStatement(GeneratedYangParser.SubmoduleHeaderStatementContext currentContext); |
| 412 | 364 | ||
| 413 | /** | 365 | /** |
| 414 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 366 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule belongstoStatement. |
| 415 | - * belongstoStatement. | ||
| 416 | * | 367 | * |
| 417 | * @param currentContext current context in the parsed tree | 368 | * @param currentContext current context in the parsed tree |
| 418 | */ | 369 | */ |
| 419 | void enterBelongstoStatement(GeneratedYangParser.BelongstoStatementContext currentContext); | 370 | void enterBelongstoStatement(GeneratedYangParser.BelongstoStatementContext currentContext); |
| 420 | 371 | ||
| 421 | /** | 372 | /** |
| 422 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 373 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule belongstoStatement. |
| 423 | - * belongstoStatement. | ||
| 424 | * | 374 | * |
| 425 | * @param currentContext current context in the parsed tree | 375 | * @param currentContext current context in the parsed tree |
| 426 | */ | 376 | */ |
| 427 | void exitBelongstoStatement(GeneratedYangParser.BelongstoStatementContext currentContext); | 377 | void exitBelongstoStatement(GeneratedYangParser.BelongstoStatementContext currentContext); |
| 428 | 378 | ||
| 429 | /** | 379 | /** |
| 430 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 380 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule belongstoStatementBody. |
| 431 | - * belongstoStatementBody. | ||
| 432 | * | 381 | * |
| 433 | * @param currentContext current context in the parsed tree | 382 | * @param currentContext current context in the parsed tree |
| 434 | */ | 383 | */ |
| 435 | void enterBelongstoStatementBody(GeneratedYangParser.BelongstoStatementBodyContext currentContext); | 384 | void enterBelongstoStatementBody(GeneratedYangParser.BelongstoStatementBodyContext currentContext); |
| 436 | 385 | ||
| 437 | /** | 386 | /** |
| 438 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 387 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule belongstoStatementBody. |
| 439 | - * belongstoStatementBody. | ||
| 440 | * | 388 | * |
| 441 | * @param currentContext current context in the parsed tree | 389 | * @param currentContext current context in the parsed tree |
| 442 | */ | 390 | */ |
| 443 | void exitBelongstoStatementBody(GeneratedYangParser.BelongstoStatementBodyContext currentContext); | 391 | void exitBelongstoStatementBody(GeneratedYangParser.BelongstoStatementBodyContext currentContext); |
| 444 | 392 | ||
| 445 | /** | 393 | /** |
| 446 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 394 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule extensionStatement. |
| 447 | - * extensionStatement. | ||
| 448 | * | 395 | * |
| 449 | * @param currentContext current context in the parsed tree | 396 | * @param currentContext current context in the parsed tree |
| 450 | */ | 397 | */ |
| 451 | void enterExtensionStatement(GeneratedYangParser.ExtensionStatementContext currentContext); | 398 | void enterExtensionStatement(GeneratedYangParser.ExtensionStatementContext currentContext); |
| 452 | 399 | ||
| 453 | /** | 400 | /** |
| 454 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 401 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule extensionStatement. |
| 455 | - * extensionStatement. | ||
| 456 | * | 402 | * |
| 457 | * @param currentContext current context in the parsed tree | 403 | * @param currentContext current context in the parsed tree |
| 458 | */ | 404 | */ |
| 459 | void exitExtensionStatement(GeneratedYangParser.ExtensionStatementContext currentContext); | 405 | void exitExtensionStatement(GeneratedYangParser.ExtensionStatementContext currentContext); |
| 460 | 406 | ||
| 461 | /** | 407 | /** |
| 462 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 408 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule extensionBody. |
| 463 | - * extensionBody. | ||
| 464 | * | 409 | * |
| 465 | * @param currentContext current context in the parsed tree | 410 | * @param currentContext current context in the parsed tree |
| 466 | */ | 411 | */ |
| 467 | void enterExtensionBody(GeneratedYangParser.ExtensionBodyContext currentContext); | 412 | void enterExtensionBody(GeneratedYangParser.ExtensionBodyContext currentContext); |
| 468 | 413 | ||
| 469 | /** | 414 | /** |
| 470 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 415 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule extensionBody. |
| 471 | - * extensionBody. | ||
| 472 | * | 416 | * |
| 473 | * @param currentContext current context in the parsed tree | 417 | * @param currentContext current context in the parsed tree |
| 474 | */ | 418 | */ |
| 475 | void exitExtensionBody(GeneratedYangParser.ExtensionBodyContext currentContext); | 419 | void exitExtensionBody(GeneratedYangParser.ExtensionBodyContext currentContext); |
| 476 | 420 | ||
| 477 | /** | 421 | /** |
| 478 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 422 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule argumentStatement. |
| 479 | - * argumentStatement. | ||
| 480 | * | 423 | * |
| 481 | * @param currentContext current context in the parsed tree | 424 | * @param currentContext current context in the parsed tree |
| 482 | */ | 425 | */ |
| 483 | void enterArgumentStatement(GeneratedYangParser.ArgumentStatementContext currentContext); | 426 | void enterArgumentStatement(GeneratedYangParser.ArgumentStatementContext currentContext); |
| 484 | 427 | ||
| 485 | /** | 428 | /** |
| 486 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 429 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule argumentStatement. |
| 487 | - * argumentStatement. | ||
| 488 | * | 430 | * |
| 489 | * @param currentContext current context in the parsed tree | 431 | * @param currentContext current context in the parsed tree |
| 490 | */ | 432 | */ |
| 491 | void exitArgumentStatement(GeneratedYangParser.ArgumentStatementContext currentContext); | 433 | void exitArgumentStatement(GeneratedYangParser.ArgumentStatementContext currentContext); |
| 492 | 434 | ||
| 493 | /** | 435 | /** |
| 494 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 436 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule argumentBody. |
| 495 | - * argumentBody. | ||
| 496 | * | 437 | * |
| 497 | * @param currentContext current context in the parsed tree | 438 | * @param currentContext current context in the parsed tree |
| 498 | */ | 439 | */ |
| 499 | void enterArgumentBody(GeneratedYangParser.ArgumentBodyContext currentContext); | 440 | void enterArgumentBody(GeneratedYangParser.ArgumentBodyContext currentContext); |
| 500 | 441 | ||
| 501 | /** | 442 | /** |
| 502 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 443 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule argumentBody. |
| 503 | - * argumentBody. | ||
| 504 | * | 444 | * |
| 505 | * @param currentContext current context in the parsed tree | 445 | * @param currentContext current context in the parsed tree |
| 506 | */ | 446 | */ |
| 507 | void exitArgumentBody(GeneratedYangParser.ArgumentBodyContext currentContext); | 447 | void exitArgumentBody(GeneratedYangParser.ArgumentBodyContext currentContext); |
| 508 | 448 | ||
| 509 | /** | 449 | /** |
| 510 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 450 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule yinElementStatement. |
| 511 | - * yinElementStatement. | ||
| 512 | * | 451 | * |
| 513 | * @param currentContext current context in the parsed tree | 452 | * @param currentContext current context in the parsed tree |
| 514 | */ | 453 | */ |
| 515 | void enterYinElementStatement(GeneratedYangParser.YinElementStatementContext currentContext); | 454 | void enterYinElementStatement(GeneratedYangParser.YinElementStatementContext currentContext); |
| 516 | 455 | ||
| 517 | /** | 456 | /** |
| 518 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 457 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule yinElementStatement. |
| 519 | - * yinElementStatement. | ||
| 520 | * | 458 | * |
| 521 | * @param currentContext current context in the parsed tree | 459 | * @param currentContext current context in the parsed tree |
| 522 | */ | 460 | */ |
| 523 | void exitYinElementStatement(GeneratedYangParser.YinElementStatementContext currentContext); | 461 | void exitYinElementStatement(GeneratedYangParser.YinElementStatementContext currentContext); |
| 524 | 462 | ||
| 525 | /** | 463 | /** |
| 526 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 464 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule identityStatement. |
| 527 | - * identityStatement. | ||
| 528 | * | 465 | * |
| 529 | * @param currentContext current context in the parsed tree | 466 | * @param currentContext current context in the parsed tree |
| 530 | */ | 467 | */ |
| 531 | void enterIdentityStatement(GeneratedYangParser.IdentityStatementContext currentContext); | 468 | void enterIdentityStatement(GeneratedYangParser.IdentityStatementContext currentContext); |
| 532 | 469 | ||
| 533 | /** | 470 | /** |
| 534 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 471 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule identityStatement. |
| 535 | - * identityStatement. | ||
| 536 | * | 472 | * |
| 537 | * @param currentContext current context in the parsed tree | 473 | * @param currentContext current context in the parsed tree |
| 538 | */ | 474 | */ |
| 539 | void exitIdentityStatement(GeneratedYangParser.IdentityStatementContext currentContext); | 475 | void exitIdentityStatement(GeneratedYangParser.IdentityStatementContext currentContext); |
| 540 | 476 | ||
| 541 | /** | 477 | /** |
| 542 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 478 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule identityBody. |
| 543 | - * identityBody. | ||
| 544 | * | 479 | * |
| 545 | * @param currentContext current context in the parsed tree | 480 | * @param currentContext current context in the parsed tree |
| 546 | */ | 481 | */ |
| 547 | void enterIdentityBody(GeneratedYangParser.IdentityBodyContext currentContext); | 482 | void enterIdentityBody(GeneratedYangParser.IdentityBodyContext currentContext); |
| 548 | 483 | ||
| 549 | /** | 484 | /** |
| 550 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 485 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule identityBody. |
| 551 | - * identityBody. | ||
| 552 | * | 486 | * |
| 553 | * @param currentContext current context in the parsed tree | 487 | * @param currentContext current context in the parsed tree |
| 554 | */ | 488 | */ |
| 555 | void exitIdentityBody(GeneratedYangParser.IdentityBodyContext currentContext); | 489 | void exitIdentityBody(GeneratedYangParser.IdentityBodyContext currentContext); |
| 556 | 490 | ||
| 557 | /** | 491 | /** |
| 558 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 492 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule baseStatement. |
| 559 | - * baseStatement. | ||
| 560 | * | 493 | * |
| 561 | * @param currentContext current context in the parsed tree | 494 | * @param currentContext current context in the parsed tree |
| 562 | */ | 495 | */ |
| 563 | void enterBaseStatement(GeneratedYangParser.BaseStatementContext currentContext); | 496 | void enterBaseStatement(GeneratedYangParser.BaseStatementContext currentContext); |
| 564 | 497 | ||
| 565 | /** | 498 | /** |
| 566 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 499 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule baseStatement. |
| 567 | - * baseStatement. | ||
| 568 | * | 500 | * |
| 569 | * @param currentContext current context in the parsed tree | 501 | * @param currentContext current context in the parsed tree |
| 570 | */ | 502 | */ |
| 571 | void exitBaseStatement(GeneratedYangParser.BaseStatementContext currentContext); | 503 | void exitBaseStatement(GeneratedYangParser.BaseStatementContext currentContext); |
| 572 | 504 | ||
| 573 | /** | 505 | /** |
| 574 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 506 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule featureStatement. |
| 575 | - * featureStatement. | ||
| 576 | * | 507 | * |
| 577 | * @param currentContext current context in the parsed tree | 508 | * @param currentContext current context in the parsed tree |
| 578 | */ | 509 | */ |
| 579 | void enterFeatureStatement(GeneratedYangParser.FeatureStatementContext currentContext); | 510 | void enterFeatureStatement(GeneratedYangParser.FeatureStatementContext currentContext); |
| 580 | 511 | ||
| 581 | /** | 512 | /** |
| 582 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 513 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule featureStatement. |
| 583 | - * featureStatement. | ||
| 584 | * | 514 | * |
| 585 | * @param currentContext current context in the parsed tree | 515 | * @param currentContext current context in the parsed tree |
| 586 | */ | 516 | */ |
| 587 | void exitFeatureStatement(GeneratedYangParser.FeatureStatementContext currentContext); | 517 | void exitFeatureStatement(GeneratedYangParser.FeatureStatementContext currentContext); |
| 588 | 518 | ||
| 589 | /** | 519 | /** |
| 590 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 520 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule featureBody. |
| 591 | - * featureBody. | ||
| 592 | * | 521 | * |
| 593 | * @param currentContext current context in the parsed tree | 522 | * @param currentContext current context in the parsed tree |
| 594 | */ | 523 | */ |
| 595 | void enterFeatureBody(GeneratedYangParser.FeatureBodyContext currentContext); | 524 | void enterFeatureBody(GeneratedYangParser.FeatureBodyContext currentContext); |
| 596 | 525 | ||
| 597 | /** | 526 | /** |
| 598 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 527 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule featureBody. |
| 599 | - * featureBody. | ||
| 600 | * | 528 | * |
| 601 | * @param currentContext current context in the parsed tree | 529 | * @param currentContext current context in the parsed tree |
| 602 | */ | 530 | */ |
| 603 | void exitFeatureBody(GeneratedYangParser.FeatureBodyContext currentContext); | 531 | void exitFeatureBody(GeneratedYangParser.FeatureBodyContext currentContext); |
| 604 | 532 | ||
| 605 | /** | 533 | /** |
| 606 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 534 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule dataDefStatement. |
| 607 | - * dataDefStatement. | ||
| 608 | * | 535 | * |
| 609 | * @param currentContext current context in the parsed tree | 536 | * @param currentContext current context in the parsed tree |
| 610 | */ | 537 | */ |
| 611 | void enterDataDefStatement(GeneratedYangParser.DataDefStatementContext currentContext); | 538 | void enterDataDefStatement(GeneratedYangParser.DataDefStatementContext currentContext); |
| 612 | 539 | ||
| 613 | /** | 540 | /** |
| 614 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 541 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule dataDefStatement. |
| 615 | - * dataDefStatement. | ||
| 616 | * | 542 | * |
| 617 | * @param currentContext current context in the parsed tree | 543 | * @param currentContext current context in the parsed tree |
| 618 | */ | 544 | */ |
| 619 | void exitDataDefStatement(GeneratedYangParser.DataDefStatementContext currentContext); | 545 | void exitDataDefStatement(GeneratedYangParser.DataDefStatementContext currentContext); |
| 620 | 546 | ||
| 621 | /** | 547 | /** |
| 622 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 548 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule ifFeatureStatement. |
| 623 | - * ifFeatureStatement. | ||
| 624 | * | 549 | * |
| 625 | * @param currentContext current context in the parsed tree | 550 | * @param currentContext current context in the parsed tree |
| 626 | */ | 551 | */ |
| 627 | void enterIfFeatureStatement(GeneratedYangParser.IfFeatureStatementContext currentContext); | 552 | void enterIfFeatureStatement(GeneratedYangParser.IfFeatureStatementContext currentContext); |
| 628 | 553 | ||
| 629 | /** | 554 | /** |
| 630 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 555 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule ifFeatureStatement. |
| 631 | - * ifFeatureStatement. | ||
| 632 | * | 556 | * |
| 633 | * @param currentContext current context in the parsed tree | 557 | * @param currentContext current context in the parsed tree |
| 634 | */ | 558 | */ |
| 635 | void exitIfFeatureStatement(GeneratedYangParser.IfFeatureStatementContext currentContext); | 559 | void exitIfFeatureStatement(GeneratedYangParser.IfFeatureStatementContext currentContext); |
| 636 | 560 | ||
| 637 | /** | 561 | /** |
| 638 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 562 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule unitsStatement. |
| 639 | - * unitsStatement. | ||
| 640 | * | 563 | * |
| 641 | * @param currentContext current context in the parsed tree | 564 | * @param currentContext current context in the parsed tree |
| 642 | */ | 565 | */ |
| 643 | void enterUnitsStatement(GeneratedYangParser.UnitsStatementContext currentContext); | 566 | void enterUnitsStatement(GeneratedYangParser.UnitsStatementContext currentContext); |
| 644 | 567 | ||
| 645 | /** | 568 | /** |
| 646 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 569 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule unitsStatement. |
| 647 | - * unitsStatement. | ||
| 648 | * | 570 | * |
| 649 | * @param currentContext current context in the parsed tree | 571 | * @param currentContext current context in the parsed tree |
| 650 | */ | 572 | */ |
| 651 | void exitUnitsStatement(GeneratedYangParser.UnitsStatementContext currentContext); | 573 | void exitUnitsStatement(GeneratedYangParser.UnitsStatementContext currentContext); |
| 652 | 574 | ||
| 653 | /** | 575 | /** |
| 654 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 576 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule typedefStatement. |
| 655 | - * typedefStatement. | ||
| 656 | * | 577 | * |
| 657 | * @param currentContext current context in the parsed tree | 578 | * @param currentContext current context in the parsed tree |
| 658 | */ | 579 | */ |
| 659 | void enterTypedefStatement(GeneratedYangParser.TypedefStatementContext currentContext); | 580 | void enterTypedefStatement(GeneratedYangParser.TypedefStatementContext currentContext); |
| 660 | 581 | ||
| 661 | /** | 582 | /** |
| 662 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 583 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule typedefStatement. |
| 663 | - * typedefStatement. | ||
| 664 | * | 584 | * |
| 665 | * @param currentContext current context in the parsed tree | 585 | * @param currentContext current context in the parsed tree |
| 666 | */ | 586 | */ |
| 667 | void exitTypedefStatement(GeneratedYangParser.TypedefStatementContext currentContext); | 587 | void exitTypedefStatement(GeneratedYangParser.TypedefStatementContext currentContext); |
| 668 | 588 | ||
| 669 | /** | 589 | /** |
| 670 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 590 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule typeStatement. |
| 671 | - * typeStatement. | ||
| 672 | * | 591 | * |
| 673 | * @param currentContext current context in the parsed tree | 592 | * @param currentContext current context in the parsed tree |
| 674 | */ | 593 | */ |
| 675 | void enterTypeStatement(GeneratedYangParser.TypeStatementContext currentContext); | 594 | void enterTypeStatement(GeneratedYangParser.TypeStatementContext currentContext); |
| 676 | 595 | ||
| 677 | /** | 596 | /** |
| 678 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 597 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule typeStatement. |
| 679 | - * typeStatement. | ||
| 680 | * | 598 | * |
| 681 | * @param currentContext current context in the parsed tree | 599 | * @param currentContext current context in the parsed tree |
| 682 | */ | 600 | */ |
| 683 | void exitTypeStatement(GeneratedYangParser.TypeStatementContext currentContext); | 601 | void exitTypeStatement(GeneratedYangParser.TypeStatementContext currentContext); |
| 684 | 602 | ||
| 685 | /** | 603 | /** |
| 686 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 604 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule typeBodyStatements. |
| 687 | - * typeBodyStatements. | ||
| 688 | * | 605 | * |
| 689 | * @param currentContext current context in the parsed tree | 606 | * @param currentContext current context in the parsed tree |
| 690 | */ | 607 | */ |
| 691 | void enterTypeBodyStatements(GeneratedYangParser.TypeBodyStatementsContext currentContext); | 608 | void enterTypeBodyStatements(GeneratedYangParser.TypeBodyStatementsContext currentContext); |
| 692 | 609 | ||
| 693 | /** | 610 | /** |
| 694 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 611 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule typeBodyStatements. |
| 695 | - * typeBodyStatements. | ||
| 696 | * | 612 | * |
| 697 | * @param currentContext current context in the parsed tree | 613 | * @param currentContext current context in the parsed tree |
| 698 | */ | 614 | */ |
| 699 | void exitTypeBodyStatements(GeneratedYangParser.TypeBodyStatementsContext currentContext); | 615 | void exitTypeBodyStatements(GeneratedYangParser.TypeBodyStatementsContext currentContext); |
| 700 | 616 | ||
| 701 | /** | 617 | /** |
| 702 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 618 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule numericalRestrictions. |
| 703 | - * numericalRestrictions. | ||
| 704 | * | 619 | * |
| 705 | * @param currentContext current context in the parsed tree | 620 | * @param currentContext current context in the parsed tree |
| 706 | */ | 621 | */ |
| 707 | void enterDecimal64Specification(GeneratedYangParser.Decimal64SpecificationContext currentContext); | 622 | void enterDecimal64Specification(GeneratedYangParser.Decimal64SpecificationContext currentContext); |
| 708 | 623 | ||
| 709 | /** | 624 | /** |
| 710 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 625 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule numericalRestrictions. |
| 711 | - * numericalRestrictions. | ||
| 712 | * | 626 | * |
| 713 | * @param currentContext current context in the parsed tree | 627 | * @param currentContext current context in the parsed tree |
| 714 | */ | 628 | */ |
| 715 | void exitDecimal64Specification(GeneratedYangParser.Decimal64SpecificationContext currentContext); | 629 | void exitDecimal64Specification(GeneratedYangParser.Decimal64SpecificationContext currentContext); |
| 716 | 630 | ||
| 717 | /** | 631 | /** |
| 718 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 632 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule numericalRestrictions. |
| 719 | - * numericalRestrictions. | ||
| 720 | * | 633 | * |
| 721 | * @param currentContext current context in the parsed tree | 634 | * @param currentContext current context in the parsed tree |
| 722 | */ | 635 | */ |
| 723 | void enterNumericalRestrictions(GeneratedYangParser.NumericalRestrictionsContext currentContext); | 636 | void enterNumericalRestrictions(GeneratedYangParser.NumericalRestrictionsContext currentContext); |
| 724 | 637 | ||
| 725 | /** | 638 | /** |
| 726 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 639 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule numericalRestrictions. |
| 727 | - * numericalRestrictions. | ||
| 728 | * | 640 | * |
| 729 | * @param currentContext current context in the parsed tree | 641 | * @param currentContext current context in the parsed tree |
| 730 | */ | 642 | */ |
| 731 | void exitNumericalRestrictions(GeneratedYangParser.NumericalRestrictionsContext currentContext); | 643 | void exitNumericalRestrictions(GeneratedYangParser.NumericalRestrictionsContext currentContext); |
| 732 | 644 | ||
| 733 | /** | 645 | /** |
| 734 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 646 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule rangeStatement. |
| 735 | - * rangeStatement. | ||
| 736 | * | 647 | * |
| 737 | * @param currentContext current context in the parsed tree | 648 | * @param currentContext current context in the parsed tree |
| 738 | */ | 649 | */ |
| 739 | void enterRangeStatement(GeneratedYangParser.RangeStatementContext currentContext); | 650 | void enterRangeStatement(GeneratedYangParser.RangeStatementContext currentContext); |
| 740 | 651 | ||
| 741 | /** | 652 | /** |
| 742 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 653 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule rangeStatement. |
| 743 | - * rangeStatement. | ||
| 744 | * | 654 | * |
| 745 | * @param currentContext current context in the parsed tree | 655 | * @param currentContext current context in the parsed tree |
| 746 | */ | 656 | */ |
| 747 | void exitRangeStatement(GeneratedYangParser.RangeStatementContext currentContext); | 657 | void exitRangeStatement(GeneratedYangParser.RangeStatementContext currentContext); |
| 748 | 658 | ||
| 749 | /** | 659 | /** |
| 750 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 660 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule commonStatements. |
| 751 | - * commonStatements. | ||
| 752 | * | 661 | * |
| 753 | * @param currentContext current context in the parsed tree | 662 | * @param currentContext current context in the parsed tree |
| 754 | */ | 663 | */ |
| 755 | void enterCommonStatements(GeneratedYangParser.CommonStatementsContext currentContext); | 664 | void enterCommonStatements(GeneratedYangParser.CommonStatementsContext currentContext); |
| 756 | 665 | ||
| 757 | /** | 666 | /** |
| 758 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 667 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule commonStatements. |
| 759 | - * commonStatements. | ||
| 760 | * | 668 | * |
| 761 | * @param currentContext current context in the parsed tree | 669 | * @param currentContext current context in the parsed tree |
| 762 | */ | 670 | */ |
| 763 | void exitCommonStatements(GeneratedYangParser.CommonStatementsContext currentContext); | 671 | void exitCommonStatements(GeneratedYangParser.CommonStatementsContext currentContext); |
| 764 | 672 | ||
| 765 | /** | 673 | /** |
| 766 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 674 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule stringRestrictions. |
| 767 | - * stringRestrictions. | ||
| 768 | * | 675 | * |
| 769 | * @param currentContext current context in the parsed tree | 676 | * @param currentContext current context in the parsed tree |
| 770 | */ | 677 | */ |
| 771 | void enterStringRestrictions(GeneratedYangParser.StringRestrictionsContext currentContext); | 678 | void enterStringRestrictions(GeneratedYangParser.StringRestrictionsContext currentContext); |
| 772 | 679 | ||
| 773 | /** | 680 | /** |
| 774 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 681 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule stringRestrictions. |
| 775 | - * stringRestrictions. | ||
| 776 | * | 682 | * |
| 777 | * @param currentContext current context in the parsed tree | 683 | * @param currentContext current context in the parsed tree |
| 778 | */ | 684 | */ |
| 779 | void exitStringRestrictions(GeneratedYangParser.StringRestrictionsContext currentContext); | 685 | void exitStringRestrictions(GeneratedYangParser.StringRestrictionsContext currentContext); |
| 780 | 686 | ||
| 781 | /** | 687 | /** |
| 782 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 688 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule lengthStatement. |
| 783 | - * lengthStatement. | ||
| 784 | * | 689 | * |
| 785 | * @param currentContext current context in the parsed tree | 690 | * @param currentContext current context in the parsed tree |
| 786 | */ | 691 | */ |
| 787 | void enterLengthStatement(GeneratedYangParser.LengthStatementContext currentContext); | 692 | void enterLengthStatement(GeneratedYangParser.LengthStatementContext currentContext); |
| 788 | 693 | ||
| 789 | /** | 694 | /** |
| 790 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 695 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule lengthStatement. |
| 791 | - * lengthStatement. | ||
| 792 | * | 696 | * |
| 793 | * @param currentContext current context in the parsed tree | 697 | * @param currentContext current context in the parsed tree |
| 794 | */ | 698 | */ |
| 795 | void exitLengthStatement(GeneratedYangParser.LengthStatementContext currentContext); | 699 | void exitLengthStatement(GeneratedYangParser.LengthStatementContext currentContext); |
| 796 | 700 | ||
| 797 | /** | 701 | /** |
| 798 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 702 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule patternStatement. |
| 799 | - * patternStatement. | ||
| 800 | * | 703 | * |
| 801 | * @param currentContext current context in the parsed tree | 704 | * @param currentContext current context in the parsed tree |
| 802 | */ | 705 | */ |
| 803 | void enterPatternStatement(GeneratedYangParser.PatternStatementContext currentContext); | 706 | void enterPatternStatement(GeneratedYangParser.PatternStatementContext currentContext); |
| 804 | 707 | ||
| 805 | /** | 708 | /** |
| 806 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 709 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule patternStatement. |
| 807 | - * patternStatement. | ||
| 808 | * | 710 | * |
| 809 | * @param currentContext current context in the parsed tree | 711 | * @param currentContext current context in the parsed tree |
| 810 | */ | 712 | */ |
| 811 | void exitPatternStatement(GeneratedYangParser.PatternStatementContext currentContext); | 713 | void exitPatternStatement(GeneratedYangParser.PatternStatementContext currentContext); |
| 812 | 714 | ||
| 813 | /** | 715 | /** |
| 814 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 716 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule defaultStatement. |
| 815 | - * defaultStatement. | ||
| 816 | * | 717 | * |
| 817 | * @param currentContext current context in the parsed tree | 718 | * @param currentContext current context in the parsed tree |
| 818 | */ | 719 | */ |
| 819 | void enterDefaultStatement(GeneratedYangParser.DefaultStatementContext currentContext); | 720 | void enterDefaultStatement(GeneratedYangParser.DefaultStatementContext currentContext); |
| 820 | 721 | ||
| 821 | /** | 722 | /** |
| 822 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 723 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule defaultStatement. |
| 823 | - * defaultStatement. | ||
| 824 | * | 724 | * |
| 825 | * @param currentContext current context in the parsed tree | 725 | * @param currentContext current context in the parsed tree |
| 826 | */ | 726 | */ |
| 827 | void exitDefaultStatement(GeneratedYangParser.DefaultStatementContext currentContext); | 727 | void exitDefaultStatement(GeneratedYangParser.DefaultStatementContext currentContext); |
| 828 | 728 | ||
| 829 | /** | 729 | /** |
| 830 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 730 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule enumSpecification. |
| 831 | - * enumSpecification. | ||
| 832 | * | 731 | * |
| 833 | * @param currentContext current context in the parsed tree | 732 | * @param currentContext current context in the parsed tree |
| 834 | */ | 733 | */ |
| 835 | void enterEnumSpecification(GeneratedYangParser.EnumSpecificationContext currentContext); | 734 | void enterEnumSpecification(GeneratedYangParser.EnumSpecificationContext currentContext); |
| 836 | 735 | ||
| 837 | /** | 736 | /** |
| 838 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 737 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule enumSpecification. |
| 839 | - * enumSpecification. | ||
| 840 | * | 738 | * |
| 841 | * @param currentContext current context in the parsed tree | 739 | * @param currentContext current context in the parsed tree |
| 842 | */ | 740 | */ |
| 843 | void exitEnumSpecification(GeneratedYangParser.EnumSpecificationContext currentContext); | 741 | void exitEnumSpecification(GeneratedYangParser.EnumSpecificationContext currentContext); |
| 844 | 742 | ||
| 845 | /** | 743 | /** |
| 846 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 744 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule enumStatement. |
| 847 | - * enumStatement. | ||
| 848 | * | 745 | * |
| 849 | * @param currentContext current context in the parsed tree | 746 | * @param currentContext current context in the parsed tree |
| 850 | */ | 747 | */ |
| 851 | void enterEnumStatement(GeneratedYangParser.EnumStatementContext currentContext); | 748 | void enterEnumStatement(GeneratedYangParser.EnumStatementContext currentContext); |
| 852 | 749 | ||
| 853 | /** | 750 | /** |
| 854 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 751 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule enumStatement. |
| 855 | - * enumStatement. | ||
| 856 | * | 752 | * |
| 857 | * @param currentContext current context in the parsed tree | 753 | * @param currentContext current context in the parsed tree |
| 858 | */ | 754 | */ |
| 859 | void exitEnumStatement(GeneratedYangParser.EnumStatementContext currentContext); | 755 | void exitEnumStatement(GeneratedYangParser.EnumStatementContext currentContext); |
| 860 | 756 | ||
| 861 | /** | 757 | /** |
| 862 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 758 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule enumStatementBody. |
| 863 | - * enumStatementBody. | ||
| 864 | * | 759 | * |
| 865 | * @param currentContext current context in the parsed tree | 760 | * @param currentContext current context in the parsed tree |
| 866 | */ | 761 | */ |
| 867 | void enterEnumStatementBody(GeneratedYangParser.EnumStatementBodyContext currentContext); | 762 | void enterEnumStatementBody(GeneratedYangParser.EnumStatementBodyContext currentContext); |
| 868 | 763 | ||
| 869 | /** | 764 | /** |
| 870 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 765 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule enumStatementBody. |
| 871 | - * enumStatementBody. | ||
| 872 | * | 766 | * |
| 873 | * @param currentContext current context in the parsed tree | 767 | * @param currentContext current context in the parsed tree |
| 874 | */ | 768 | */ |
| 875 | void exitEnumStatementBody(GeneratedYangParser.EnumStatementBodyContext currentContext); | 769 | void exitEnumStatementBody(GeneratedYangParser.EnumStatementBodyContext currentContext); |
| 876 | 770 | ||
| 877 | /** | 771 | /** |
| 878 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 772 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule leafrefSpecification. |
| 879 | - * leafrefSpecification. | ||
| 880 | * | 773 | * |
| 881 | * @param currentContext current context in the parsed tree | 774 | * @param currentContext current context in the parsed tree |
| 882 | */ | 775 | */ |
| 883 | void enterLeafrefSpecification(GeneratedYangParser.LeafrefSpecificationContext currentContext); | 776 | void enterLeafrefSpecification(GeneratedYangParser.LeafrefSpecificationContext currentContext); |
| 884 | 777 | ||
| 885 | /** | 778 | /** |
| 886 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 779 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule leafrefSpecification. |
| 887 | - * leafrefSpecification. | ||
| 888 | * | 780 | * |
| 889 | * @param currentContext current context in the parsed tree | 781 | * @param currentContext current context in the parsed tree |
| 890 | */ | 782 | */ |
| 891 | void exitLeafrefSpecification(GeneratedYangParser.LeafrefSpecificationContext currentContext); | 783 | void exitLeafrefSpecification(GeneratedYangParser.LeafrefSpecificationContext currentContext); |
| 892 | 784 | ||
| 893 | /** | 785 | /** |
| 894 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 786 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule pathStatement. |
| 895 | - * pathStatement. | ||
| 896 | * | 787 | * |
| 897 | * @param currentContext current context in the parsed tree | 788 | * @param currentContext current context in the parsed tree |
| 898 | */ | 789 | */ |
| 899 | void enterPathStatement(GeneratedYangParser.PathStatementContext currentContext); | 790 | void enterPathStatement(GeneratedYangParser.PathStatementContext currentContext); |
| 900 | 791 | ||
| 901 | /** | 792 | /** |
| 902 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 793 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule pathStatement. |
| 903 | - * pathStatement. | ||
| 904 | * | 794 | * |
| 905 | * @param currentContext current context in the parsed tree | 795 | * @param currentContext current context in the parsed tree |
| 906 | */ | 796 | */ |
| 907 | void exitPathStatement(GeneratedYangParser.PathStatementContext currentContext); | 797 | void exitPathStatement(GeneratedYangParser.PathStatementContext currentContext); |
| 908 | 798 | ||
| 909 | /** | 799 | /** |
| 910 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 800 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule requireInstanceStatement. |
| 911 | - * requireInstanceStatement. | ||
| 912 | * | 801 | * |
| 913 | * @param currentContext current context in the parsed tree | 802 | * @param currentContext current context in the parsed tree |
| 914 | */ | 803 | */ |
| 915 | void enterRequireInstanceStatement(GeneratedYangParser.RequireInstanceStatementContext currentContext); | 804 | void enterRequireInstanceStatement(GeneratedYangParser.RequireInstanceStatementContext currentContext); |
| 916 | 805 | ||
| 917 | /** | 806 | /** |
| 918 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 807 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule requireInstanceStatement. |
| 919 | - * requireInstanceStatement. | ||
| 920 | * | 808 | * |
| 921 | * @param currentContext current context in the parsed tree | 809 | * @param currentContext current context in the parsed tree |
| 922 | */ | 810 | */ |
| 923 | void exitRequireInstanceStatement(GeneratedYangParser.RequireInstanceStatementContext currentContext); | 811 | void exitRequireInstanceStatement(GeneratedYangParser.RequireInstanceStatementContext currentContext); |
| 924 | 812 | ||
| 925 | /** | 813 | /** |
| 926 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 814 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule instanceIdentifierSpecification. |
| 927 | - * instanceIdentifierSpecification. | ||
| 928 | * | 815 | * |
| 929 | * @param currentContext current context in the parsed tree | 816 | * @param currentContext current context in the parsed tree |
| 930 | */ | 817 | */ |
| ... | @@ -932,384 +819,336 @@ public interface GeneratedYangListener extends ParseTreeListener { | ... | @@ -932,384 +819,336 @@ public interface GeneratedYangListener extends ParseTreeListener { |
| 932 | GeneratedYangParser.InstanceIdentifierSpecificationContext currentContext); | 819 | GeneratedYangParser.InstanceIdentifierSpecificationContext currentContext); |
| 933 | 820 | ||
| 934 | /** | 821 | /** |
| 935 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 822 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule instanceIdentifierSpecification. |
| 936 | - * instanceIdentifierSpecification. | ||
| 937 | * | 823 | * |
| 938 | * @param currentContext current context in the parsed tree | 824 | * @param currentContext current context in the parsed tree |
| 939 | */ | 825 | */ |
| 940 | void exitInstanceIdentifierSpecification(GeneratedYangParser.InstanceIdentifierSpecificationContext currentContext); | 826 | void exitInstanceIdentifierSpecification(GeneratedYangParser.InstanceIdentifierSpecificationContext currentContext); |
| 941 | 827 | ||
| 942 | /** | 828 | /** |
| 943 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 829 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule identityrefSpecification. |
| 944 | - * identityrefSpecification. | ||
| 945 | * | 830 | * |
| 946 | * @param currentContext current context in the parsed tree | 831 | * @param currentContext current context in the parsed tree |
| 947 | */ | 832 | */ |
| 948 | void enterIdentityrefSpecification(GeneratedYangParser.IdentityrefSpecificationContext currentContext); | 833 | void enterIdentityrefSpecification(GeneratedYangParser.IdentityrefSpecificationContext currentContext); |
| 949 | 834 | ||
| 950 | /** | 835 | /** |
| 951 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 836 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule identityrefSpecification. |
| 952 | - * identityrefSpecification. | ||
| 953 | * | 837 | * |
| 954 | * @param currentContext current context in the parsed tree | 838 | * @param currentContext current context in the parsed tree |
| 955 | */ | 839 | */ |
| 956 | void exitIdentityrefSpecification(GeneratedYangParser.IdentityrefSpecificationContext currentContext); | 840 | void exitIdentityrefSpecification(GeneratedYangParser.IdentityrefSpecificationContext currentContext); |
| 957 | 841 | ||
| 958 | /** | 842 | /** |
| 959 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 843 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule unionSpecification. |
| 960 | - * unionSpecification. | ||
| 961 | * | 844 | * |
| 962 | * @param currentContext current context in the parsed tree | 845 | * @param currentContext current context in the parsed tree |
| 963 | */ | 846 | */ |
| 964 | void enterUnionSpecification(GeneratedYangParser.UnionSpecificationContext currentContext); | 847 | void enterUnionSpecification(GeneratedYangParser.UnionSpecificationContext currentContext); |
| 965 | 848 | ||
| 966 | /** | 849 | /** |
| 967 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 850 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule unionSpecification. |
| 968 | - * unionSpecification. | ||
| 969 | * | 851 | * |
| 970 | * @param currentContext current context in the parsed tree | 852 | * @param currentContext current context in the parsed tree |
| 971 | */ | 853 | */ |
| 972 | void exitUnionSpecification(GeneratedYangParser.UnionSpecificationContext currentContext); | 854 | void exitUnionSpecification(GeneratedYangParser.UnionSpecificationContext currentContext); |
| 973 | 855 | ||
| 974 | /** | 856 | /** |
| 975 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 857 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule bitsSpecification. |
| 976 | - * bitsSpecification. | ||
| 977 | * | 858 | * |
| 978 | * @param currentContext current context in the parsed tree | 859 | * @param currentContext current context in the parsed tree |
| 979 | */ | 860 | */ |
| 980 | void enterBitsSpecification(GeneratedYangParser.BitsSpecificationContext currentContext); | 861 | void enterBitsSpecification(GeneratedYangParser.BitsSpecificationContext currentContext); |
| 981 | 862 | ||
| 982 | /** | 863 | /** |
| 983 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 864 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule bitsSpecification. |
| 984 | - * bitsSpecification. | ||
| 985 | * | 865 | * |
| 986 | * @param currentContext current context in the parsed tree | 866 | * @param currentContext current context in the parsed tree |
| 987 | */ | 867 | */ |
| 988 | void exitBitsSpecification(GeneratedYangParser.BitsSpecificationContext currentContext); | 868 | void exitBitsSpecification(GeneratedYangParser.BitsSpecificationContext currentContext); |
| 989 | 869 | ||
| 990 | /** | 870 | /** |
| 991 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 871 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule bitStatement. |
| 992 | - * bitStatement. | ||
| 993 | * | 872 | * |
| 994 | * @param currentContext current context in the parsed tree | 873 | * @param currentContext current context in the parsed tree |
| 995 | */ | 874 | */ |
| 996 | void enterBitStatement(GeneratedYangParser.BitStatementContext currentContext); | 875 | void enterBitStatement(GeneratedYangParser.BitStatementContext currentContext); |
| 997 | 876 | ||
| 998 | /** | 877 | /** |
| 999 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 878 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule bitStatement. |
| 1000 | - * bitStatement. | ||
| 1001 | * | 879 | * |
| 1002 | * @param currentContext current context in the parsed tree | 880 | * @param currentContext current context in the parsed tree |
| 1003 | */ | 881 | */ |
| 1004 | void exitBitStatement(GeneratedYangParser.BitStatementContext currentContext); | 882 | void exitBitStatement(GeneratedYangParser.BitStatementContext currentContext); |
| 1005 | 883 | ||
| 1006 | /** | 884 | /** |
| 1007 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 885 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule bitBodyStatement. |
| 1008 | - * bitBodyStatement. | ||
| 1009 | * | 886 | * |
| 1010 | * @param currentContext current context in the parsed tree | 887 | * @param currentContext current context in the parsed tree |
| 1011 | */ | 888 | */ |
| 1012 | void enterBitBodyStatement(GeneratedYangParser.BitBodyStatementContext currentContext); | 889 | void enterBitBodyStatement(GeneratedYangParser.BitBodyStatementContext currentContext); |
| 1013 | 890 | ||
| 1014 | /** | 891 | /** |
| 1015 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 892 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule bitBodyStatement. |
| 1016 | - * bitBodyStatement. | ||
| 1017 | * | 893 | * |
| 1018 | * @param currentContext current context in the parsed tree | 894 | * @param currentContext current context in the parsed tree |
| 1019 | */ | 895 | */ |
| 1020 | void exitBitBodyStatement(GeneratedYangParser.BitBodyStatementContext currentContext); | 896 | void exitBitBodyStatement(GeneratedYangParser.BitBodyStatementContext currentContext); |
| 1021 | 897 | ||
| 1022 | /** | 898 | /** |
| 1023 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 899 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule positionStatement. |
| 1024 | - * positionStatement. | ||
| 1025 | * | 900 | * |
| 1026 | * @param currentContext current context in the parsed tree | 901 | * @param currentContext current context in the parsed tree |
| 1027 | */ | 902 | */ |
| 1028 | void enterPositionStatement(GeneratedYangParser.PositionStatementContext currentContext); | 903 | void enterPositionStatement(GeneratedYangParser.PositionStatementContext currentContext); |
| 1029 | 904 | ||
| 1030 | /** | 905 | /** |
| 1031 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 906 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule positionStatement. |
| 1032 | - * positionStatement. | ||
| 1033 | * | 907 | * |
| 1034 | * @param currentContext current context in the parsed tree | 908 | * @param currentContext current context in the parsed tree |
| 1035 | */ | 909 | */ |
| 1036 | void exitPositionStatement(GeneratedYangParser.PositionStatementContext currentContext); | 910 | void exitPositionStatement(GeneratedYangParser.PositionStatementContext currentContext); |
| 1037 | 911 | ||
| 1038 | /** | 912 | /** |
| 1039 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 913 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule statusStatement. |
| 1040 | - * statusStatement. | ||
| 1041 | * | 914 | * |
| 1042 | * @param currentContext current context in the parsed tree | 915 | * @param currentContext current context in the parsed tree |
| 1043 | */ | 916 | */ |
| 1044 | void enterStatusStatement(GeneratedYangParser.StatusStatementContext currentContext); | 917 | void enterStatusStatement(GeneratedYangParser.StatusStatementContext currentContext); |
| 1045 | 918 | ||
| 1046 | /** | 919 | /** |
| 1047 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 920 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule statusStatement. |
| 1048 | - * statusStatement. | ||
| 1049 | * | 921 | * |
| 1050 | * @param currentContext current context in the parsed tree | 922 | * @param currentContext current context in the parsed tree |
| 1051 | */ | 923 | */ |
| 1052 | void exitStatusStatement(GeneratedYangParser.StatusStatementContext currentContext); | 924 | void exitStatusStatement(GeneratedYangParser.StatusStatementContext currentContext); |
| 1053 | 925 | ||
| 1054 | /** | 926 | /** |
| 1055 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 927 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule configStatement. |
| 1056 | - * configStatement. | ||
| 1057 | * | 928 | * |
| 1058 | * @param currentContext current context in the parsed tree | 929 | * @param currentContext current context in the parsed tree |
| 1059 | */ | 930 | */ |
| 1060 | void enterConfigStatement(GeneratedYangParser.ConfigStatementContext currentContext); | 931 | void enterConfigStatement(GeneratedYangParser.ConfigStatementContext currentContext); |
| 1061 | 932 | ||
| 1062 | /** | 933 | /** |
| 1063 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 934 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule configStatement. |
| 1064 | - * configStatement. | ||
| 1065 | * | 935 | * |
| 1066 | * @param currentContext current context in the parsed tree | 936 | * @param currentContext current context in the parsed tree |
| 1067 | */ | 937 | */ |
| 1068 | void exitConfigStatement(GeneratedYangParser.ConfigStatementContext currentContext); | 938 | void exitConfigStatement(GeneratedYangParser.ConfigStatementContext currentContext); |
| 1069 | 939 | ||
| 1070 | /** | 940 | /** |
| 1071 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 941 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule mandatoryStatement. |
| 1072 | - * mandatoryStatement. | ||
| 1073 | * | 942 | * |
| 1074 | * @param currentContext current context in the parsed tree | 943 | * @param currentContext current context in the parsed tree |
| 1075 | */ | 944 | */ |
| 1076 | void enterMandatoryStatement(GeneratedYangParser.MandatoryStatementContext currentContext); | 945 | void enterMandatoryStatement(GeneratedYangParser.MandatoryStatementContext currentContext); |
| 1077 | 946 | ||
| 1078 | /** | 947 | /** |
| 1079 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 948 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule mandatoryStatement. |
| 1080 | - * mandatoryStatement. | ||
| 1081 | * | 949 | * |
| 1082 | * @param currentContext current context in the parsed tree | 950 | * @param currentContext current context in the parsed tree |
| 1083 | */ | 951 | */ |
| 1084 | void exitMandatoryStatement(GeneratedYangParser.MandatoryStatementContext currentContext); | 952 | void exitMandatoryStatement(GeneratedYangParser.MandatoryStatementContext currentContext); |
| 1085 | 953 | ||
| 1086 | /** | 954 | /** |
| 1087 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 955 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule presenceStatement. |
| 1088 | - * presenceStatement. | ||
| 1089 | * | 956 | * |
| 1090 | * @param currentContext current context in the parsed tree | 957 | * @param currentContext current context in the parsed tree |
| 1091 | */ | 958 | */ |
| 1092 | void enterPresenceStatement(GeneratedYangParser.PresenceStatementContext currentContext); | 959 | void enterPresenceStatement(GeneratedYangParser.PresenceStatementContext currentContext); |
| 1093 | 960 | ||
| 1094 | /** | 961 | /** |
| 1095 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 962 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule presenceStatement. |
| 1096 | - * presenceStatement. | ||
| 1097 | * | 963 | * |
| 1098 | * @param currentContext current context in the parsed tree | 964 | * @param currentContext current context in the parsed tree |
| 1099 | */ | 965 | */ |
| 1100 | void exitPresenceStatement(GeneratedYangParser.PresenceStatementContext currentContext); | 966 | void exitPresenceStatement(GeneratedYangParser.PresenceStatementContext currentContext); |
| 1101 | 967 | ||
| 1102 | /** | 968 | /** |
| 1103 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 969 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule orderedByStatement. |
| 1104 | - * orderedByStatement. | ||
| 1105 | * | 970 | * |
| 1106 | * @param currentContext current context in the parsed tree | 971 | * @param currentContext current context in the parsed tree |
| 1107 | */ | 972 | */ |
| 1108 | void enterOrderedByStatement(GeneratedYangParser.OrderedByStatementContext currentContext); | 973 | void enterOrderedByStatement(GeneratedYangParser.OrderedByStatementContext currentContext); |
| 1109 | 974 | ||
| 1110 | /** | 975 | /** |
| 1111 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 976 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule orderedByStatement. |
| 1112 | - * orderedByStatement. | ||
| 1113 | * | 977 | * |
| 1114 | * @param currentContext current context in the parsed tree | 978 | * @param currentContext current context in the parsed tree |
| 1115 | */ | 979 | */ |
| 1116 | void exitOrderedByStatement(GeneratedYangParser.OrderedByStatementContext currentContext); | 980 | void exitOrderedByStatement(GeneratedYangParser.OrderedByStatementContext currentContext); |
| 1117 | 981 | ||
| 1118 | /** | 982 | /** |
| 1119 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 983 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule mustStatement. |
| 1120 | - * mustStatement. | ||
| 1121 | * | 984 | * |
| 1122 | * @param currentContext current context in the parsed tree | 985 | * @param currentContext current context in the parsed tree |
| 1123 | */ | 986 | */ |
| 1124 | void enterMustStatement(GeneratedYangParser.MustStatementContext currentContext); | 987 | void enterMustStatement(GeneratedYangParser.MustStatementContext currentContext); |
| 1125 | 988 | ||
| 1126 | /** | 989 | /** |
| 1127 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 990 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule mustStatement. |
| 1128 | - * mustStatement. | ||
| 1129 | * | 991 | * |
| 1130 | * @param currentContext current context in the parsed tree | 992 | * @param currentContext current context in the parsed tree |
| 1131 | */ | 993 | */ |
| 1132 | void exitMustStatement(GeneratedYangParser.MustStatementContext currentContext); | 994 | void exitMustStatement(GeneratedYangParser.MustStatementContext currentContext); |
| 1133 | 995 | ||
| 1134 | /** | 996 | /** |
| 1135 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 997 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule errorMessageStatement. |
| 1136 | - * errorMessageStatement. | ||
| 1137 | * | 998 | * |
| 1138 | * @param currentContext current context in the parsed tree | 999 | * @param currentContext current context in the parsed tree |
| 1139 | */ | 1000 | */ |
| 1140 | void enterErrorMessageStatement(GeneratedYangParser.ErrorMessageStatementContext currentContext); | 1001 | void enterErrorMessageStatement(GeneratedYangParser.ErrorMessageStatementContext currentContext); |
| 1141 | 1002 | ||
| 1142 | /** | 1003 | /** |
| 1143 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1004 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule errorMessageStatement. |
| 1144 | - * errorMessageStatement. | ||
| 1145 | * | 1005 | * |
| 1146 | * @param currentContext current context in the parsed tree | 1006 | * @param currentContext current context in the parsed tree |
| 1147 | */ | 1007 | */ |
| 1148 | void exitErrorMessageStatement(GeneratedYangParser.ErrorMessageStatementContext currentContext); | 1008 | void exitErrorMessageStatement(GeneratedYangParser.ErrorMessageStatementContext currentContext); |
| 1149 | 1009 | ||
| 1150 | /** | 1010 | /** |
| 1151 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1011 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule errorAppTagStatement. |
| 1152 | - * errorAppTagStatement. | ||
| 1153 | * | 1012 | * |
| 1154 | * @param currentContext current context in the parsed tree | 1013 | * @param currentContext current context in the parsed tree |
| 1155 | */ | 1014 | */ |
| 1156 | void enterErrorAppTagStatement(GeneratedYangParser.ErrorAppTagStatementContext currentContext); | 1015 | void enterErrorAppTagStatement(GeneratedYangParser.ErrorAppTagStatementContext currentContext); |
| 1157 | 1016 | ||
| 1158 | /** | 1017 | /** |
| 1159 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1018 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule errorAppTagStatement. |
| 1160 | - * errorAppTagStatement. | ||
| 1161 | * | 1019 | * |
| 1162 | * @param currentContext current context in the parsed tree | 1020 | * @param currentContext current context in the parsed tree |
| 1163 | */ | 1021 | */ |
| 1164 | void exitErrorAppTagStatement(GeneratedYangParser.ErrorAppTagStatementContext currentContext); | 1022 | void exitErrorAppTagStatement(GeneratedYangParser.ErrorAppTagStatementContext currentContext); |
| 1165 | 1023 | ||
| 1166 | /** | 1024 | /** |
| 1167 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1025 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule minElementsStatement. |
| 1168 | - * minElementsStatement. | ||
| 1169 | * | 1026 | * |
| 1170 | * @param currentContext current context in the parsed tree | 1027 | * @param currentContext current context in the parsed tree |
| 1171 | */ | 1028 | */ |
| 1172 | void enterMinElementsStatement(GeneratedYangParser.MinElementsStatementContext currentContext); | 1029 | void enterMinElementsStatement(GeneratedYangParser.MinElementsStatementContext currentContext); |
| 1173 | 1030 | ||
| 1174 | /** | 1031 | /** |
| 1175 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1032 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule minElementsStatement. |
| 1176 | - * minElementsStatement. | ||
| 1177 | * | 1033 | * |
| 1178 | * @param currentContext current context in the parsed tree | 1034 | * @param currentContext current context in the parsed tree |
| 1179 | */ | 1035 | */ |
| 1180 | void exitMinElementsStatement(GeneratedYangParser.MinElementsStatementContext currentContext); | 1036 | void exitMinElementsStatement(GeneratedYangParser.MinElementsStatementContext currentContext); |
| 1181 | 1037 | ||
| 1182 | /** | 1038 | /** |
| 1183 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1039 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule maxElementsStatement. |
| 1184 | - * maxElementsStatement. | ||
| 1185 | * | 1040 | * |
| 1186 | * @param currentContext current context in the parsed tree | 1041 | * @param currentContext current context in the parsed tree |
| 1187 | */ | 1042 | */ |
| 1188 | void enterMaxElementsStatement(GeneratedYangParser.MaxElementsStatementContext currentContext); | 1043 | void enterMaxElementsStatement(GeneratedYangParser.MaxElementsStatementContext currentContext); |
| 1189 | 1044 | ||
| 1190 | /** | 1045 | /** |
| 1191 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1046 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule maxElementsStatement. |
| 1192 | - * maxElementsStatement. | ||
| 1193 | * | 1047 | * |
| 1194 | * @param currentContext current context in the parsed tree | 1048 | * @param currentContext current context in the parsed tree |
| 1195 | */ | 1049 | */ |
| 1196 | void exitMaxElementsStatement(GeneratedYangParser.MaxElementsStatementContext currentContext); | 1050 | void exitMaxElementsStatement(GeneratedYangParser.MaxElementsStatementContext currentContext); |
| 1197 | 1051 | ||
| 1198 | /** | 1052 | /** |
| 1199 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1053 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule valueStatement. |
| 1200 | - * valueStatement. | ||
| 1201 | * | 1054 | * |
| 1202 | * @param currentContext current context in the parsed tree | 1055 | * @param currentContext current context in the parsed tree |
| 1203 | */ | 1056 | */ |
| 1204 | void enterValueStatement(GeneratedYangParser.ValueStatementContext currentContext); | 1057 | void enterValueStatement(GeneratedYangParser.ValueStatementContext currentContext); |
| 1205 | 1058 | ||
| 1206 | /** | 1059 | /** |
| 1207 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1060 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule valueStatement. |
| 1208 | - * valueStatement. | ||
| 1209 | * | 1061 | * |
| 1210 | * @param currentContext current context in the parsed tree | 1062 | * @param currentContext current context in the parsed tree |
| 1211 | */ | 1063 | */ |
| 1212 | void exitValueStatement(GeneratedYangParser.ValueStatementContext currentContext); | 1064 | void exitValueStatement(GeneratedYangParser.ValueStatementContext currentContext); |
| 1213 | 1065 | ||
| 1214 | /** | 1066 | /** |
| 1215 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1067 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule groupingStatement. |
| 1216 | - * groupingStatement. | ||
| 1217 | * | 1068 | * |
| 1218 | * @param currentContext current context in the parsed tree | 1069 | * @param currentContext current context in the parsed tree |
| 1219 | */ | 1070 | */ |
| 1220 | void enterGroupingStatement(GeneratedYangParser.GroupingStatementContext currentContext); | 1071 | void enterGroupingStatement(GeneratedYangParser.GroupingStatementContext currentContext); |
| 1221 | 1072 | ||
| 1222 | /** | 1073 | /** |
| 1223 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1074 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule groupingStatement. |
| 1224 | - * groupingStatement. | ||
| 1225 | * | 1075 | * |
| 1226 | * @param currentContext current context in the parsed tree | 1076 | * @param currentContext current context in the parsed tree |
| 1227 | */ | 1077 | */ |
| 1228 | void exitGroupingStatement(GeneratedYangParser.GroupingStatementContext currentContext); | 1078 | void exitGroupingStatement(GeneratedYangParser.GroupingStatementContext currentContext); |
| 1229 | 1079 | ||
| 1230 | /** | 1080 | /** |
| 1231 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1081 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule containerStatement. |
| 1232 | - * containerStatement. | ||
| 1233 | * | 1082 | * |
| 1234 | * @param currentContext current context in the parsed tree | 1083 | * @param currentContext current context in the parsed tree |
| 1235 | */ | 1084 | */ |
| 1236 | void enterContainerStatement(GeneratedYangParser.ContainerStatementContext currentContext); | 1085 | void enterContainerStatement(GeneratedYangParser.ContainerStatementContext currentContext); |
| 1237 | 1086 | ||
| 1238 | /** | 1087 | /** |
| 1239 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1088 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule containerStatement. |
| 1240 | - * containerStatement. | ||
| 1241 | * | 1089 | * |
| 1242 | * @param currentContext current context in the parsed tree | 1090 | * @param currentContext current context in the parsed tree |
| 1243 | */ | 1091 | */ |
| 1244 | void exitContainerStatement(GeneratedYangParser.ContainerStatementContext currentContext); | 1092 | void exitContainerStatement(GeneratedYangParser.ContainerStatementContext currentContext); |
| 1245 | 1093 | ||
| 1246 | /** | 1094 | /** |
| 1247 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1095 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule leafStatement. |
| 1248 | - * leafStatement. | ||
| 1249 | * | 1096 | * |
| 1250 | * @param currentContext current context in the parsed tree | 1097 | * @param currentContext current context in the parsed tree |
| 1251 | */ | 1098 | */ |
| 1252 | void enterLeafStatement(GeneratedYangParser.LeafStatementContext currentContext); | 1099 | void enterLeafStatement(GeneratedYangParser.LeafStatementContext currentContext); |
| 1253 | 1100 | ||
| 1254 | /** | 1101 | /** |
| 1255 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1102 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule leafStatement. |
| 1256 | - * leafStatement. | ||
| 1257 | * | 1103 | * |
| 1258 | * @param currentContext current context in the parsed tree | 1104 | * @param currentContext current context in the parsed tree |
| 1259 | */ | 1105 | */ |
| 1260 | void exitLeafStatement(GeneratedYangParser.LeafStatementContext currentContext); | 1106 | void exitLeafStatement(GeneratedYangParser.LeafStatementContext currentContext); |
| 1261 | 1107 | ||
| 1262 | /** | 1108 | /** |
| 1263 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1109 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule leafListStatement. |
| 1264 | - * leafListStatement. | ||
| 1265 | * | 1110 | * |
| 1266 | * @param currentContext current context in the parsed tree | 1111 | * @param currentContext current context in the parsed tree |
| 1267 | */ | 1112 | */ |
| 1268 | void enterLeafListStatement(GeneratedYangParser.LeafListStatementContext currentContext); | 1113 | void enterLeafListStatement(GeneratedYangParser.LeafListStatementContext currentContext); |
| 1269 | 1114 | ||
| 1270 | /** | 1115 | /** |
| 1271 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1116 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule leafListStatement. |
| 1272 | - * leafListStatement. | ||
| 1273 | * | 1117 | * |
| 1274 | * @param currentContext current context in the parsed tree | 1118 | * @param currentContext current context in the parsed tree |
| 1275 | */ | 1119 | */ |
| 1276 | void exitLeafListStatement(GeneratedYangParser.LeafListStatementContext currentContext); | 1120 | void exitLeafListStatement(GeneratedYangParser.LeafListStatementContext currentContext); |
| 1277 | 1121 | ||
| 1278 | /** | 1122 | /** |
| 1279 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1123 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule listStatement. |
| 1280 | - * listStatement. | ||
| 1281 | * | 1124 | * |
| 1282 | * @param currentContext current context in the parsed tree | 1125 | * @param currentContext current context in the parsed tree |
| 1283 | */ | 1126 | */ |
| 1284 | void enterListStatement(GeneratedYangParser.ListStatementContext currentContext); | 1127 | void enterListStatement(GeneratedYangParser.ListStatementContext currentContext); |
| 1285 | 1128 | ||
| 1286 | /** | 1129 | /** |
| 1287 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1130 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule listStatement. |
| 1288 | - * listStatement. | ||
| 1289 | * | 1131 | * |
| 1290 | * @param currentContext current context in the parsed tree | 1132 | * @param currentContext current context in the parsed tree |
| 1291 | */ | 1133 | */ |
| 1292 | void exitListStatement(GeneratedYangParser.ListStatementContext currentContext); | 1134 | void exitListStatement(GeneratedYangParser.ListStatementContext currentContext); |
| 1293 | 1135 | ||
| 1294 | /** | 1136 | /** |
| 1295 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1137 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule keyStatement. |
| 1296 | - * keyStatement. | ||
| 1297 | * | 1138 | * |
| 1298 | * @param currentContext current context in the parsed tree | 1139 | * @param currentContext current context in the parsed tree |
| 1299 | */ | 1140 | */ |
| 1300 | void enterKeyStatement(GeneratedYangParser.KeyStatementContext currentContext); | 1141 | void enterKeyStatement(GeneratedYangParser.KeyStatementContext currentContext); |
| 1301 | 1142 | ||
| 1302 | /** | 1143 | /** |
| 1303 | - * Exits a parse tree produced by GeneratedYangParser for grammar rule | 1144 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule keyStatement. |
| 1304 | - * keyStatement. | ||
| 1305 | * | 1145 | * |
| 1306 | * @param currentContext current context in the parsed tree | 1146 | * @param currentContext current context in the parsed tree |
| 1307 | */ | 1147 | */ |
| 1308 | void exitKeyStatement(GeneratedYangParser.KeyStatementContext currentContext); | 1148 | void exitKeyStatement(GeneratedYangParser.KeyStatementContext currentContext); |
| 1309 | 1149 | ||
| 1310 | /** | 1150 | /** |
| 1311 | - * Enters a parse tree produced by GeneratedYangParser for grammar rule | 1151 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule uniqueStatement. |
| 1312 | - * uniqueStatement. | ||
| 1313 | * | 1152 | * |
| 1314 | * @param currentContext current context in the parsed tree | 1153 | * @param currentContext current context in the parsed tree |
| 1315 | */ | 1154 | */ |
| ... | @@ -1965,4 +1804,150 @@ public interface GeneratedYangListener extends ParseTreeListener { | ... | @@ -1965,4 +1804,150 @@ public interface GeneratedYangListener extends ParseTreeListener { |
| 1965 | * @param currentContext current context in the parsed tree | 1804 | * @param currentContext current context in the parsed tree |
| 1966 | */ | 1805 | */ |
| 1967 | void exitYangConstruct(GeneratedYangParser.YangConstructContext currentContext); | 1806 | void exitYangConstruct(GeneratedYangParser.YangConstructContext currentContext); |
| 1807 | + | ||
| 1808 | + /** | ||
| 1809 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule compiler annotation statement. | ||
| 1810 | + * | ||
| 1811 | + * @param currentContext current context in the parsed tree | ||
| 1812 | + */ | ||
| 1813 | + void enterCompilerAnnotationStatement(GeneratedYangParser.CompilerAnnotationStatementContext currentContext); | ||
| 1814 | + | ||
| 1815 | + /** | ||
| 1816 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule compiler annotation statement. | ||
| 1817 | + * | ||
| 1818 | + * @param currentContext current context in the parsed tree | ||
| 1819 | + */ | ||
| 1820 | + void exitCompilerAnnotationStatement(GeneratedYangParser.CompilerAnnotationStatementContext currentContext); | ||
| 1821 | + | ||
| 1822 | + /** | ||
| 1823 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule annotation statement. | ||
| 1824 | + * | ||
| 1825 | + * @param currentContext current context in the parsed tree | ||
| 1826 | + */ | ||
| 1827 | + void enterAnnotationStatement(GeneratedYangParser.AnnotationStatementContext currentContext); | ||
| 1828 | + | ||
| 1829 | + /** | ||
| 1830 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule annotation statement. | ||
| 1831 | + * | ||
| 1832 | + * @param currentContext current context in the parsed tree | ||
| 1833 | + */ | ||
| 1834 | + void exitAnnotationStatement(GeneratedYangParser.AnnotationStatementContext currentContext); | ||
| 1835 | + | ||
| 1836 | + /** | ||
| 1837 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule annotation type. | ||
| 1838 | + * | ||
| 1839 | + * @param currentContext current context in the parsed tree | ||
| 1840 | + */ | ||
| 1841 | + void enterAnnotationType(GeneratedYangParser.AnnotationTypeContext currentContext); | ||
| 1842 | + | ||
| 1843 | + /** | ||
| 1844 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule annotation type. | ||
| 1845 | + * | ||
| 1846 | + * @param currentContext current context in the parsed tree | ||
| 1847 | + */ | ||
| 1848 | + void exitAnnotationType(GeneratedYangParser.AnnotationTypeContext currentContext); | ||
| 1849 | + | ||
| 1850 | + /** | ||
| 1851 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule | ||
| 1852 | + * annotation parameter specification. | ||
| 1853 | + * | ||
| 1854 | + * @param currentContext current context in the parsed tree | ||
| 1855 | + */ | ||
| 1856 | + void enterAnnotationParameterSpecification(GeneratedYangParser.AnnotationParameterSpecificationContext | ||
| 1857 | + currentContext); | ||
| 1858 | + | ||
| 1859 | + /** | ||
| 1860 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule | ||
| 1861 | + * annotation parameter specification. | ||
| 1862 | + * | ||
| 1863 | + * @param currentContext current context in the parsed tree | ||
| 1864 | + */ | ||
| 1865 | + void exitAnnotationParameterSpecification(GeneratedYangParser.AnnotationParameterSpecificationContext | ||
| 1866 | + currentContext); | ||
| 1867 | + | ||
| 1868 | + /** | ||
| 1869 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule | ||
| 1870 | + * annotation parameter specification argument. | ||
| 1871 | + * | ||
| 1872 | + * @param currentContext current context in the parsed tree | ||
| 1873 | + */ | ||
| 1874 | + void enterAnnotationParameterSpecificationArg(GeneratedYangParser.AnnotationParameterSpecificationArgContext | ||
| 1875 | + currentContext); | ||
| 1876 | + | ||
| 1877 | + /** | ||
| 1878 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule | ||
| 1879 | + * annotation parameter specification argument. | ||
| 1880 | + * | ||
| 1881 | + * @param currentContext current context in the parsed tree | ||
| 1882 | + */ | ||
| 1883 | + void exitAnnotationParameterSpecificationArg(GeneratedYangParser.AnnotationParameterSpecificationArgContext | ||
| 1884 | + currentContext); | ||
| 1885 | + | ||
| 1886 | + /** | ||
| 1887 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule annotation parameter instance. | ||
| 1888 | + * | ||
| 1889 | + * @param currentContext current context in the parsed tree | ||
| 1890 | + */ | ||
| 1891 | + void enterAnnotationParaInstance(GeneratedYangParser.AnnotationParaInstanceContext | ||
| 1892 | + currentContext); | ||
| 1893 | + | ||
| 1894 | + /** | ||
| 1895 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule annotation parameter instance. | ||
| 1896 | + * | ||
| 1897 | + * @param currentContext current context in the parsed tree | ||
| 1898 | + */ | ||
| 1899 | + void exitAnnotationParaInstance(GeneratedYangParser.AnnotationParaInstanceContext | ||
| 1900 | + currentContext); | ||
| 1901 | + | ||
| 1902 | + /** | ||
| 1903 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule | ||
| 1904 | + * annotation parameter type identifier. | ||
| 1905 | + * | ||
| 1906 | + * @param currentContext current context in the parsed tree | ||
| 1907 | + */ | ||
| 1908 | + void enterAnnotationParaTypeIdentifier(GeneratedYangParser.AnnotationParaTypeIdentifierContext | ||
| 1909 | + currentContext); | ||
| 1910 | + | ||
| 1911 | + /** | ||
| 1912 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule | ||
| 1913 | + * annotation parameter type identifier. | ||
| 1914 | + * | ||
| 1915 | + * @param currentContext current context in the parsed tree | ||
| 1916 | + */ | ||
| 1917 | + void exitAnnotationParaTypeIdentifier(GeneratedYangParser.AnnotationParaTypeIdentifierContext | ||
| 1918 | + currentContext); | ||
| 1919 | + | ||
| 1920 | + /** | ||
| 1921 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule | ||
| 1922 | + * annotation parameter type value. | ||
| 1923 | + * | ||
| 1924 | + * @param currentContext current context in the parsed tree | ||
| 1925 | + */ | ||
| 1926 | + void enterAnnotationParaTypeValue(GeneratedYangParser.AnnotationParaTypeValueContext | ||
| 1927 | + currentContext); | ||
| 1928 | + | ||
| 1929 | + /** | ||
| 1930 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule | ||
| 1931 | + * annotation parameter type value. | ||
| 1932 | + * | ||
| 1933 | + * @param currentContext current context in the parsed tree | ||
| 1934 | + */ | ||
| 1935 | + void exitAnnotationParaTypeValue(GeneratedYangParser.AnnotationParaTypeValueContext | ||
| 1936 | + currentContext); | ||
| 1937 | + | ||
| 1938 | + /** | ||
| 1939 | + * Enters a parse tree produced by GeneratedYangParser for grammar rule annotation identifier. | ||
| 1940 | + * | ||
| 1941 | + * @param currentContext current context in the parsed tree | ||
| 1942 | + */ | ||
| 1943 | + void enterAnnotationIdentifier(GeneratedYangParser.AnnotationIdentifierContext | ||
| 1944 | + currentContext); | ||
| 1945 | + | ||
| 1946 | + /** | ||
| 1947 | + * Exits a parse tree produced by GeneratedYangParser for grammar rule annotation identifier. | ||
| 1948 | + * | ||
| 1949 | + * @param currentContext current context in the parsed tree | ||
| 1950 | + */ | ||
| 1951 | + void exitAnnotationIdentifier(GeneratedYangParser.AnnotationIdentifierContext | ||
| 1952 | + currentContext); | ||
| 1968 | } | 1953 | } | ... | ... |
| ... | @@ -1376,6 +1376,99 @@ public class TreeWalkListener implements GeneratedYangListener { | ... | @@ -1376,6 +1376,99 @@ public class TreeWalkListener implements GeneratedYangListener { |
| 1376 | } | 1376 | } |
| 1377 | 1377 | ||
| 1378 | @Override | 1378 | @Override |
| 1379 | + public void enterCompilerAnnotationStatement(GeneratedYangParser.CompilerAnnotationStatementContext ctx) { | ||
| 1380 | + // TODO: implement the method. | ||
| 1381 | + } | ||
| 1382 | + | ||
| 1383 | + @Override | ||
| 1384 | + public void exitCompilerAnnotationStatement(GeneratedYangParser.CompilerAnnotationStatementContext ctx) { | ||
| 1385 | + // TODO: implement the method. | ||
| 1386 | + } | ||
| 1387 | + | ||
| 1388 | + @Override | ||
| 1389 | + public void enterAnnotationStatement(GeneratedYangParser.AnnotationStatementContext ctx) { | ||
| 1390 | + // TODO: implement the method. | ||
| 1391 | + } | ||
| 1392 | + | ||
| 1393 | + @Override | ||
| 1394 | + public void exitAnnotationStatement(GeneratedYangParser.AnnotationStatementContext ctx) { | ||
| 1395 | + // TODO: implement the method. | ||
| 1396 | + } | ||
| 1397 | + | ||
| 1398 | + @Override | ||
| 1399 | + public void enterAnnotationType(GeneratedYangParser.AnnotationTypeContext ctx) { | ||
| 1400 | + // TODO: implement the method. | ||
| 1401 | + } | ||
| 1402 | + | ||
| 1403 | + @Override | ||
| 1404 | + public void exitAnnotationType(GeneratedYangParser.AnnotationTypeContext ctx) { | ||
| 1405 | + // TODO: implement the method. | ||
| 1406 | + } | ||
| 1407 | + | ||
| 1408 | + @Override | ||
| 1409 | + public void enterAnnotationParameterSpecification(GeneratedYangParser.AnnotationParameterSpecificationContext | ||
| 1410 | + ctx) { | ||
| 1411 | + // TODO: implement the method. | ||
| 1412 | + } | ||
| 1413 | + | ||
| 1414 | + @Override | ||
| 1415 | + public void exitAnnotationParameterSpecification(GeneratedYangParser.AnnotationParameterSpecificationContext ctx) { | ||
| 1416 | + // TODO: implement the method. | ||
| 1417 | + } | ||
| 1418 | + | ||
| 1419 | + @Override | ||
| 1420 | + public void enterAnnotationParameterSpecificationArg(GeneratedYangParser.AnnotationParameterSpecificationArgContext | ||
| 1421 | + ctx) { | ||
| 1422 | + // TODO: implement the method. | ||
| 1423 | + } | ||
| 1424 | + | ||
| 1425 | + @Override | ||
| 1426 | + public void exitAnnotationParameterSpecificationArg(GeneratedYangParser.AnnotationParameterSpecificationArgContext | ||
| 1427 | + ctx) { | ||
| 1428 | + // TODO: implement the method. | ||
| 1429 | + } | ||
| 1430 | + | ||
| 1431 | + @Override | ||
| 1432 | + public void enterAnnotationParaInstance(GeneratedYangParser.AnnotationParaInstanceContext ctx) { | ||
| 1433 | + // TODO: implement the method. | ||
| 1434 | + } | ||
| 1435 | + | ||
| 1436 | + @Override | ||
| 1437 | + public void exitAnnotationParaInstance(GeneratedYangParser.AnnotationParaInstanceContext ctx) { | ||
| 1438 | + // TODO: implement the method. | ||
| 1439 | + } | ||
| 1440 | + | ||
| 1441 | + @Override | ||
| 1442 | + public void enterAnnotationParaTypeIdentifier(GeneratedYangParser.AnnotationParaTypeIdentifierContext ctx) { | ||
| 1443 | + // TODO: implement the method. | ||
| 1444 | + } | ||
| 1445 | + | ||
| 1446 | + @Override | ||
| 1447 | + public void exitAnnotationParaTypeIdentifier(GeneratedYangParser.AnnotationParaTypeIdentifierContext ctx) { | ||
| 1448 | + // TODO: implement the method. | ||
| 1449 | + } | ||
| 1450 | + | ||
| 1451 | + @Override | ||
| 1452 | + public void enterAnnotationParaTypeValue(GeneratedYangParser.AnnotationParaTypeValueContext ctx) { | ||
| 1453 | + // TODO: implement the method. | ||
| 1454 | + } | ||
| 1455 | + | ||
| 1456 | + @Override | ||
| 1457 | + public void exitAnnotationParaTypeValue(GeneratedYangParser.AnnotationParaTypeValueContext ctx) { | ||
| 1458 | + // TODO: implement the method. | ||
| 1459 | + } | ||
| 1460 | + | ||
| 1461 | + @Override | ||
| 1462 | + public void enterAnnotationIdentifier(GeneratedYangParser.AnnotationIdentifierContext ctx) { | ||
| 1463 | + // TODO: implement the method. | ||
| 1464 | + } | ||
| 1465 | + | ||
| 1466 | + @Override | ||
| 1467 | + public void exitAnnotationIdentifier(GeneratedYangParser.AnnotationIdentifierContext ctx) { | ||
| 1468 | + // TODO: implement the method. | ||
| 1469 | + } | ||
| 1470 | + | ||
| 1471 | + @Override | ||
| 1379 | public void enterVersion(GeneratedYangParser.VersionContext ctx) { | 1472 | public void enterVersion(GeneratedYangParser.VersionContext ctx) { |
| 1380 | // do nothing. | 1473 | // do nothing. |
| 1381 | } | 1474 | } | ... | ... |
| ... | @@ -16,7 +16,6 @@ | ... | @@ -16,7 +16,6 @@ |
| 16 | 16 | ||
| 17 | package org.onosproject.yangutils.parser.impl.listeners; | 17 | package org.onosproject.yangutils.parser.impl.listeners; |
| 18 | 18 | ||
| 19 | -import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangDataTypes; | ||
| 20 | import org.onosproject.yangutils.datamodel.YangDerivedInfo; | 19 | import org.onosproject.yangutils.datamodel.YangDerivedInfo; |
| 21 | import org.onosproject.yangutils.datamodel.YangLeaf; | 20 | import org.onosproject.yangutils.datamodel.YangLeaf; |
| 22 | import org.onosproject.yangutils.datamodel.YangLeafList; | 21 | import org.onosproject.yangutils.datamodel.YangLeafList; |
| ... | @@ -27,6 +26,7 @@ import org.onosproject.yangutils.datamodel.YangTypeDef; | ... | @@ -27,6 +26,7 @@ import org.onosproject.yangutils.datamodel.YangTypeDef; |
| 27 | import org.onosproject.yangutils.datamodel.YangUnion; | 26 | import org.onosproject.yangutils.datamodel.YangUnion; |
| 28 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 27 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
| 29 | import org.onosproject.yangutils.datamodel.utils.Parsable; | 28 | import org.onosproject.yangutils.datamodel.utils.Parsable; |
| 29 | +import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangDataTypes; | ||
| 30 | import org.onosproject.yangutils.linker.impl.YangResolutionInfoImpl; | 30 | import org.onosproject.yangutils.linker.impl.YangResolutionInfoImpl; |
| 31 | import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; | 31 | import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; |
| 32 | import org.onosproject.yangutils.parser.exceptions.ParserException; | 32 | import org.onosproject.yangutils.parser.exceptions.ParserException; |
| ... | @@ -94,6 +94,8 @@ public final class TypeListener { | ... | @@ -94,6 +94,8 @@ public final class TypeListener { |
| 94 | // Obtain the YANG data type. | 94 | // Obtain the YANG data type. |
| 95 | YangDataTypes yangDataTypes = YangDataTypes.getType(ctx.string().getText()); | 95 | YangDataTypes yangDataTypes = YangDataTypes.getType(ctx.string().getText()); |
| 96 | 96 | ||
| 97 | + validateTypeSubStatementCardinality(ctx, yangDataTypes); | ||
| 98 | + | ||
| 97 | // Create YANG type object and fill the values. | 99 | // Create YANG type object and fill the values. |
| 98 | YangType<?> type = getYangType(JAVA_GENERATION); | 100 | YangType<?> type = getYangType(JAVA_GENERATION); |
| 99 | type.setNodeIdentifier(nodeIdentifier); | 101 | type.setNodeIdentifier(nodeIdentifier); |
| ... | @@ -265,4 +267,37 @@ public final class TypeListener { | ... | @@ -265,4 +267,37 @@ public final class TypeListener { |
| 265 | TYPE_DATA, ctx.string().getText(), ENTRY, e.getMessage())); | 267 | TYPE_DATA, ctx.string().getText(), ENTRY, e.getMessage())); |
| 266 | } | 268 | } |
| 267 | } | 269 | } |
| 270 | + | ||
| 271 | + /** | ||
| 272 | + * Validates type body statements cardinality. | ||
| 273 | + * | ||
| 274 | + * @param ctx context object of the grammar rule | ||
| 275 | + * @param yangDataType yang data type | ||
| 276 | + */ | ||
| 277 | + private static void validateTypeSubStatementCardinality(GeneratedYangParser.TypeStatementContext ctx, | ||
| 278 | + YangDataTypes yangDataType) { | ||
| 279 | + if (ctx.typeBodyStatements() == null || ctx.typeBodyStatements().isEmpty()) { | ||
| 280 | + ParserException parserException; | ||
| 281 | + switch (yangDataType) { | ||
| 282 | + case UNION: | ||
| 283 | + parserException = new ParserException("YANG file error : a type union" + | ||
| 284 | + " must have atleast one type statement."); | ||
| 285 | + break; | ||
| 286 | + case ENUMERATION: | ||
| 287 | + parserException = new ParserException("YANG file error : a type enumeration" + | ||
| 288 | + " must have atleast one enum statement."); | ||
| 289 | + break; | ||
| 290 | + case BITS: | ||
| 291 | + parserException = new ParserException("YANG file error : a type bits" + | ||
| 292 | + " must have atleast one bit statement."); | ||
| 293 | + break; | ||
| 294 | + // TODO : decimal64, identity ref, leafref | ||
| 295 | + default: | ||
| 296 | + return; | ||
| 297 | + } | ||
| 298 | + parserException.setLine(ctx.getStart().getLine()); | ||
| 299 | + parserException.setCharPosition(ctx.getStart().getCharPositionInLine()); | ||
| 300 | + throw parserException; | ||
| 301 | + } | ||
| 302 | + } | ||
| 268 | } | 303 | } | ... | ... |
| ... | @@ -237,34 +237,13 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -237,34 +237,13 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 237 | * [status-stmt stmtsep] | 237 | * [status-stmt stmtsep] |
| 238 | * [description-stmt stmtsep] | 238 | * [description-stmt stmtsep] |
| 239 | * [reference-stmt stmtsep] | 239 | * [reference-stmt stmtsep] |
| 240 | + * [compiler-annotation-stmt stmtsep] | ||
| 240 | * "}") | 241 | * "}") |
| 242 | + * TODO : 0..1 occurance to be checked in listener | ||
| 241 | */ | 243 | */ |
| 242 | extensionStatement : EXTENSION_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE extensionBody RIGHT_CURLY_BRACE); | 244 | extensionStatement : EXTENSION_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE extensionBody RIGHT_CURLY_BRACE); |
| 243 | - extensionBody : argumentStatement? statusStatement? descriptionStatement? referenceStatement? | 245 | + extensionBody : (argumentStatement | statusStatement | descriptionStatement |
| 244 | - | argumentStatement? statusStatement? referenceStatement? descriptionStatement? | 246 | + | referenceStatement | compilerAnnotationStatement)* ; |
| 245 | - | argumentStatement? descriptionStatement? statusStatement? referenceStatement? | ||
| 246 | - | argumentStatement? descriptionStatement? referenceStatement? statusStatement? | ||
| 247 | - | argumentStatement? referenceStatement? descriptionStatement? statusStatement? | ||
| 248 | - | argumentStatement? referenceStatement? statusStatement? descriptionStatement? | ||
| 249 | - | statusStatement? referenceStatement? argumentStatement? descriptionStatement? | ||
| 250 | - | statusStatement? referenceStatement? descriptionStatement? argumentStatement? | ||
| 251 | - | statusStatement? descriptionStatement? referenceStatement? argumentStatement? | ||
| 252 | - | statusStatement? descriptionStatement? argumentStatement? referenceStatement? | ||
| 253 | - | statusStatement? argumentStatement? referenceStatement? descriptionStatement? | ||
| 254 | - | statusStatement? argumentStatement? descriptionStatement? referenceStatement? | ||
| 255 | - | descriptionStatement? argumentStatement? statusStatement? referenceStatement? | ||
| 256 | - | descriptionStatement? argumentStatement? referenceStatement? statusStatement? | ||
| 257 | - | descriptionStatement? statusStatement? argumentStatement? referenceStatement? | ||
| 258 | - | descriptionStatement? statusStatement? referenceStatement? argumentStatement? | ||
| 259 | - | descriptionStatement? referenceStatement? statusStatement? argumentStatement? | ||
| 260 | - | descriptionStatement? referenceStatement? argumentStatement? statusStatement? | ||
| 261 | - | referenceStatement? descriptionStatement? argumentStatement? statusStatement? | ||
| 262 | - | referenceStatement? descriptionStatement? statusStatement? argumentStatement? | ||
| 263 | - | referenceStatement? statusStatement? argumentStatement? descriptionStatement? | ||
| 264 | - | referenceStatement? statusStatement? descriptionStatement? argumentStatement? | ||
| 265 | - | referenceStatement? argumentStatement? descriptionStatement? statusStatement? | ||
| 266 | - | referenceStatement? argumentStatement? statusStatement? descriptionStatement? | ||
| 267 | - ; | ||
| 268 | 247 | ||
| 269 | /** | 248 | /** |
| 270 | * argument-stmt = argument-keyword sep identifier-arg-str optsep | 249 | * argument-stmt = argument-keyword sep identifier-arg-str optsep |
| ... | @@ -291,35 +270,13 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -291,35 +270,13 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 291 | * [status-stmt stmtsep] | 270 | * [status-stmt stmtsep] |
| 292 | * [description-stmt stmtsep] | 271 | * [description-stmt stmtsep] |
| 293 | * [reference-stmt stmtsep] | 272 | * [reference-stmt stmtsep] |
| 273 | + * [compiler-annotation-stmt stmtsep] | ||
| 294 | * "}") | 274 | * "}") |
| 275 | + * TODO : 0..1 occurance to be checked in listener | ||
| 295 | */ | 276 | */ |
| 296 | identityStatement : IDENTITY_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE identityBody RIGHT_CURLY_BRACE); | 277 | identityStatement : IDENTITY_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE identityBody RIGHT_CURLY_BRACE); |
| 297 | - identityBody : baseStatement? statusStatement? descriptionStatement? referenceStatement? | 278 | + identityBody : (baseStatement | statusStatement | descriptionStatement | referenceStatement |
| 298 | - | baseStatement? statusStatement? referenceStatement? descriptionStatement? | 279 | + | compilerAnnotationStatement)*; |
| 299 | - | baseStatement? descriptionStatement? statusStatement? referenceStatement? | ||
| 300 | - | baseStatement? descriptionStatement? referenceStatement? statusStatement? | ||
| 301 | - | baseStatement? referenceStatement? descriptionStatement? statusStatement? | ||
| 302 | - | baseStatement? referenceStatement? statusStatement? descriptionStatement? | ||
| 303 | - | referenceStatement? baseStatement? statusStatement? descriptionStatement? | ||
| 304 | - | referenceStatement? baseStatement? descriptionStatement? statusStatement? | ||
| 305 | - | referenceStatement? statusStatement? baseStatement? descriptionStatement? | ||
| 306 | - | referenceStatement? statusStatement? descriptionStatement? baseStatement? | ||
| 307 | - | referenceStatement? descriptionStatement? statusStatement? baseStatement? | ||
| 308 | - | referenceStatement? descriptionStatement? baseStatement? statusStatement? | ||
| 309 | - | descriptionStatement? referenceStatement? statusStatement? baseStatement? | ||
| 310 | - | descriptionStatement? referenceStatement? statusStatement? baseStatement? | ||
| 311 | - | descriptionStatement? referenceStatement? baseStatement? statusStatement? | ||
| 312 | - | descriptionStatement? statusStatement? baseStatement? referenceStatement? | ||
| 313 | - | descriptionStatement? statusStatement? referenceStatement? baseStatement? | ||
| 314 | - | descriptionStatement? baseStatement? referenceStatement? statusStatement? | ||
| 315 | - | descriptionStatement? baseStatement? statusStatement? referenceStatement? | ||
| 316 | - | statusStatement? baseStatement? descriptionStatement? referenceStatement? | ||
| 317 | - | statusStatement? baseStatement? referenceStatement? descriptionStatement? | ||
| 318 | - | statusStatement? descriptionStatement? baseStatement? referenceStatement? | ||
| 319 | - | statusStatement? descriptionStatement? referenceStatement? baseStatement? | ||
| 320 | - | statusStatement? referenceStatement? descriptionStatement? baseStatement? | ||
| 321 | - | statusStatement? referenceStatement? baseStatement? descriptionStatement? | ||
| 322 | - ; | ||
| 323 | 280 | ||
| 324 | /** | 281 | /** |
| 325 | * base-stmt = base-keyword sep identifier-ref-arg-str | 282 | * base-stmt = base-keyword sep identifier-ref-arg-str |
| ... | @@ -337,34 +294,13 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -337,34 +294,13 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 337 | * [status-stmt stmtsep] | 294 | * [status-stmt stmtsep] |
| 338 | * [description-stmt stmtsep] | 295 | * [description-stmt stmtsep] |
| 339 | * [reference-stmt stmtsep] | 296 | * [reference-stmt stmtsep] |
| 297 | + * [compiler-annotation-stmt stmtsep] | ||
| 340 | * "}") | 298 | * "}") |
| 299 | + * TODO : 0..1 occurance to be checked in listener | ||
| 341 | */ | 300 | */ |
| 342 | featureStatement : FEATURE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE featureBody RIGHT_CURLY_BRACE); | 301 | featureStatement : FEATURE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE featureBody RIGHT_CURLY_BRACE); |
| 343 | - featureBody : ifFeatureStatement* statusStatement? descriptionStatement? referenceStatement? | 302 | + featureBody : (ifFeatureStatement | statusStatement | descriptionStatement |
| 344 | - | ifFeatureStatement* statusStatement? referenceStatement? descriptionStatement? | 303 | + | referenceStatement | compilerAnnotationStatement)* ; |
| 345 | - | ifFeatureStatement* descriptionStatement? statusStatement? referenceStatement? | ||
| 346 | - | ifFeatureStatement* descriptionStatement? referenceStatement? statusStatement? | ||
| 347 | - | ifFeatureStatement* referenceStatement? statusStatement? descriptionStatement? | ||
| 348 | - | ifFeatureStatement* referenceStatement? descriptionStatement? statusStatement? | ||
| 349 | - | statusStatement? ifFeatureStatement* descriptionStatement? referenceStatement? | ||
| 350 | - | statusStatement? ifFeatureStatement* referenceStatement? descriptionStatement? | ||
| 351 | - | statusStatement? descriptionStatement? ifFeatureStatement* referenceStatement? | ||
| 352 | - | statusStatement? descriptionStatement? referenceStatement? ifFeatureStatement* | ||
| 353 | - | statusStatement? referenceStatement? ifFeatureStatement* descriptionStatement? | ||
| 354 | - | statusStatement? referenceStatement? descriptionStatement? ifFeatureStatement* | ||
| 355 | - | descriptionStatement? ifFeatureStatement* statusStatement? referenceStatement? | ||
| 356 | - | descriptionStatement? ifFeatureStatement* referenceStatement? statusStatement? | ||
| 357 | - | descriptionStatement? statusStatement? ifFeatureStatement* referenceStatement? | ||
| 358 | - | descriptionStatement? statusStatement? referenceStatement? ifFeatureStatement* | ||
| 359 | - | descriptionStatement? referenceStatement* statusStatement? ifFeatureStatement* | ||
| 360 | - | descriptionStatement? referenceStatement* ifFeatureStatement? statusStatement? | ||
| 361 | - | referenceStatement? ifFeatureStatement* statusStatement? descriptionStatement? | ||
| 362 | - | referenceStatement? ifFeatureStatement* descriptionStatement? statusStatement? | ||
| 363 | - | referenceStatement? descriptionStatement? statusStatement? ifFeatureStatement* | ||
| 364 | - | referenceStatement? descriptionStatement? ifFeatureStatement* statusStatement? | ||
| 365 | - | referenceStatement? statusStatement? descriptionStatement? ifFeatureStatement* | ||
| 366 | - | referenceStatement? statusStatement? ifFeatureStatement* descriptionStatement? | ||
| 367 | - ; | ||
| 368 | 304 | ||
| 369 | /** | 305 | /** |
| 370 | * data-def-stmt = container-stmt / | 306 | * data-def-stmt = container-stmt / |
| ... | @@ -404,11 +340,13 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -404,11 +340,13 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 404 | * [status-stmt stmtsep] | 340 | * [status-stmt stmtsep] |
| 405 | * [description-stmt stmtsep] | 341 | * [description-stmt stmtsep] |
| 406 | * [reference-stmt stmtsep] | 342 | * [reference-stmt stmtsep] |
| 343 | + * [compiler-annotation-stmt stmtsep] | ||
| 407 | * "}" | 344 | * "}" |
| 408 | * TODO : 0..1 occurance to be validated in listener | 345 | * TODO : 0..1 occurance to be validated in listener |
| 409 | */ | 346 | */ |
| 410 | typedefStatement : TYPEDEF_KEYWORD identifier LEFT_CURLY_BRACE | 347 | typedefStatement : TYPEDEF_KEYWORD identifier LEFT_CURLY_BRACE |
| 411 | - (typeStatement | unitsStatement | defaultStatement | statusStatement | descriptionStatement | referenceStatement)* | 348 | + (typeStatement | unitsStatement | defaultStatement | statusStatement | descriptionStatement |
| 349 | + | compilerAnnotationStatement | referenceStatement)* | ||
| 412 | RIGHT_CURLY_BRACE; | 350 | RIGHT_CURLY_BRACE; |
| 413 | 351 | ||
| 414 | /** | 352 | /** |
| ... | @@ -770,6 +708,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -770,6 +708,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 770 | * [status-stmt stmtsep] | 708 | * [status-stmt stmtsep] |
| 771 | * [description-stmt stmtsep] | 709 | * [description-stmt stmtsep] |
| 772 | * [reference-stmt stmtsep] | 710 | * [reference-stmt stmtsep] |
| 711 | + * [compiler-annotation-stmt stmtsep] | ||
| 773 | * *((typedef-stmt / | 712 | * *((typedef-stmt / |
| 774 | * grouping-stmt) stmtsep) | 713 | * grouping-stmt) stmtsep) |
| 775 | * *(data-def-stmt stmtsep) | 714 | * *(data-def-stmt stmtsep) |
| ... | @@ -778,7 +717,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -778,7 +717,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 778 | */ | 717 | */ |
| 779 | groupingStatement : GROUPING_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE | 718 | groupingStatement : GROUPING_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE |
| 780 | (statusStatement | descriptionStatement | referenceStatement | typedefStatement | groupingStatement | 719 | (statusStatement | descriptionStatement | referenceStatement | typedefStatement | groupingStatement |
| 781 | - | dataDefStatement)* RIGHT_CURLY_BRACE); | 720 | + | dataDefStatement | compilerAnnotationStatement)* RIGHT_CURLY_BRACE); |
| 782 | 721 | ||
| 783 | /** | 722 | /** |
| 784 | * container-stmt = container-keyword sep identifier-arg-str optsep | 723 | * container-stmt = container-keyword sep identifier-arg-str optsep |
| ... | @@ -793,6 +732,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -793,6 +732,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 793 | * [status-stmt stmtsep] | 732 | * [status-stmt stmtsep] |
| 794 | * [description-stmt stmtsep] | 733 | * [description-stmt stmtsep] |
| 795 | * [reference-stmt stmtsep] | 734 | * [reference-stmt stmtsep] |
| 735 | + * [compiler-annotation-stmt stmtsep] | ||
| 796 | * *((typedef-stmt / | 736 | * *((typedef-stmt / |
| 797 | * grouping-stmt) stmtsep) | 737 | * grouping-stmt) stmtsep) |
| 798 | * *(data-def-stmt stmtsep) | 738 | * *(data-def-stmt stmtsep) |
| ... | @@ -802,7 +742,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -802,7 +742,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 802 | containerStatement : CONTAINER_KEYWORD identifier | 742 | containerStatement : CONTAINER_KEYWORD identifier |
| 803 | (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | mustStatement | presenceStatement | configStatement | 743 | (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | mustStatement | presenceStatement | configStatement |
| 804 | | statusStatement | descriptionStatement | referenceStatement | typedefStatement | groupingStatement | 744 | | statusStatement | descriptionStatement | referenceStatement | typedefStatement | groupingStatement |
| 805 | - | dataDefStatement)* RIGHT_CURLY_BRACE); | 745 | + | dataDefStatement | compilerAnnotationStatement)* RIGHT_CURLY_BRACE); |
| 806 | 746 | ||
| 807 | /** | 747 | /** |
| 808 | * leaf-stmt = leaf-keyword sep identifier-arg-str optsep | 748 | * leaf-stmt = leaf-keyword sep identifier-arg-str optsep |
| ... | @@ -824,7 +764,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -824,7 +764,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 824 | */ | 764 | */ |
| 825 | leafStatement : LEAF_KEYWORD identifier LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | typeStatement | unitsStatement | 765 | leafStatement : LEAF_KEYWORD identifier LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | typeStatement | unitsStatement |
| 826 | | mustStatement | defaultStatement | configStatement | mandatoryStatement | statusStatement | descriptionStatement | 766 | | mustStatement | defaultStatement | configStatement | mandatoryStatement | statusStatement | descriptionStatement |
| 827 | - | referenceStatement)* RIGHT_CURLY_BRACE; | 767 | + | referenceStatement | compilerAnnotationStatement)* RIGHT_CURLY_BRACE; |
| 828 | 768 | ||
| 829 | /** | 769 | /** |
| 830 | * leaf-list-stmt = leaf-list-keyword sep identifier-arg-str optsep | 770 | * leaf-list-stmt = leaf-list-keyword sep identifier-arg-str optsep |
| ... | @@ -847,7 +787,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -847,7 +787,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 847 | */ | 787 | */ |
| 848 | leafListStatement : LEAF_LIST_KEYWORD identifier LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | typeStatement | 788 | leafListStatement : LEAF_LIST_KEYWORD identifier LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | typeStatement |
| 849 | | unitsStatement | mustStatement | configStatement | minElementsStatement | maxElementsStatement | orderedByStatement | 789 | | unitsStatement | mustStatement | configStatement | minElementsStatement | maxElementsStatement | orderedByStatement |
| 850 | - | statusStatement | descriptionStatement | referenceStatement)* RIGHT_CURLY_BRACE; | 790 | + | statusStatement | descriptionStatement | referenceStatement | compilerAnnotationStatement)* RIGHT_CURLY_BRACE; |
| 851 | 791 | ||
| 852 | /** | 792 | /** |
| 853 | * list-stmt = list-keyword sep identifier-arg-str optsep | 793 | * list-stmt = list-keyword sep identifier-arg-str optsep |
| ... | @@ -873,7 +813,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -873,7 +813,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 873 | */ | 813 | */ |
| 874 | listStatement : LIST_KEYWORD identifier LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | mustStatement | keyStatement | 814 | listStatement : LIST_KEYWORD identifier LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | mustStatement | keyStatement |
| 875 | | uniqueStatement | configStatement | minElementsStatement | maxElementsStatement | orderedByStatement | statusStatement | 815 | | uniqueStatement | configStatement | minElementsStatement | maxElementsStatement | orderedByStatement | statusStatement |
| 876 | - | descriptionStatement | referenceStatement | typedefStatement | groupingStatement| dataDefStatement)* RIGHT_CURLY_BRACE; | 816 | + | descriptionStatement | referenceStatement | typedefStatement | groupingStatement| dataDefStatement |
| 817 | + | compilerAnnotationStatement)* RIGHT_CURLY_BRACE; | ||
| 877 | 818 | ||
| 878 | /** | 819 | /** |
| 879 | * key-stmt = key-keyword sep key-arg-str stmtend | 820 | * key-stmt = key-keyword sep key-arg-str stmtend |
| ... | @@ -904,7 +845,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -904,7 +845,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 904 | */ | 845 | */ |
| 905 | choiceStatement : CHOICE_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | defaultStatement | 846 | choiceStatement : CHOICE_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | defaultStatement |
| 906 | | configStatement | mandatoryStatement | statusStatement | descriptionStatement | referenceStatement | shortCaseStatement | 847 | | configStatement | mandatoryStatement | statusStatement | descriptionStatement | referenceStatement | shortCaseStatement |
| 907 | - | caseStatement)* RIGHT_CURLY_BRACE); | 848 | + | caseStatement | compilerAnnotationStatement)* RIGHT_CURLY_BRACE); |
| 908 | 849 | ||
| 909 | /** | 850 | /** |
| 910 | * short-case-stmt = container-stmt / | 851 | * short-case-stmt = container-stmt / |
| ... | @@ -949,7 +890,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -949,7 +890,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 949 | */ | 890 | */ |
| 950 | anyxmlStatement : ANYXML_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | 891 | anyxmlStatement : ANYXML_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement |
| 951 | | mustStatement | configStatement | mandatoryStatement | statusStatement | descriptionStatement | 892 | | mustStatement | configStatement | mandatoryStatement | statusStatement | descriptionStatement |
| 952 | - | referenceStatement)* RIGHT_CURLY_BRACE); | 893 | + | referenceStatement | compilerAnnotationStatement)* RIGHT_CURLY_BRACE); |
| 953 | 894 | ||
| 954 | /** | 895 | /** |
| 955 | * uses-stmt = uses-keyword sep identifier-ref-arg-str optsep | 896 | * uses-stmt = uses-keyword sep identifier-ref-arg-str optsep |
| ... | @@ -961,13 +902,15 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -961,13 +902,15 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 961 | * [status-stmt stmtsep] | 902 | * [status-stmt stmtsep] |
| 962 | * [description-stmt stmtsep] | 903 | * [description-stmt stmtsep] |
| 963 | * [reference-stmt stmtsep] | 904 | * [reference-stmt stmtsep] |
| 905 | + * [compiler-annotation-stmt stmtsep] | ||
| 964 | * *(refine-stmt stmtsep) | 906 | * *(refine-stmt stmtsep) |
| 965 | * *(uses-augment-stmt stmtsep) | 907 | * *(uses-augment-stmt stmtsep) |
| 966 | * "}") | 908 | * "}") |
| 967 | * TODO : 0..1 occurance to be checked in listener | 909 | * TODO : 0..1 occurance to be checked in listener |
| 968 | */ | 910 | */ |
| 969 | usesStatement : USES_KEYWORD string (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | statusStatement | 911 | usesStatement : USES_KEYWORD string (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | statusStatement |
| 970 | - | descriptionStatement | referenceStatement | refineStatement | augmentStatement)* RIGHT_CURLY_BRACE); | 912 | + | descriptionStatement | referenceStatement | refineStatement | augmentStatement |
| 913 | + | compilerAnnotationStatement)* RIGHT_CURLY_BRACE); | ||
| 971 | 914 | ||
| 972 | /** | 915 | /** |
| 973 | * refine-stmt = refine-keyword sep refine-arg-str optsep | 916 | * refine-stmt = refine-keyword sep refine-arg-str optsep |
| ... | @@ -1082,7 +1025,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1082,7 +1025,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1082 | * TODO : 0..1 occurance to be checked in listener | 1025 | * TODO : 0..1 occurance to be checked in listener |
| 1083 | */ | 1026 | */ |
| 1084 | augmentStatement : AUGMENT_KEYWORD augment LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | statusStatement | 1027 | augmentStatement : AUGMENT_KEYWORD augment LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | statusStatement |
| 1085 | - | descriptionStatement | referenceStatement | dataDefStatement | caseStatement)* RIGHT_CURLY_BRACE; | 1028 | + | descriptionStatement | referenceStatement | dataDefStatement | caseStatement |
| 1029 | + | compilerAnnotationStatement)* RIGHT_CURLY_BRACE; | ||
| 1086 | 1030 | ||
| 1087 | /** | 1031 | /** |
| 1088 | * when-stmt = when-keyword sep string optsep | 1032 | * when-stmt = when-keyword sep string optsep |
| ... | @@ -1110,10 +1054,13 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1110,10 +1054,13 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1110 | * grouping-stmt) stmtsep) | 1054 | * grouping-stmt) stmtsep) |
| 1111 | * [input-stmt stmtsep] | 1055 | * [input-stmt stmtsep] |
| 1112 | * [output-stmt stmtsep] | 1056 | * [output-stmt stmtsep] |
| 1057 | + * [compiler-annotation-stmt stmtsep] | ||
| 1113 | * "}") | 1058 | * "}") |
| 1059 | + * TODO : 0..1 occurance to be checked in listener | ||
| 1114 | */ | 1060 | */ |
| 1115 | - rpcStatement : RPC_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE (ifFeatureStatement | statusStatement | descriptionStatement | 1061 | + rpcStatement : RPC_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE (ifFeatureStatement | statusStatement |
| 1116 | - | referenceStatement | typedefStatement | groupingStatement | inputStatement | outputStatement)* RIGHT_CURLY_BRACE); | 1062 | + | descriptionStatement | referenceStatement | typedefStatement | groupingStatement | inputStatement |
| 1063 | + | outputStatement | compilerAnnotationStatement)* RIGHT_CURLY_BRACE); | ||
| 1117 | 1064 | ||
| 1118 | /** | 1065 | /** |
| 1119 | * input-stmt = input-keyword optsep | 1066 | * input-stmt = input-keyword optsep |
| ... | @@ -1147,6 +1094,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1147,6 +1094,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1147 | * [status-stmt stmtsep] | 1094 | * [status-stmt stmtsep] |
| 1148 | * [description-stmt stmtsep] | 1095 | * [description-stmt stmtsep] |
| 1149 | * [reference-stmt stmtsep] | 1096 | * [reference-stmt stmtsep] |
| 1097 | + * [compiler-annotation-stmt stmtsep] | ||
| 1150 | * *((typedef-stmt / | 1098 | * *((typedef-stmt / |
| 1151 | * grouping-stmt) stmtsep) | 1099 | * grouping-stmt) stmtsep) |
| 1152 | * *(data-def-stmt stmtsep) | 1100 | * *(data-def-stmt stmtsep) |
| ... | @@ -1155,7 +1103,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1155,7 +1103,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1155 | */ | 1103 | */ |
| 1156 | notificationStatement : NOTIFICATION_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE (ifFeatureStatement | 1104 | notificationStatement : NOTIFICATION_KEYWORD identifier (STMTEND | LEFT_CURLY_BRACE (ifFeatureStatement |
| 1157 | | statusStatement | descriptionStatement | referenceStatement | typedefStatement | 1105 | | statusStatement | descriptionStatement | referenceStatement | typedefStatement |
| 1158 | - | groupingStatement | dataDefStatement)* RIGHT_CURLY_BRACE); | 1106 | + | groupingStatement | dataDefStatement | compilerAnnotationStatement)* RIGHT_CURLY_BRACE); |
| 1159 | 1107 | ||
| 1160 | /** | 1108 | /** |
| 1161 | * deviation-stmt = deviation-keyword sep | 1109 | * deviation-stmt = deviation-keyword sep |
| ... | @@ -1164,6 +1112,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1164,6 +1112,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1164 | * ;; these stmts can appear in any order | 1112 | * ;; these stmts can appear in any order |
| 1165 | * [description-stmt stmtsep] | 1113 | * [description-stmt stmtsep] |
| 1166 | * [reference-stmt stmtsep] | 1114 | * [reference-stmt stmtsep] |
| 1115 | + * [compiler-annotation-stmt stmtsep] | ||
| 1167 | * (deviate-not-supported-stmt / | 1116 | * (deviate-not-supported-stmt / |
| 1168 | * 1*(deviate-add-stmt / | 1117 | * 1*(deviate-add-stmt / |
| 1169 | * deviate-replace-stmt / | 1118 | * deviate-replace-stmt / |
| ... | @@ -1173,7 +1122,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1173,7 +1122,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1173 | */ | 1122 | */ |
| 1174 | deviationStatement: DEVIATION_KEYWORD deviation LEFT_CURLY_BRACE (descriptionStatement | referenceStatement | 1123 | deviationStatement: DEVIATION_KEYWORD deviation LEFT_CURLY_BRACE (descriptionStatement | referenceStatement |
| 1175 | | deviateNotSupportedStatement | deviateAddStatement | deviateReplaceStatement | 1124 | | deviateNotSupportedStatement | deviateAddStatement | deviateReplaceStatement |
| 1176 | - | deviateDeleteStatement)* RIGHT_CURLY_BRACE; | 1125 | + | deviateDeleteStatement | compilerAnnotationStatement)* RIGHT_CURLY_BRACE; |
| 1177 | 1126 | ||
| 1178 | /** | 1127 | /** |
| 1179 | * deviate-not-supported-stmt = | 1128 | * deviate-not-supported-stmt = |
| ... | @@ -1233,11 +1182,68 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1233,11 +1182,68 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1233 | defaultStatement? configStatement? mandatoryStatement? minElementsStatement? | 1182 | defaultStatement? configStatement? mandatoryStatement? minElementsStatement? |
| 1234 | maxElementsStatement? RIGHT_CURLY_BRACE)); | 1183 | maxElementsStatement? RIGHT_CURLY_BRACE)); |
| 1235 | 1184 | ||
| 1185 | + /** | ||
| 1186 | + * compiler-annotation-stmt = compiler-annotation-keyword optsep | ||
| 1187 | + * "{" stmtsep | ||
| 1188 | + * ;; these stmts can appear in any order | ||
| 1189 | + * *(if-feature-stmt stmtsep) | ||
| 1190 | + * [status-stmt stmtsep] | ||
| 1191 | + * [units-stmt stmtsep] | ||
| 1192 | + * [reference-stmt stmtsep] | ||
| 1193 | + * 1*(compiler-annotation-stmt stmtsep) | ||
| 1194 | + * "}" | ||
| 1195 | + */ | ||
| 1196 | + compilerAnnotationStatement : COMPILER_ANNOTATION_KEYWORD LEFT_CURLY_BRACE (ifFeatureStatement | statusStatement | ||
| 1197 | + | unitsStatement | referenceStatement | annotationStatement)* | ||
| 1198 | + RIGHT_CURLY_BRACE; | ||
| 1199 | + | ||
| 1200 | + /** | ||
| 1201 | + * annotation-stmt = "@" annotation-type [annotation-parameter-specification] ";" | ||
| 1202 | + */ | ||
| 1203 | + annotationStatement : annotationType annotationParameterSpecification? STMTEND; | ||
| 1204 | + | ||
| 1205 | + /** | ||
| 1206 | + * annotation-type = identifier | ||
| 1207 | + */ | ||
| 1208 | + annotationType : annotationIdentifier; | ||
| 1209 | + | ||
| 1210 | + /** | ||
| 1211 | + * annotation-parameter-specification = "(" optsep annotation-parameter-specification-arg optsep ")" | ||
| 1212 | + */ | ||
| 1213 | + annotationParameterSpecification : LEFT_ROUND_BRACE annotationParameterSpecificationArg RIGHT_ROUND_BRACE; | ||
| 1214 | + | ||
| 1215 | + /** | ||
| 1216 | + * annotation-parameter-specification-arg = annotation-para-type-value | ||
| 1217 | + * / annotation-para-instance *("," annotation-para-instance) | ||
| 1218 | + */ | ||
| 1219 | + annotationParameterSpecificationArg : annotationParaTypeValue | ||
| 1220 | + | annotationParaInstance (COMMA annotationParaInstance)*; | ||
| 1221 | + | ||
| 1222 | + /** | ||
| 1223 | + * annotation-para-instance = annotation-para-type-identifier optsep "=" optsep annotation-para-type-value | ||
| 1224 | + */ | ||
| 1225 | + annotationParaInstance : annotationParaTypeIdentifier EQUAL annotationParaTypeValue; | ||
| 1226 | + | ||
| 1227 | + /** | ||
| 1228 | + * annotation-para-type-identifier = identifier | ||
| 1229 | + */ | ||
| 1230 | + annotationParaTypeIdentifier : identifier; | ||
| 1231 | + | ||
| 1232 | + /** | ||
| 1233 | + * annotation-para-type-value = identifier | ||
| 1234 | + */ | ||
| 1235 | + annotationParaTypeValue : identifier; | ||
| 1236 | + | ||
| 1236 | string : STRING (PLUS STRING)* | 1237 | string : STRING (PLUS STRING)* |
| 1237 | | IDENTIFIER | 1238 | | IDENTIFIER |
| 1238 | | INTEGER | 1239 | | INTEGER |
| 1239 | | yangConstruct; | 1240 | | yangConstruct; |
| 1240 | 1241 | ||
| 1242 | + annotationIdentifier : STRING (PLUS STRING)* | ||
| 1243 | + | ANNOTATION_IDENTIFIER | ||
| 1244 | + | IDENTIFIER | ||
| 1245 | + | yangConstruct; | ||
| 1246 | + | ||
| 1241 | identifier : STRING (PLUS STRING)* | 1247 | identifier : STRING (PLUS STRING)* |
| 1242 | | IDENTIFIER | 1248 | | IDENTIFIER |
| 1243 | | yangConstruct; | 1249 | | yangConstruct; |
| ... | @@ -1296,4 +1302,5 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1296,4 +1302,5 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1296 | | UNITS_KEYWORD | USES_KEYWORD | VALUE_KEYWORD | WHEN_KEYWORD | YANG_VERSION_KEYWORD | 1302 | | UNITS_KEYWORD | USES_KEYWORD | VALUE_KEYWORD | WHEN_KEYWORD | YANG_VERSION_KEYWORD |
| 1297 | | YIN_ELEMENT_KEYWORD | ADD_KEYWORD | CURRENT_KEYWORD | DELETE_KEYWORD | DEPRECATED_KEYWORD | 1303 | | YIN_ELEMENT_KEYWORD | ADD_KEYWORD | CURRENT_KEYWORD | DELETE_KEYWORD | DEPRECATED_KEYWORD |
| 1298 | | FALSE_KEYWORD | MAX_KEYWORD | MIN_KEYWORD | NOT_SUPPORTED_KEYWORD | OBSOLETE_KEYWORD | 1304 | | FALSE_KEYWORD | MAX_KEYWORD | MIN_KEYWORD | NOT_SUPPORTED_KEYWORD | OBSOLETE_KEYWORD |
| 1299 | - | REPLACE_KEYWORD | SYSTEM_KEYWORD | TRUE_KEYWORD | UNBOUNDED_KEYWORD | USER_KEYWORD; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1305 | + | REPLACE_KEYWORD | SYSTEM_KEYWORD | TRUE_KEYWORD | UNBOUNDED_KEYWORD | USER_KEYWORD | ||
| 1306 | + | COMPILER_ANNOTATION_KEYWORD; | ... | ... |
| ... | @@ -100,6 +100,7 @@ lexer grammar YangLexer; | ... | @@ -100,6 +100,7 @@ lexer grammar YangLexer; |
| 100 | TRUE_KEYWORD : 'true'; | 100 | TRUE_KEYWORD : 'true'; |
| 101 | UNBOUNDED_KEYWORD : 'unbounded'; | 101 | UNBOUNDED_KEYWORD : 'unbounded'; |
| 102 | USER_KEYWORD : 'user'; | 102 | USER_KEYWORD : 'user'; |
| 103 | + COMPILER_ANNOTATION_KEYWORD : 'compiler-annotation'; | ||
| 103 | 104 | ||
| 104 | // Lexer tokens to be skipped | 105 | // Lexer tokens to be skipped |
| 105 | COMMENT | 106 | COMMENT |
| ... | @@ -116,11 +117,18 @@ lexer grammar YangLexer; | ... | @@ -116,11 +117,18 @@ lexer grammar YangLexer; |
| 116 | DATE_ARG : DIGIT DIGIT DIGIT DIGIT '-' DIGIT DIGIT '-' DIGIT DIGIT; | 117 | DATE_ARG : DIGIT DIGIT DIGIT DIGIT '-' DIGIT DIGIT '-' DIGIT DIGIT; |
| 117 | LEFT_CURLY_BRACE : '{'; | 118 | LEFT_CURLY_BRACE : '{'; |
| 118 | RIGHT_CURLY_BRACE : '}'; | 119 | RIGHT_CURLY_BRACE : '}'; |
| 120 | + LEFT_ROUND_BRACE : '('; | ||
| 121 | + RIGHT_ROUND_BRACE : ')'; | ||
| 122 | + ANNOTATION_START : '@'; | ||
| 123 | + ANNOTATION_IDENTIFIER : ('@')(ALPHA | '_') | ||
| 124 | + (ALPHA | DIGIT | '_' | '-' | '.')*; | ||
| 119 | IDENTIFIER : (ALPHA | '_') | 125 | IDENTIFIER : (ALPHA | '_') |
| 120 | (ALPHA | DIGIT | '_' | '-' | '.')*; | 126 | (ALPHA | DIGIT | '_' | '-' | '.')*; |
| 121 | STMTEND : ';'; | 127 | STMTEND : ';'; |
| 122 | DQUOTE : '"'; | 128 | DQUOTE : '"'; |
| 123 | COLON : ':'; | 129 | COLON : ':'; |
| 130 | + COMMA : ','; | ||
| 131 | + EQUAL : '='; | ||
| 124 | PLUS : '+'; | 132 | PLUS : '+'; |
| 125 | MINUS: '-'; | 133 | MINUS: '-'; |
| 126 | 134 | ... | ... |
| ... | @@ -129,19 +129,6 @@ public class ConfigListenerTest { | ... | @@ -129,19 +129,6 @@ public class ConfigListenerTest { |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | /** | 131 | /** |
| 132 | - * Checks config statement as sub-statement of module. | ||
| 133 | - */ | ||
| 134 | - @Test | ||
| 135 | - public void processModuleSubStatementConfig() throws IOException, ParserException { | ||
| 136 | - thrown.expect(ParserException.class); | ||
| 137 | - thrown.expectMessage("mismatched input 'config' expecting {'anyxml', 'augment', 'choice', 'contact', " | ||
| 138 | - + "'container', 'description', 'extension', 'deviation', 'feature', 'grouping', 'identity', 'import'," | ||
| 139 | - + " 'include', 'leaf', 'leaf-list', 'list', 'notification', 'organization', 'reference'," | ||
| 140 | - + " 'revision', 'rpc', 'typedef', 'uses', '}'}"); | ||
| 141 | - YangNode node = manager.getDataModel("src/test/resources/ModuleSubStatementConfig.yang"); | ||
| 142 | - } | ||
| 143 | - | ||
| 144 | - /** | ||
| 145 | * Checks config statement as sub-statement of container. | 132 | * Checks config statement as sub-statement of container. |
| 146 | */ | 133 | */ |
| 147 | @Test | 134 | @Test | ... | ... |
| ... | @@ -91,13 +91,8 @@ public class LeafListListenerTest { | ... | @@ -91,13 +91,8 @@ public class LeafListListenerTest { |
| 91 | /** | 91 | /** |
| 92 | * Checks whether exception is thrown when leaf-list keyword is incorrect. | 92 | * Checks whether exception is thrown when leaf-list keyword is incorrect. |
| 93 | */ | 93 | */ |
| 94 | - @Test | 94 | + @Test(expected = ParserException.class) |
| 95 | public void processLeafListInvalidStatement() throws IOException, ParserException { | 95 | public void processLeafListInvalidStatement() throws IOException, ParserException { |
| 96 | - thrown.expect(ParserException.class); | ||
| 97 | - thrown.expectMessage("mismatched input 'leaflist' expecting {'anyxml', 'augment', 'choice', 'contact', " | ||
| 98 | - + "'container', 'description', 'extension', 'deviation', 'feature', 'grouping', 'identity', 'import'," | ||
| 99 | - + " 'include', 'leaf', 'leaf-list', 'list', 'notification', 'organization', 'reference'," | ||
| 100 | - + " 'revision', 'rpc', 'typedef', 'uses', '}'}"); | ||
| 101 | YangNode node = manager.getDataModel("src/test/resources/LeafListInvalidStatement.yang"); | 96 | YangNode node = manager.getDataModel("src/test/resources/LeafListInvalidStatement.yang"); |
| 102 | } | 97 | } |
| 103 | 98 | ... | ... |
| ... | @@ -90,19 +90,6 @@ public class LeafListenerTest { | ... | @@ -90,19 +90,6 @@ public class LeafListenerTest { |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | /** | 92 | /** |
| 93 | - * Checks whether exception is thrown when leaf keyword is incorrect. | ||
| 94 | - */ | ||
| 95 | - @Test | ||
| 96 | - public void processLeafInvalidStatement() throws IOException, ParserException { | ||
| 97 | - thrown.expect(ParserException.class); | ||
| 98 | - thrown.expectMessage("mismatched input 'leafs' expecting {'anyxml', 'augment', 'choice', 'contact', " | ||
| 99 | - + "'container', 'description', 'extension', 'deviation', 'feature', 'grouping', 'identity', 'import'," | ||
| 100 | - + " 'include', 'leaf', 'leaf-list', 'list', 'notification', 'organization', 'reference'," | ||
| 101 | - + " 'revision', 'rpc', 'typedef', 'uses', '}'}"); | ||
| 102 | - YangNode node = manager.getDataModel("src/test/resources/LeafInvalidStatement.yang"); | ||
| 103 | - } | ||
| 104 | - | ||
| 105 | - /** | ||
| 106 | * Checks whether exception is thrown when leaf keyword without Left brace | 93 | * Checks whether exception is thrown when leaf keyword without Left brace |
| 107 | * as per grammar. | 94 | * as per grammar. |
| 108 | */ | 95 | */ | ... | ... |
| ... | @@ -140,18 +140,4 @@ public class MandatoryListenerTest { | ... | @@ -140,18 +140,4 @@ public class MandatoryListenerTest { |
| 140 | thrown.expectMessage("missing ';' at '}'"); | 140 | thrown.expectMessage("missing ';' at '}'"); |
| 141 | YangNode node = manager.getDataModel("src/test/resources/MandatoryWithoutStatementEnd.yang"); | 141 | YangNode node = manager.getDataModel("src/test/resources/MandatoryWithoutStatementEnd.yang"); |
| 142 | } | 142 | } |
| 143 | - | ||
| 144 | - /** | ||
| 145 | - * Checks mandatory statement as sub-statement of module and expects | ||
| 146 | - * exception. | ||
| 147 | - */ | ||
| 148 | - @Test | ||
| 149 | - public void processModuleSubStatementMandatory() throws IOException, ParserException { | ||
| 150 | - thrown.expect(ParserException.class); | ||
| 151 | - thrown.expectMessage("mismatched input 'mandatory' expecting {'anyxml', 'augment', 'choice', 'contact'," | ||
| 152 | - + " 'container', 'description', 'extension', 'deviation', 'feature', 'grouping', 'identity', 'import'," | ||
| 153 | - + " 'include', 'leaf', 'leaf-list', 'list', 'notification', 'organization', 'reference'," | ||
| 154 | - + " 'revision', 'rpc', 'typedef', 'uses', '}'}"); | ||
| 155 | - YangNode node = manager.getDataModel("src/test/resources/ModuleSubStatementMandatory.yang"); | ||
| 156 | - } | ||
| 157 | } | 143 | } | ... | ... |
| ... | @@ -92,19 +92,6 @@ public class MaxElementsListenerTest { | ... | @@ -92,19 +92,6 @@ public class MaxElementsListenerTest { |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | /** | 94 | /** |
| 95 | - * Checks whether exception is thrown when invalid max-elements keyword is | ||
| 96 | - * given as input. | ||
| 97 | - */ | ||
| 98 | - @Test | ||
| 99 | - public void processMaxElementsInvalidStatement() throws IOException, ParserException { | ||
| 100 | - thrown.expect(ParserException.class); | ||
| 101 | - thrown.expectMessage("extraneous input 'max-element' expecting {'config', 'description', 'if-feature'," | ||
| 102 | - + " 'max-elements', 'min-elements', 'must', 'ordered-by', 'reference', 'status', 'type', 'units', " | ||
| 103 | - + "'when', '}'}"); | ||
| 104 | - YangNode node = manager.getDataModel("src/test/resources/MaxElementsInvalidStatement.yang"); | ||
| 105 | - } | ||
| 106 | - | ||
| 107 | - /** | ||
| 108 | * Checks whether exception is thrown when max-elements statement without | 95 | * Checks whether exception is thrown when max-elements statement without |
| 109 | * statement end is given as input. | 96 | * statement end is given as input. |
| 110 | */ | 97 | */ | ... | ... |
| ... | @@ -92,19 +92,6 @@ public class MinElementsListenerTest { | ... | @@ -92,19 +92,6 @@ public class MinElementsListenerTest { |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | /** | 94 | /** |
| 95 | - * Checks whether exception is thrown when invalid min-elements keyword is | ||
| 96 | - * given as input. | ||
| 97 | - */ | ||
| 98 | - @Test | ||
| 99 | - public void processMinElementsInvalidKeyword() throws IOException, ParserException { | ||
| 100 | - thrown.expect(ParserException.class); | ||
| 101 | - thrown.expectMessage("extraneous input 'min-element' expecting {'config', 'description', 'if-feature'," | ||
| 102 | - + " 'max-elements', 'min-elements', 'must', 'ordered-by', 'reference', 'status', 'type', 'units'," | ||
| 103 | - + " 'when', '}'}"); | ||
| 104 | - YangNode node = manager.getDataModel("src/test/resources/MinElementsInvalidKeyword.yang"); | ||
| 105 | - } | ||
| 106 | - | ||
| 107 | - /** | ||
| 108 | * Checks whether exception is thrown when invalid min-elements value is | 95 | * Checks whether exception is thrown when invalid min-elements value is |
| 109 | * given as input. | 96 | * given as input. |
| 110 | */ | 97 | */ | ... | ... |
| ... | @@ -145,19 +145,6 @@ public class StatusListenerTest { | ... | @@ -145,19 +145,6 @@ public class StatusListenerTest { |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | /** | 147 | /** |
| 148 | - * Checks status statement as sub-statement of module. | ||
| 149 | - */ | ||
| 150 | - @Test | ||
| 151 | - public void processModuleSubStatementStatus() throws IOException, ParserException { | ||
| 152 | - thrown.expect(ParserException.class); | ||
| 153 | - thrown.expectMessage("mismatched input 'status' expecting {'anyxml', 'augment', 'choice', 'contact', " | ||
| 154 | - + "'container', 'description', 'extension', 'deviation', 'feature', 'grouping', 'identity', 'import'," | ||
| 155 | - + " 'include', 'leaf', 'leaf-list', 'list', 'notification', 'organization', 'reference', " | ||
| 156 | - + "'revision', 'rpc', 'typedef', 'uses', '}'}"); | ||
| 157 | - YangNode node = manager.getDataModel("src/test/resources/ModuleSubStatementStatus.yang"); | ||
| 158 | - } | ||
| 159 | - | ||
| 160 | - /** | ||
| 161 | * Checks status statement as sub-statement of container. | 148 | * Checks status statement as sub-statement of container. |
| 162 | */ | 149 | */ |
| 163 | @Test | 150 | @Test | ... | ... |
| ... | @@ -138,4 +138,12 @@ public class UnionListenerTest { | ... | @@ -138,4 +138,12 @@ public class UnionListenerTest { |
| 138 | 138 | ||
| 139 | YangNode node = manager.getDataModel("src/test/resources/UnionWithEmptyType.yang"); | 139 | YangNode node = manager.getDataModel("src/test/resources/UnionWithEmptyType.yang"); |
| 140 | } | 140 | } |
| 141 | + | ||
| 142 | + /** | ||
| 143 | + * Checks whether type union has atleast one type statement. | ||
| 144 | + */ | ||
| 145 | + @Test (expected = ParserException.class) | ||
| 146 | + public void processUnionWithoutChild() throws IOException, ParserException { | ||
| 147 | + manager.getDataModel("src/test/resources/UnionWithoutChild.yang"); | ||
| 148 | + } | ||
| 141 | } | 149 | } | ... | ... |
| ... | @@ -71,19 +71,6 @@ public class UnitsListenerTest { | ... | @@ -71,19 +71,6 @@ public class UnitsListenerTest { |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | /** | 73 | /** |
| 74 | - * Checks invalid units statement as sub-statement of module. | ||
| 75 | - */ | ||
| 76 | - @Test | ||
| 77 | - public void processModuleSubStatementUnits() throws IOException, ParserException { | ||
| 78 | - thrown.expect(ParserException.class); | ||
| 79 | - thrown.expectMessage("mismatched input 'type' expecting {'anyxml', 'augment', 'choice', 'contact', " | ||
| 80 | - + "'container', 'description', 'extension', 'deviation', 'feature', 'grouping', 'identity'," | ||
| 81 | - + " 'import', 'include', 'leaf', 'leaf-list', 'list', 'notification', 'organization', " | ||
| 82 | - + "'reference', 'revision', 'rpc', 'typedef', 'uses', '}'}"); | ||
| 83 | - YangNode node = manager.getDataModel("src/test/resources/ModuleSubStatementUnits.yang"); | ||
| 84 | - } | ||
| 85 | - | ||
| 86 | - /** | ||
| 87 | * Checks invalid units statement(without statement end). | 74 | * Checks invalid units statement(without statement end). |
| 88 | */ | 75 | */ |
| 89 | @Test | 76 | @Test | ... | ... |
| 1 | -module Test { | ||
| 2 | - yang-version 1; | ||
| 3 | - namespace http://huawei.com; | ||
| 4 | - prefix Ant; | ||
| 5 | - leafs invalid-interval { | ||
| 6 | - type "uint16"; | ||
| 7 | - units "seconds"; | ||
| 8 | - description "Interval before a route is declared invalid"; | ||
| 9 | - config true; | ||
| 10 | - mandatory true; | ||
| 11 | - status current; | ||
| 12 | - reference "RFC 6020"; | ||
| 13 | - } | ||
| 14 | -} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | -module Test { | ||
| 2 | - yang-version 1; | ||
| 3 | - namespace http://huawei.com; | ||
| 4 | - prefix Ant; | ||
| 5 | - leaf-list invalid-interval { | ||
| 6 | - type "uint16"; | ||
| 7 | - units "seconds"; | ||
| 8 | - max-element 3; | ||
| 9 | - description "Interval before a route is declared invalid; | ||
| 10 | - config true; | ||
| 11 | - status current; | ||
| 12 | - reference "RFC 6020"; | ||
| 13 | - } | ||
| 14 | -} |
| 1 | -module Test { | ||
| 2 | - yang-version 1; | ||
| 3 | - namespace http://huawei.com; | ||
| 4 | - prefix Ant; | ||
| 5 | - leaf-list invalid-interval { | ||
| 6 | - type "uint16"; | ||
| 7 | - units "seconds"; | ||
| 8 | - min-element 3; | ||
| 9 | - description "Interval before a route is declared invalid"; | ||
| 10 | - config true; | ||
| 11 | - status current; | ||
| 12 | - reference "RFC 6020"; | ||
| 13 | - } | ||
| 14 | -} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -2,5 +2,13 @@ module Test { | ... | @@ -2,5 +2,13 @@ module Test { |
| 2 | yang-version 1; | 2 | yang-version 1; |
| 3 | namespace http://huawei.com; | 3 | namespace http://huawei.com; |
| 4 | prefix Ant; | 4 | prefix Ant; |
| 5 | - config invalid; | 5 | + list valid { |
| 6 | + key "invalid-interval"; | ||
| 7 | + leaf invalid-interval { | ||
| 8 | + type union { | ||
| 9 | + type "union"; | ||
| 10 | + } | ||
| 11 | + } | ||
| 12 | + } | ||
| 6 | } | 13 | } |
| 14 | + | ... | ... |
-
Please register or login to post a comment