Committed by
Gerrit Code Review
[ONOS-3878] parse tree traversal using listener framework
Change-Id: I53c18593281399f83a2b9bf9df2f7261c69c00b2
Showing
5 changed files
with
1602 additions
and
330 deletions
utils/yangutils/src/main/java/org/onosproject/yangutils/parser/impl/TreeWalkListener.java
0 → 100644
| 1 | +/* | ||
| 2 | + * Copyright 2016 Open Networking Laboratory | ||
| 3 | + * | ||
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + * you may not use this file except in compliance with the License. | ||
| 6 | + * You may obtain a copy of the License at | ||
| 7 | + * | ||
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + * | ||
| 10 | + * Unless required by applicable law or agreed to in writing, software | ||
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + * See the License for the specific language governing permissions and | ||
| 14 | + * limitations under the License. | ||
| 15 | + */ | ||
| 16 | + | ||
| 17 | +package org.onosproject.yangutils.parser.impl; | ||
| 18 | + | ||
| 19 | +import org.antlr.v4.runtime.ParserRuleContext; | ||
| 20 | +import org.antlr.v4.runtime.tree.ErrorNode; | ||
| 21 | +import org.antlr.v4.runtime.tree.TerminalNode; | ||
| 22 | +import org.onosproject.yangutils.datamodel.YangNode; | ||
| 23 | +import org.onosproject.yangutils.parser.Parsable; | ||
| 24 | +import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangListener; | ||
| 25 | +import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; | ||
| 26 | +import org.onosproject.yangutils.parser.impl.parserutils.ListenerError; | ||
| 27 | + | ||
| 28 | +import java.util.Stack; | ||
| 29 | + | ||
| 30 | +/** | ||
| 31 | + * ANTLR generates a parse-tree listener interface that responds to events | ||
| 32 | + * triggered by the built-in tree walker. The methods in listener are just | ||
| 33 | + * callbacks. This class implements listener interface and generates the | ||
| 34 | + * corresponding data model tree. | ||
| 35 | + */ | ||
| 36 | +public class TreeWalkListener implements GeneratedYangListener { | ||
| 37 | + | ||
| 38 | + // List of parsable node entries maintained in stack | ||
| 39 | + private Stack<Parsable> parsedDataStack = new Stack<>(); | ||
| 40 | + | ||
| 41 | + // Parse tree root node | ||
| 42 | + private YangNode rootNode; | ||
| 43 | + | ||
| 44 | + // Maintains the state of Exception. | ||
| 45 | + private ListenerError errorInformation = new ListenerError(); | ||
| 46 | + | ||
| 47 | + /** | ||
| 48 | + * Returns stack of parsable data. | ||
| 49 | + * | ||
| 50 | + * @return stack of parsable data | ||
| 51 | + */ | ||
| 52 | + public Stack<Parsable> getParsedDataStack() { | ||
| 53 | + return parsedDataStack; | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + /** | ||
| 57 | + * Returns error information. | ||
| 58 | + * | ||
| 59 | + * @return error information object having exception flag and message | ||
| 60 | + */ | ||
| 61 | + public ListenerError getErrorInformation() { | ||
| 62 | + return errorInformation; | ||
| 63 | + } | ||
| 64 | + | ||
| 65 | + /** | ||
| 66 | + * Returns root node. | ||
| 67 | + * | ||
| 68 | + * @return rootNode of data model tree. | ||
| 69 | + */ | ||
| 70 | + public YangNode getRootNode() { | ||
| 71 | + return rootNode; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + /** | ||
| 75 | + * Set parsed data stack. | ||
| 76 | + * | ||
| 77 | + * @param parsedDataStack stack of parsable data objects. | ||
| 78 | + */ | ||
| 79 | + public void setParsedDataStack(Stack<Parsable> parsedDataStack) { | ||
| 80 | + this.parsedDataStack = parsedDataStack; | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + /** | ||
| 84 | + * Set root node. | ||
| 85 | + * | ||
| 86 | + * @param rootNode root node of data model tree. | ||
| 87 | + */ | ||
| 88 | + public void setRootNode(YangNode rootNode) { | ||
| 89 | + this.rootNode = rootNode; | ||
| 90 | + } | ||
| 91 | + | ||
| 92 | + /** | ||
| 93 | + * Set listener error information. | ||
| 94 | + * | ||
| 95 | + * @param errorInformation error occurred during tree walk. | ||
| 96 | + */ | ||
| 97 | + public void setErrorInformation(ListenerError errorInformation) { | ||
| 98 | + this.errorInformation = errorInformation; | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + @Override | ||
| 102 | + public void enterYangfile(GeneratedYangParser.YangfileContext ctx) { | ||
| 103 | + //TODO: implement the method. | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + @Override | ||
| 107 | + public void exitYangfile(GeneratedYangParser.YangfileContext ctx) { | ||
| 108 | + //TODO: implement the method. | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + @Override | ||
| 112 | + public void enterModuleStatement(GeneratedYangParser.ModuleStatementContext ctx) { | ||
| 113 | + //TODO: implement the method. | ||
| 114 | + } | ||
| 115 | + | ||
| 116 | + @Override | ||
| 117 | + public void exitModuleStatement(GeneratedYangParser.ModuleStatementContext ctx) { | ||
| 118 | + //TODO: implement the method. | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + @Override | ||
| 122 | + public void enterModuleBody(GeneratedYangParser.ModuleBodyContext ctx) { | ||
| 123 | + //TODO: implement the method. | ||
| 124 | + } | ||
| 125 | + | ||
| 126 | + @Override | ||
| 127 | + public void exitModuleBody(GeneratedYangParser.ModuleBodyContext ctx) { | ||
| 128 | + //TODO: implement the method. | ||
| 129 | + } | ||
| 130 | + | ||
| 131 | + @Override | ||
| 132 | + public void enterModuleHeaderStatement(GeneratedYangParser.ModuleHeaderStatementContext ctx) { | ||
| 133 | + //TODO: implement the method. | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + @Override | ||
| 137 | + public void exitModuleHeaderStatement(GeneratedYangParser.ModuleHeaderStatementContext ctx) { | ||
| 138 | + //TODO: implement the method. | ||
| 139 | + } | ||
| 140 | + | ||
| 141 | + @Override | ||
| 142 | + public void enterLinkageStatements(GeneratedYangParser.LinkageStatementsContext ctx) { | ||
| 143 | + //TODO: implement the method. | ||
| 144 | + } | ||
| 145 | + | ||
| 146 | + @Override | ||
| 147 | + public void exitLinkageStatements(GeneratedYangParser.LinkageStatementsContext ctx) { | ||
| 148 | + //TODO: implement the method. | ||
| 149 | + } | ||
| 150 | + | ||
| 151 | + @Override | ||
| 152 | + public void enterMetaStatements(GeneratedYangParser.MetaStatementsContext ctx) { | ||
| 153 | + //TODO: implement the method. | ||
| 154 | + } | ||
| 155 | + | ||
| 156 | + @Override | ||
| 157 | + public void exitMetaStatements(GeneratedYangParser.MetaStatementsContext ctx) { | ||
| 158 | + //TODO: implement the method. | ||
| 159 | + } | ||
| 160 | + | ||
| 161 | + @Override | ||
| 162 | + public void enterRevisionStatements(GeneratedYangParser.RevisionStatementsContext ctx) { | ||
| 163 | + //TODO: implement the method. | ||
| 164 | + } | ||
| 165 | + | ||
| 166 | + @Override | ||
| 167 | + public void exitRevisionStatements(GeneratedYangParser.RevisionStatementsContext ctx) { | ||
| 168 | + //TODO: implement the method. | ||
| 169 | + } | ||
| 170 | + | ||
| 171 | + @Override | ||
| 172 | + public void enterBodyStatements(GeneratedYangParser.BodyStatementsContext ctx) { | ||
| 173 | + //TODO: implement the method. | ||
| 174 | + } | ||
| 175 | + | ||
| 176 | + @Override | ||
| 177 | + public void exitBodyStatements(GeneratedYangParser.BodyStatementsContext ctx) { | ||
| 178 | + //TODO: implement the method. | ||
| 179 | + } | ||
| 180 | + | ||
| 181 | + @Override | ||
| 182 | + public void enterYangVersionStatement(GeneratedYangParser.YangVersionStatementContext ctx) { | ||
| 183 | + //TODO: implement the method. | ||
| 184 | + } | ||
| 185 | + | ||
| 186 | + @Override | ||
| 187 | + public void exitYangVersionStatement(GeneratedYangParser.YangVersionStatementContext ctx) { | ||
| 188 | + //TODO: implement the method. | ||
| 189 | + } | ||
| 190 | + | ||
| 191 | + @Override | ||
| 192 | + public void enterNamespaceStatement(GeneratedYangParser.NamespaceStatementContext ctx) { | ||
| 193 | + //TODO: implement the method. | ||
| 194 | + } | ||
| 195 | + | ||
| 196 | + @Override | ||
| 197 | + public void exitNamespaceStatement(GeneratedYangParser.NamespaceStatementContext ctx) { | ||
| 198 | + //TODO: implement the method. | ||
| 199 | + } | ||
| 200 | + | ||
| 201 | + @Override | ||
| 202 | + public void enterPrefixStatement(GeneratedYangParser.PrefixStatementContext ctx) { | ||
| 203 | + //TODO: implement the method. | ||
| 204 | + } | ||
| 205 | + | ||
| 206 | + @Override | ||
| 207 | + public void exitPrefixStatement(GeneratedYangParser.PrefixStatementContext ctx) { | ||
| 208 | + //TODO: implement the method. | ||
| 209 | + } | ||
| 210 | + | ||
| 211 | + @Override | ||
| 212 | + public void enterImportStatement(GeneratedYangParser.ImportStatementContext ctx) { | ||
| 213 | + //TODO: implement the method. | ||
| 214 | + } | ||
| 215 | + | ||
| 216 | + @Override | ||
| 217 | + public void exitImportStatement(GeneratedYangParser.ImportStatementContext ctx) { | ||
| 218 | + //TODO: implement the method. | ||
| 219 | + } | ||
| 220 | + | ||
| 221 | + @Override | ||
| 222 | + public void enterImportStatementBody(GeneratedYangParser.ImportStatementBodyContext ctx) { | ||
| 223 | + //TODO: implement the method. | ||
| 224 | + } | ||
| 225 | + | ||
| 226 | + @Override | ||
| 227 | + public void exitImportStatementBody(GeneratedYangParser.ImportStatementBodyContext ctx) { | ||
| 228 | + //TODO: implement the method. | ||
| 229 | + } | ||
| 230 | + | ||
| 231 | + @Override | ||
| 232 | + public void enterRevisionDateStatement(GeneratedYangParser.RevisionDateStatementContext ctx) { | ||
| 233 | + //TODO: implement the method. | ||
| 234 | + } | ||
| 235 | + | ||
| 236 | + @Override | ||
| 237 | + public void exitRevisionDateStatement(GeneratedYangParser.RevisionDateStatementContext ctx) { | ||
| 238 | + //TODO: implement the method. | ||
| 239 | + } | ||
| 240 | + | ||
| 241 | + @Override | ||
| 242 | + public void enterIncludeStatement(GeneratedYangParser.IncludeStatementContext ctx) { | ||
| 243 | + //TODO: implement the method. | ||
| 244 | + } | ||
| 245 | + | ||
| 246 | + @Override | ||
| 247 | + public void exitIncludeStatement(GeneratedYangParser.IncludeStatementContext ctx) { | ||
| 248 | + //TODO: implement the method. | ||
| 249 | + } | ||
| 250 | + | ||
| 251 | + @Override | ||
| 252 | + public void enterOrganizationStatement(GeneratedYangParser.OrganizationStatementContext ctx) { | ||
| 253 | + //TODO: implement the method. | ||
| 254 | + } | ||
| 255 | + | ||
| 256 | + @Override | ||
| 257 | + public void exitOrganizationStatement(GeneratedYangParser.OrganizationStatementContext ctx) { | ||
| 258 | + //TODO: implement the method. | ||
| 259 | + } | ||
| 260 | + | ||
| 261 | + @Override | ||
| 262 | + public void enterContactStatement(GeneratedYangParser.ContactStatementContext ctx) { | ||
| 263 | + //TODO: implement the method. | ||
| 264 | + } | ||
| 265 | + | ||
| 266 | + @Override | ||
| 267 | + public void exitContactStatement(GeneratedYangParser.ContactStatementContext ctx) { | ||
| 268 | + //TODO: implement the method. | ||
| 269 | + } | ||
| 270 | + | ||
| 271 | + @Override | ||
| 272 | + public void enterDescriptionStatement(GeneratedYangParser.DescriptionStatementContext ctx) { | ||
| 273 | + //TODO: implement the method. | ||
| 274 | + } | ||
| 275 | + | ||
| 276 | + @Override | ||
| 277 | + public void exitDescriptionStatement(GeneratedYangParser.DescriptionStatementContext ctx) { | ||
| 278 | + //TODO: implement the method. | ||
| 279 | + } | ||
| 280 | + | ||
| 281 | + @Override | ||
| 282 | + public void enterReferenceStatement(GeneratedYangParser.ReferenceStatementContext ctx) { | ||
| 283 | + //TODO: implement the method. | ||
| 284 | + } | ||
| 285 | + | ||
| 286 | + @Override | ||
| 287 | + public void exitReferenceStatement(GeneratedYangParser.ReferenceStatementContext ctx) { | ||
| 288 | + //TODO: implement the method. | ||
| 289 | + } | ||
| 290 | + | ||
| 291 | + @Override | ||
| 292 | + public void enterRevisionStatement(GeneratedYangParser.RevisionStatementContext ctx) { | ||
| 293 | + //TODO: implement the method. | ||
| 294 | + } | ||
| 295 | + | ||
| 296 | + @Override | ||
| 297 | + public void exitRevisionStatement(GeneratedYangParser.RevisionStatementContext ctx) { | ||
| 298 | + //TODO: implement the method. | ||
| 299 | + } | ||
| 300 | + | ||
| 301 | + @Override | ||
| 302 | + public void enterRevisionStatementBody(GeneratedYangParser.RevisionStatementBodyContext ctx) { | ||
| 303 | + //TODO: implement the method. | ||
| 304 | + } | ||
| 305 | + | ||
| 306 | + @Override | ||
| 307 | + public void exitRevisionStatementBody(GeneratedYangParser.RevisionStatementBodyContext ctx) { | ||
| 308 | + //TODO: implement the method. | ||
| 309 | + } | ||
| 310 | + | ||
| 311 | + @Override | ||
| 312 | + public void enterSubModuleStatement(GeneratedYangParser.SubModuleStatementContext ctx) { | ||
| 313 | + //TODO: implement the method. | ||
| 314 | + } | ||
| 315 | + | ||
| 316 | + @Override | ||
| 317 | + public void exitSubModuleStatement(GeneratedYangParser.SubModuleStatementContext ctx) { | ||
| 318 | + //TODO: implement the method. | ||
| 319 | + } | ||
| 320 | + | ||
| 321 | + @Override | ||
| 322 | + public void enterSubmoduleBody(GeneratedYangParser.SubmoduleBodyContext ctx) { | ||
| 323 | + //TODO: implement the method. | ||
| 324 | + } | ||
| 325 | + | ||
| 326 | + @Override | ||
| 327 | + public void exitSubmoduleBody(GeneratedYangParser.SubmoduleBodyContext ctx) { | ||
| 328 | + //TODO: implement the method. | ||
| 329 | + } | ||
| 330 | + | ||
| 331 | + @Override | ||
| 332 | + public void enterSubmoduleHeaderStatement(GeneratedYangParser.SubmoduleHeaderStatementContext ctx) { | ||
| 333 | + //TODO: implement the method. | ||
| 334 | + } | ||
| 335 | + | ||
| 336 | + @Override | ||
| 337 | + public void exitSubmoduleHeaderStatement(GeneratedYangParser.SubmoduleHeaderStatementContext ctx) { | ||
| 338 | + //TODO: implement the method. | ||
| 339 | + } | ||
| 340 | + | ||
| 341 | + @Override | ||
| 342 | + public void enterBelongstoStatement(GeneratedYangParser.BelongstoStatementContext ctx) { | ||
| 343 | + //TODO: implement the method. | ||
| 344 | + } | ||
| 345 | + | ||
| 346 | + @Override | ||
| 347 | + public void exitBelongstoStatement(GeneratedYangParser.BelongstoStatementContext ctx) { | ||
| 348 | + //TODO: implement the method. | ||
| 349 | + } | ||
| 350 | + | ||
| 351 | + @Override | ||
| 352 | + public void enterBelongstoStatementBody(GeneratedYangParser.BelongstoStatementBodyContext ctx) { | ||
| 353 | + //TODO: implement the method. | ||
| 354 | + } | ||
| 355 | + | ||
| 356 | + @Override | ||
| 357 | + public void exitBelongstoStatementBody(GeneratedYangParser.BelongstoStatementBodyContext ctx) { | ||
| 358 | + //TODO: implement the method. | ||
| 359 | + } | ||
| 360 | + | ||
| 361 | + @Override | ||
| 362 | + public void enterExtensionStatement(GeneratedYangParser.ExtensionStatementContext ctx) { | ||
| 363 | + //TODO: implement the method. | ||
| 364 | + } | ||
| 365 | + | ||
| 366 | + @Override | ||
| 367 | + public void exitExtensionStatement(GeneratedYangParser.ExtensionStatementContext ctx) { | ||
| 368 | + //TODO: implement the method. | ||
| 369 | + } | ||
| 370 | + | ||
| 371 | + @Override | ||
| 372 | + public void enterExtensionBody(GeneratedYangParser.ExtensionBodyContext ctx) { | ||
| 373 | + //TODO: implement the method. | ||
| 374 | + } | ||
| 375 | + | ||
| 376 | + @Override | ||
| 377 | + public void exitExtensionBody(GeneratedYangParser.ExtensionBodyContext ctx) { | ||
| 378 | + //TODO: implement the method. | ||
| 379 | + } | ||
| 380 | + | ||
| 381 | + @Override | ||
| 382 | + public void enterArgumentStatement(GeneratedYangParser.ArgumentStatementContext ctx) { | ||
| 383 | + //TODO: implement the method. | ||
| 384 | + } | ||
| 385 | + | ||
| 386 | + @Override | ||
| 387 | + public void exitArgumentStatement(GeneratedYangParser.ArgumentStatementContext ctx) { | ||
| 388 | + //TODO: implement the method. | ||
| 389 | + } | ||
| 390 | + | ||
| 391 | + @Override | ||
| 392 | + public void enterArgumentBody(GeneratedYangParser.ArgumentBodyContext ctx) { | ||
| 393 | + //TODO: implement the method. | ||
| 394 | + } | ||
| 395 | + | ||
| 396 | + @Override | ||
| 397 | + public void exitArgumentBody(GeneratedYangParser.ArgumentBodyContext ctx) { | ||
| 398 | + //TODO: implement the method. | ||
| 399 | + } | ||
| 400 | + | ||
| 401 | + @Override | ||
| 402 | + public void enterYinElementStatement(GeneratedYangParser.YinElementStatementContext ctx) { | ||
| 403 | + //TODO: implement the method. | ||
| 404 | + } | ||
| 405 | + | ||
| 406 | + @Override | ||
| 407 | + public void exitYinElementStatement(GeneratedYangParser.YinElementStatementContext ctx) { | ||
| 408 | + //TODO: implement the method. | ||
| 409 | + } | ||
| 410 | + | ||
| 411 | + @Override | ||
| 412 | + public void enterIdentityStatement(GeneratedYangParser.IdentityStatementContext ctx) { | ||
| 413 | + //TODO: implement the method. | ||
| 414 | + } | ||
| 415 | + | ||
| 416 | + @Override | ||
| 417 | + public void exitIdentityStatement(GeneratedYangParser.IdentityStatementContext ctx) { | ||
| 418 | + //TODO: implement the method. | ||
| 419 | + } | ||
| 420 | + | ||
| 421 | + @Override | ||
| 422 | + public void enterIdentityBody(GeneratedYangParser.IdentityBodyContext ctx) { | ||
| 423 | + //TODO: implement the method. | ||
| 424 | + } | ||
| 425 | + | ||
| 426 | + @Override | ||
| 427 | + public void exitIdentityBody(GeneratedYangParser.IdentityBodyContext ctx) { | ||
| 428 | + //TODO: implement the method. | ||
| 429 | + } | ||
| 430 | + | ||
| 431 | + @Override | ||
| 432 | + public void enterBaseStatement(GeneratedYangParser.BaseStatementContext ctx) { | ||
| 433 | + //TODO: implement the method. | ||
| 434 | + } | ||
| 435 | + | ||
| 436 | + @Override | ||
| 437 | + public void exitBaseStatement(GeneratedYangParser.BaseStatementContext ctx) { | ||
| 438 | + //TODO: implement the method. | ||
| 439 | + } | ||
| 440 | + | ||
| 441 | + @Override | ||
| 442 | + public void enterFeatureStatement(GeneratedYangParser.FeatureStatementContext ctx) { | ||
| 443 | + //TODO: implement the method. | ||
| 444 | + } | ||
| 445 | + | ||
| 446 | + @Override | ||
| 447 | + public void exitFeatureStatement(GeneratedYangParser.FeatureStatementContext ctx) { | ||
| 448 | + //TODO: implement the method. | ||
| 449 | + } | ||
| 450 | + | ||
| 451 | + @Override | ||
| 452 | + public void enterFeatureBody(GeneratedYangParser.FeatureBodyContext ctx) { | ||
| 453 | + //TODO: implement the method. | ||
| 454 | + } | ||
| 455 | + | ||
| 456 | + @Override | ||
| 457 | + public void exitFeatureBody(GeneratedYangParser.FeatureBodyContext ctx) { | ||
| 458 | + //TODO: implement the method. | ||
| 459 | + } | ||
| 460 | + | ||
| 461 | + @Override | ||
| 462 | + public void enterDataDefStatement(GeneratedYangParser.DataDefStatementContext ctx) { | ||
| 463 | + //TODO: implement the method. | ||
| 464 | + } | ||
| 465 | + | ||
| 466 | + @Override | ||
| 467 | + public void exitDataDefStatement(GeneratedYangParser.DataDefStatementContext ctx) { | ||
| 468 | + //TODO: implement the method. | ||
| 469 | + } | ||
| 470 | + | ||
| 471 | + @Override | ||
| 472 | + public void enterIfFeatureStatement(GeneratedYangParser.IfFeatureStatementContext ctx) { | ||
| 473 | + //TODO: implement the method. | ||
| 474 | + } | ||
| 475 | + | ||
| 476 | + @Override | ||
| 477 | + public void exitIfFeatureStatement(GeneratedYangParser.IfFeatureStatementContext ctx) { | ||
| 478 | + //TODO: implement the method. | ||
| 479 | + } | ||
| 480 | + | ||
| 481 | + @Override | ||
| 482 | + public void enterUnitsStatement(GeneratedYangParser.UnitsStatementContext ctx) { | ||
| 483 | + //TODO: implement the method. | ||
| 484 | + } | ||
| 485 | + | ||
| 486 | + @Override | ||
| 487 | + public void exitUnitsStatement(GeneratedYangParser.UnitsStatementContext ctx) { | ||
| 488 | + //TODO: implement the method. | ||
| 489 | + } | ||
| 490 | + | ||
| 491 | + @Override | ||
| 492 | + public void enterTypedefStatement(GeneratedYangParser.TypedefStatementContext ctx) { | ||
| 493 | + //TODO: implement the method. | ||
| 494 | + } | ||
| 495 | + | ||
| 496 | + @Override | ||
| 497 | + public void exitTypedefStatement(GeneratedYangParser.TypedefStatementContext ctx) { | ||
| 498 | + //TODO: implement the method. | ||
| 499 | + } | ||
| 500 | + | ||
| 501 | + @Override | ||
| 502 | + public void enterTypeStatement(GeneratedYangParser.TypeStatementContext ctx) { | ||
| 503 | + //TODO: implement the method. | ||
| 504 | + } | ||
| 505 | + | ||
| 506 | + @Override | ||
| 507 | + public void exitTypeStatement(GeneratedYangParser.TypeStatementContext ctx) { | ||
| 508 | + //TODO: implement the method. | ||
| 509 | + } | ||
| 510 | + | ||
| 511 | + @Override | ||
| 512 | + public void enterTypeBodyStatements(GeneratedYangParser.TypeBodyStatementsContext ctx) { | ||
| 513 | + //TODO: implement the method. | ||
| 514 | + } | ||
| 515 | + | ||
| 516 | + @Override | ||
| 517 | + public void exitTypeBodyStatements(GeneratedYangParser.TypeBodyStatementsContext ctx) { | ||
| 518 | + //TODO: implement the method. | ||
| 519 | + } | ||
| 520 | + | ||
| 521 | + @Override | ||
| 522 | + public void enterNumericalRestrictions(GeneratedYangParser.NumericalRestrictionsContext ctx) { | ||
| 523 | + //TODO: implement the method. | ||
| 524 | + } | ||
| 525 | + | ||
| 526 | + @Override | ||
| 527 | + public void exitNumericalRestrictions(GeneratedYangParser.NumericalRestrictionsContext ctx) { | ||
| 528 | + //TODO: implement the method. | ||
| 529 | + } | ||
| 530 | + | ||
| 531 | + @Override | ||
| 532 | + public void enterRangeStatement(GeneratedYangParser.RangeStatementContext ctx) { | ||
| 533 | + //TODO: implement the method. | ||
| 534 | + } | ||
| 535 | + | ||
| 536 | + @Override | ||
| 537 | + public void exitRangeStatement(GeneratedYangParser.RangeStatementContext ctx) { | ||
| 538 | + //TODO: implement the method. | ||
| 539 | + } | ||
| 540 | + | ||
| 541 | + @Override | ||
| 542 | + public void enterCommonStatements(GeneratedYangParser.CommonStatementsContext ctx) { | ||
| 543 | + //TODO: implement the method. | ||
| 544 | + } | ||
| 545 | + | ||
| 546 | + @Override | ||
| 547 | + public void exitCommonStatements(GeneratedYangParser.CommonStatementsContext ctx) { | ||
| 548 | + //TODO: implement the method. | ||
| 549 | + } | ||
| 550 | + | ||
| 551 | + @Override | ||
| 552 | + public void enterStringRestrictions(GeneratedYangParser.StringRestrictionsContext ctx) { | ||
| 553 | + //TODO: implement the method. | ||
| 554 | + } | ||
| 555 | + | ||
| 556 | + @Override | ||
| 557 | + public void exitStringRestrictions(GeneratedYangParser.StringRestrictionsContext ctx) { | ||
| 558 | + //TODO: implement the method. | ||
| 559 | + } | ||
| 560 | + | ||
| 561 | + @Override | ||
| 562 | + public void enterLengthStatement(GeneratedYangParser.LengthStatementContext ctx) { | ||
| 563 | + //TODO: implement the method. | ||
| 564 | + } | ||
| 565 | + | ||
| 566 | + @Override | ||
| 567 | + public void exitLengthStatement(GeneratedYangParser.LengthStatementContext ctx) { | ||
| 568 | + //TODO: implement the method. | ||
| 569 | + } | ||
| 570 | + | ||
| 571 | + @Override | ||
| 572 | + public void enterPatternStatement(GeneratedYangParser.PatternStatementContext ctx) { | ||
| 573 | + //TODO: implement the method. | ||
| 574 | + } | ||
| 575 | + | ||
| 576 | + @Override | ||
| 577 | + public void exitPatternStatement(GeneratedYangParser.PatternStatementContext ctx) { | ||
| 578 | + //TODO: implement the method. | ||
| 579 | + } | ||
| 580 | + | ||
| 581 | + @Override | ||
| 582 | + public void enterDefaultStatement(GeneratedYangParser.DefaultStatementContext ctx) { | ||
| 583 | + //TODO: implement the method. | ||
| 584 | + } | ||
| 585 | + | ||
| 586 | + @Override | ||
| 587 | + public void exitDefaultStatement(GeneratedYangParser.DefaultStatementContext ctx) { | ||
| 588 | + //TODO: implement the method. | ||
| 589 | + } | ||
| 590 | + | ||
| 591 | + @Override | ||
| 592 | + public void enterEnumSpecification(GeneratedYangParser.EnumSpecificationContext ctx) { | ||
| 593 | + //TODO: implement the method. | ||
| 594 | + } | ||
| 595 | + | ||
| 596 | + @Override | ||
| 597 | + public void exitEnumSpecification(GeneratedYangParser.EnumSpecificationContext ctx) { | ||
| 598 | + //TODO: implement the method. | ||
| 599 | + } | ||
| 600 | + | ||
| 601 | + @Override | ||
| 602 | + public void enterEnumStatement(GeneratedYangParser.EnumStatementContext ctx) { | ||
| 603 | + //TODO: implement the method. | ||
| 604 | + } | ||
| 605 | + | ||
| 606 | + @Override | ||
| 607 | + public void exitEnumStatement(GeneratedYangParser.EnumStatementContext ctx) { | ||
| 608 | + //TODO: implement the method. | ||
| 609 | + } | ||
| 610 | + | ||
| 611 | + @Override | ||
| 612 | + public void enterEnumStatementBody(GeneratedYangParser.EnumStatementBodyContext ctx) { | ||
| 613 | + //TODO: implement the method. | ||
| 614 | + } | ||
| 615 | + | ||
| 616 | + @Override | ||
| 617 | + public void exitEnumStatementBody(GeneratedYangParser.EnumStatementBodyContext ctx) { | ||
| 618 | + //TODO: implement the method. | ||
| 619 | + } | ||
| 620 | + | ||
| 621 | + @Override | ||
| 622 | + public void enterLeafrefSpecification(GeneratedYangParser.LeafrefSpecificationContext ctx) { | ||
| 623 | + //TODO: implement the method. | ||
| 624 | + } | ||
| 625 | + | ||
| 626 | + @Override | ||
| 627 | + public void exitLeafrefSpecification(GeneratedYangParser.LeafrefSpecificationContext ctx) { | ||
| 628 | + //TODO: implement the method. | ||
| 629 | + } | ||
| 630 | + | ||
| 631 | + @Override | ||
| 632 | + public void enterPathStatement(GeneratedYangParser.PathStatementContext ctx) { | ||
| 633 | + //TODO: implement the method. | ||
| 634 | + } | ||
| 635 | + | ||
| 636 | + @Override | ||
| 637 | + public void exitPathStatement(GeneratedYangParser.PathStatementContext ctx) { | ||
| 638 | + //TODO: implement the method. | ||
| 639 | + } | ||
| 640 | + | ||
| 641 | + @Override | ||
| 642 | + public void enterRequireInstanceStatement(GeneratedYangParser.RequireInstanceStatementContext ctx) { | ||
| 643 | + //TODO: implement the method. | ||
| 644 | + } | ||
| 645 | + | ||
| 646 | + @Override | ||
| 647 | + public void exitRequireInstanceStatement(GeneratedYangParser.RequireInstanceStatementContext ctx) { | ||
| 648 | + //TODO: implement the method. | ||
| 649 | + } | ||
| 650 | + | ||
| 651 | + @Override | ||
| 652 | + public void enterInstanceIdentifierSpecification(GeneratedYangParser.InstanceIdentifierSpecificationContext ctx) { | ||
| 653 | + //TODO: implement the method. | ||
| 654 | + } | ||
| 655 | + | ||
| 656 | + @Override | ||
| 657 | + public void exitInstanceIdentifierSpecification(GeneratedYangParser.InstanceIdentifierSpecificationContext ctx) { | ||
| 658 | + //TODO: implement the method. | ||
| 659 | + } | ||
| 660 | + | ||
| 661 | + @Override | ||
| 662 | + public void enterIdentityrefSpecification(GeneratedYangParser.IdentityrefSpecificationContext ctx) { | ||
| 663 | + //TODO: implement the method. | ||
| 664 | + } | ||
| 665 | + | ||
| 666 | + @Override | ||
| 667 | + public void exitIdentityrefSpecification(GeneratedYangParser.IdentityrefSpecificationContext ctx) { | ||
| 668 | + //TODO: implement the method. | ||
| 669 | + } | ||
| 670 | + | ||
| 671 | + @Override | ||
| 672 | + public void enterUnionSpecification(GeneratedYangParser.UnionSpecificationContext ctx) { | ||
| 673 | + //TODO: implement the method. | ||
| 674 | + } | ||
| 675 | + | ||
| 676 | + @Override | ||
| 677 | + public void exitUnionSpecification(GeneratedYangParser.UnionSpecificationContext ctx) { | ||
| 678 | + //TODO: implement the method. | ||
| 679 | + } | ||
| 680 | + | ||
| 681 | + @Override | ||
| 682 | + public void enterBitsSpecification(GeneratedYangParser.BitsSpecificationContext ctx) { | ||
| 683 | + //TODO: implement the method. | ||
| 684 | + } | ||
| 685 | + | ||
| 686 | + @Override | ||
| 687 | + public void exitBitsSpecification(GeneratedYangParser.BitsSpecificationContext ctx) { | ||
| 688 | + //TODO: implement the method. | ||
| 689 | + } | ||
| 690 | + | ||
| 691 | + @Override | ||
| 692 | + public void enterBitStatement(GeneratedYangParser.BitStatementContext ctx) { | ||
| 693 | + //TODO: implement the method. | ||
| 694 | + } | ||
| 695 | + | ||
| 696 | + @Override | ||
| 697 | + public void exitBitStatement(GeneratedYangParser.BitStatementContext ctx) { | ||
| 698 | + //TODO: implement the method. | ||
| 699 | + } | ||
| 700 | + | ||
| 701 | + @Override | ||
| 702 | + public void enterBitBodyStatement(GeneratedYangParser.BitBodyStatementContext ctx) { | ||
| 703 | + //TODO: implement the method. | ||
| 704 | + } | ||
| 705 | + | ||
| 706 | + @Override | ||
| 707 | + public void exitBitBodyStatement(GeneratedYangParser.BitBodyStatementContext ctx) { | ||
| 708 | + //TODO: implement the method. | ||
| 709 | + } | ||
| 710 | + | ||
| 711 | + @Override | ||
| 712 | + public void enterPositionStatement(GeneratedYangParser.PositionStatementContext ctx) { | ||
| 713 | + //TODO: implement the method. | ||
| 714 | + } | ||
| 715 | + | ||
| 716 | + @Override | ||
| 717 | + public void exitPositionStatement(GeneratedYangParser.PositionStatementContext ctx) { | ||
| 718 | + //TODO: implement the method. | ||
| 719 | + } | ||
| 720 | + | ||
| 721 | + @Override | ||
| 722 | + public void enterStatusStatement(GeneratedYangParser.StatusStatementContext ctx) { | ||
| 723 | + //TODO: implement the method. | ||
| 724 | + } | ||
| 725 | + | ||
| 726 | + @Override | ||
| 727 | + public void exitStatusStatement(GeneratedYangParser.StatusStatementContext ctx) { | ||
| 728 | + //TODO: implement the method. | ||
| 729 | + } | ||
| 730 | + | ||
| 731 | + @Override | ||
| 732 | + public void enterConfigStatement(GeneratedYangParser.ConfigStatementContext ctx) { | ||
| 733 | + //TODO: implement the method. | ||
| 734 | + } | ||
| 735 | + | ||
| 736 | + @Override | ||
| 737 | + public void exitConfigStatement(GeneratedYangParser.ConfigStatementContext ctx) { | ||
| 738 | + //TODO: implement the method. | ||
| 739 | + } | ||
| 740 | + | ||
| 741 | + @Override | ||
| 742 | + public void enterMandatoryStatement(GeneratedYangParser.MandatoryStatementContext ctx) { | ||
| 743 | + //TODO: implement the method. | ||
| 744 | + } | ||
| 745 | + | ||
| 746 | + @Override | ||
| 747 | + public void exitMandatoryStatement(GeneratedYangParser.MandatoryStatementContext ctx) { | ||
| 748 | + //TODO: implement the method. | ||
| 749 | + } | ||
| 750 | + | ||
| 751 | + @Override | ||
| 752 | + public void enterPresenceStatement(GeneratedYangParser.PresenceStatementContext ctx) { | ||
| 753 | + //TODO: implement the method. | ||
| 754 | + } | ||
| 755 | + | ||
| 756 | + @Override | ||
| 757 | + public void exitPresenceStatement(GeneratedYangParser.PresenceStatementContext ctx) { | ||
| 758 | + //TODO: implement the method. | ||
| 759 | + } | ||
| 760 | + | ||
| 761 | + @Override | ||
| 762 | + public void enterOrderedByStatement(GeneratedYangParser.OrderedByStatementContext ctx) { | ||
| 763 | + //TODO: implement the method. | ||
| 764 | + } | ||
| 765 | + | ||
| 766 | + @Override | ||
| 767 | + public void exitOrderedByStatement(GeneratedYangParser.OrderedByStatementContext ctx) { | ||
| 768 | + //TODO: implement the method. | ||
| 769 | + } | ||
| 770 | + | ||
| 771 | + @Override | ||
| 772 | + public void enterMustStatement(GeneratedYangParser.MustStatementContext ctx) { | ||
| 773 | + //TODO: implement the method. | ||
| 774 | + } | ||
| 775 | + | ||
| 776 | + @Override | ||
| 777 | + public void exitMustStatement(GeneratedYangParser.MustStatementContext ctx) { | ||
| 778 | + //TODO: implement the method. | ||
| 779 | + } | ||
| 780 | + | ||
| 781 | + @Override | ||
| 782 | + public void enterErrorMessageStatement(GeneratedYangParser.ErrorMessageStatementContext ctx) { | ||
| 783 | + //TODO: implement the method. | ||
| 784 | + } | ||
| 785 | + | ||
| 786 | + @Override | ||
| 787 | + public void exitErrorMessageStatement(GeneratedYangParser.ErrorMessageStatementContext ctx) { | ||
| 788 | + //TODO: implement the method. | ||
| 789 | + } | ||
| 790 | + | ||
| 791 | + @Override | ||
| 792 | + public void enterErrorAppTagStatement(GeneratedYangParser.ErrorAppTagStatementContext ctx) { | ||
| 793 | + //TODO: implement the method. | ||
| 794 | + } | ||
| 795 | + | ||
| 796 | + @Override | ||
| 797 | + public void exitErrorAppTagStatement(GeneratedYangParser.ErrorAppTagStatementContext ctx) { | ||
| 798 | + //TODO: implement the method. | ||
| 799 | + } | ||
| 800 | + | ||
| 801 | + @Override | ||
| 802 | + public void enterMinElementsStatement(GeneratedYangParser.MinElementsStatementContext ctx) { | ||
| 803 | + //TODO: implement the method. | ||
| 804 | + } | ||
| 805 | + | ||
| 806 | + @Override | ||
| 807 | + public void exitMinElementsStatement(GeneratedYangParser.MinElementsStatementContext ctx) { | ||
| 808 | + //TODO: implement the method. | ||
| 809 | + } | ||
| 810 | + | ||
| 811 | + @Override | ||
| 812 | + public void enterMaxElementsStatement(GeneratedYangParser.MaxElementsStatementContext ctx) { | ||
| 813 | + //TODO: implement the method. | ||
| 814 | + } | ||
| 815 | + | ||
| 816 | + @Override | ||
| 817 | + public void exitMaxElementsStatement(GeneratedYangParser.MaxElementsStatementContext ctx) { | ||
| 818 | + //TODO: implement the method. | ||
| 819 | + } | ||
| 820 | + | ||
| 821 | + @Override | ||
| 822 | + public void enterMaxValueArgument(GeneratedYangParser.MaxValueArgumentContext ctx) { | ||
| 823 | + //TODO: implement the method. | ||
| 824 | + } | ||
| 825 | + | ||
| 826 | + @Override | ||
| 827 | + public void exitMaxValueArgument(GeneratedYangParser.MaxValueArgumentContext ctx) { | ||
| 828 | + //TODO: implement the method. | ||
| 829 | + } | ||
| 830 | + | ||
| 831 | + @Override | ||
| 832 | + public void enterValueStatement(GeneratedYangParser.ValueStatementContext ctx) { | ||
| 833 | + //TODO: implement the method. | ||
| 834 | + } | ||
| 835 | + | ||
| 836 | + @Override | ||
| 837 | + public void exitValueStatement(GeneratedYangParser.ValueStatementContext ctx) { | ||
| 838 | + //TODO: implement the method. | ||
| 839 | + } | ||
| 840 | + | ||
| 841 | + @Override | ||
| 842 | + public void enterGroupingStatement(GeneratedYangParser.GroupingStatementContext ctx) { | ||
| 843 | + //TODO: implement the method. | ||
| 844 | + } | ||
| 845 | + | ||
| 846 | + @Override | ||
| 847 | + public void exitGroupingStatement(GeneratedYangParser.GroupingStatementContext ctx) { | ||
| 848 | + //TODO: implement the method. | ||
| 849 | + } | ||
| 850 | + | ||
| 851 | + @Override | ||
| 852 | + public void enterContainerStatement(GeneratedYangParser.ContainerStatementContext ctx) { | ||
| 853 | + //TODO: implement the method. | ||
| 854 | + } | ||
| 855 | + | ||
| 856 | + @Override | ||
| 857 | + public void exitContainerStatement(GeneratedYangParser.ContainerStatementContext ctx) { | ||
| 858 | + //TODO: implement the method. | ||
| 859 | + } | ||
| 860 | + | ||
| 861 | + @Override | ||
| 862 | + public void enterLeafStatement(GeneratedYangParser.LeafStatementContext ctx) { | ||
| 863 | + //TODO: implement the method. | ||
| 864 | + } | ||
| 865 | + | ||
| 866 | + @Override | ||
| 867 | + public void exitLeafStatement(GeneratedYangParser.LeafStatementContext ctx) { | ||
| 868 | + //TODO: implement the method. | ||
| 869 | + } | ||
| 870 | + | ||
| 871 | + @Override | ||
| 872 | + public void enterLeafListStatement(GeneratedYangParser.LeafListStatementContext ctx) { | ||
| 873 | + //TODO: implement the method. | ||
| 874 | + } | ||
| 875 | + | ||
| 876 | + @Override | ||
| 877 | + public void exitLeafListStatement(GeneratedYangParser.LeafListStatementContext ctx) { | ||
| 878 | + //TODO: implement the method. | ||
| 879 | + } | ||
| 880 | + | ||
| 881 | + @Override | ||
| 882 | + public void enterListStatement(GeneratedYangParser.ListStatementContext ctx) { | ||
| 883 | + //TODO: implement the method. | ||
| 884 | + } | ||
| 885 | + | ||
| 886 | + @Override | ||
| 887 | + public void exitListStatement(GeneratedYangParser.ListStatementContext ctx) { | ||
| 888 | + //TODO: implement the method. | ||
| 889 | + } | ||
| 890 | + | ||
| 891 | + @Override | ||
| 892 | + public void enterKeyStatement(GeneratedYangParser.KeyStatementContext ctx) { | ||
| 893 | + //TODO: implement the method. | ||
| 894 | + } | ||
| 895 | + | ||
| 896 | + @Override | ||
| 897 | + public void exitKeyStatement(GeneratedYangParser.KeyStatementContext ctx) { | ||
| 898 | + //TODO: implement the method. | ||
| 899 | + } | ||
| 900 | + | ||
| 901 | + @Override | ||
| 902 | + public void enterUniqueStatement(GeneratedYangParser.UniqueStatementContext ctx) { | ||
| 903 | + //TODO: implement the method. | ||
| 904 | + } | ||
| 905 | + | ||
| 906 | + @Override | ||
| 907 | + public void exitUniqueStatement(GeneratedYangParser.UniqueStatementContext ctx) { | ||
| 908 | + //TODO: implement the method. | ||
| 909 | + } | ||
| 910 | + | ||
| 911 | + @Override | ||
| 912 | + public void enterChoiceStatement(GeneratedYangParser.ChoiceStatementContext ctx) { | ||
| 913 | + //TODO: implement the method. | ||
| 914 | + } | ||
| 915 | + | ||
| 916 | + @Override | ||
| 917 | + public void exitChoiceStatement(GeneratedYangParser.ChoiceStatementContext ctx) { | ||
| 918 | + //TODO: implement the method. | ||
| 919 | + } | ||
| 920 | + | ||
| 921 | + @Override | ||
| 922 | + public void enterShortCaseStatement(GeneratedYangParser.ShortCaseStatementContext ctx) { | ||
| 923 | + //TODO: implement the method. | ||
| 924 | + } | ||
| 925 | + | ||
| 926 | + @Override | ||
| 927 | + public void exitShortCaseStatement(GeneratedYangParser.ShortCaseStatementContext ctx) { | ||
| 928 | + //TODO: implement the method. | ||
| 929 | + } | ||
| 930 | + | ||
| 931 | + @Override | ||
| 932 | + public void enterCaseStatement(GeneratedYangParser.CaseStatementContext ctx) { | ||
| 933 | + //TODO: implement the method. | ||
| 934 | + } | ||
| 935 | + | ||
| 936 | + @Override | ||
| 937 | + public void exitCaseStatement(GeneratedYangParser.CaseStatementContext ctx) { | ||
| 938 | + //TODO: implement the method. | ||
| 939 | + } | ||
| 940 | + | ||
| 941 | + @Override | ||
| 942 | + public void enterUsesStatement(GeneratedYangParser.UsesStatementContext ctx) { | ||
| 943 | + //TODO: implement the method. | ||
| 944 | + } | ||
| 945 | + | ||
| 946 | + @Override | ||
| 947 | + public void exitUsesStatement(GeneratedYangParser.UsesStatementContext ctx) { | ||
| 948 | + //TODO: implement the method. | ||
| 949 | + } | ||
| 950 | + | ||
| 951 | + @Override | ||
| 952 | + public void enterRefineStatement(GeneratedYangParser.RefineStatementContext ctx) { | ||
| 953 | + //TODO: implement the method. | ||
| 954 | + } | ||
| 955 | + | ||
| 956 | + @Override | ||
| 957 | + public void exitRefineStatement(GeneratedYangParser.RefineStatementContext ctx) { | ||
| 958 | + //TODO: implement the method. | ||
| 959 | + } | ||
| 960 | + | ||
| 961 | + @Override | ||
| 962 | + public void enterRefineContainerStatements(GeneratedYangParser.RefineContainerStatementsContext ctx) { | ||
| 963 | + //TODO: implement the method. | ||
| 964 | + } | ||
| 965 | + | ||
| 966 | + @Override | ||
| 967 | + public void exitRefineContainerStatements(GeneratedYangParser.RefineContainerStatementsContext ctx) { | ||
| 968 | + //TODO: implement the method. | ||
| 969 | + } | ||
| 970 | + | ||
| 971 | + @Override | ||
| 972 | + public void enterRefineLeafStatements(GeneratedYangParser.RefineLeafStatementsContext ctx) { | ||
| 973 | + //TODO: implement the method. | ||
| 974 | + } | ||
| 975 | + | ||
| 976 | + @Override | ||
| 977 | + public void exitRefineLeafStatements(GeneratedYangParser.RefineLeafStatementsContext ctx) { | ||
| 978 | + //TODO: implement the method. | ||
| 979 | + } | ||
| 980 | + | ||
| 981 | + @Override | ||
| 982 | + public void enterRefineLeafListStatements(GeneratedYangParser.RefineLeafListStatementsContext ctx) { | ||
| 983 | + //TODO: implement the method. | ||
| 984 | + } | ||
| 985 | + | ||
| 986 | + @Override | ||
| 987 | + public void exitRefineLeafListStatements(GeneratedYangParser.RefineLeafListStatementsContext ctx) { | ||
| 988 | + //TODO: implement the method. | ||
| 989 | + } | ||
| 990 | + | ||
| 991 | + @Override | ||
| 992 | + public void enterRefineListStatements(GeneratedYangParser.RefineListStatementsContext ctx) { | ||
| 993 | + //TODO: implement the method. | ||
| 994 | + } | ||
| 995 | + | ||
| 996 | + @Override | ||
| 997 | + public void exitRefineListStatements(GeneratedYangParser.RefineListStatementsContext ctx) { | ||
| 998 | + //TODO: implement the method. | ||
| 999 | + } | ||
| 1000 | + | ||
| 1001 | + @Override | ||
| 1002 | + public void enterRefineChoiceStatements(GeneratedYangParser.RefineChoiceStatementsContext ctx) { | ||
| 1003 | + //TODO: implement the method. | ||
| 1004 | + } | ||
| 1005 | + | ||
| 1006 | + @Override | ||
| 1007 | + public void exitRefineChoiceStatements(GeneratedYangParser.RefineChoiceStatementsContext ctx) { | ||
| 1008 | + //TODO: implement the method. | ||
| 1009 | + } | ||
| 1010 | + | ||
| 1011 | + @Override | ||
| 1012 | + public void enterRefineCaseStatements(GeneratedYangParser.RefineCaseStatementsContext ctx) { | ||
| 1013 | + //TODO: implement the method. | ||
| 1014 | + } | ||
| 1015 | + | ||
| 1016 | + @Override | ||
| 1017 | + public void exitRefineCaseStatements(GeneratedYangParser.RefineCaseStatementsContext ctx) { | ||
| 1018 | + //TODO: implement the method. | ||
| 1019 | + } | ||
| 1020 | + | ||
| 1021 | + @Override | ||
| 1022 | + public void enterUsesAugmentStatement(GeneratedYangParser.UsesAugmentStatementContext ctx) { | ||
| 1023 | + //TODO: implement the method. | ||
| 1024 | + } | ||
| 1025 | + | ||
| 1026 | + @Override | ||
| 1027 | + public void exitUsesAugmentStatement(GeneratedYangParser.UsesAugmentStatementContext ctx) { | ||
| 1028 | + //TODO: implement the method. | ||
| 1029 | + } | ||
| 1030 | + | ||
| 1031 | + @Override | ||
| 1032 | + public void enterAugmentStatement(GeneratedYangParser.AugmentStatementContext ctx) { | ||
| 1033 | + //TODO: implement the method. | ||
| 1034 | + } | ||
| 1035 | + | ||
| 1036 | + @Override | ||
| 1037 | + public void exitAugmentStatement(GeneratedYangParser.AugmentStatementContext ctx) { | ||
| 1038 | + //TODO: implement the method. | ||
| 1039 | + } | ||
| 1040 | + | ||
| 1041 | + @Override | ||
| 1042 | + public void enterWhenStatement(GeneratedYangParser.WhenStatementContext ctx) { | ||
| 1043 | + //TODO: implement the method. | ||
| 1044 | + } | ||
| 1045 | + | ||
| 1046 | + @Override | ||
| 1047 | + public void exitWhenStatement(GeneratedYangParser.WhenStatementContext ctx) { | ||
| 1048 | + //TODO: implement the method. | ||
| 1049 | + } | ||
| 1050 | + | ||
| 1051 | + @Override | ||
| 1052 | + public void enterRpcStatement(GeneratedYangParser.RpcStatementContext ctx) { | ||
| 1053 | + //TODO: implement the method. | ||
| 1054 | + } | ||
| 1055 | + | ||
| 1056 | + @Override | ||
| 1057 | + public void exitRpcStatement(GeneratedYangParser.RpcStatementContext ctx) { | ||
| 1058 | + //TODO: implement the method. | ||
| 1059 | + } | ||
| 1060 | + | ||
| 1061 | + @Override | ||
| 1062 | + public void enterInputStatement(GeneratedYangParser.InputStatementContext ctx) { | ||
| 1063 | + //TODO: implement the method. | ||
| 1064 | + } | ||
| 1065 | + | ||
| 1066 | + @Override | ||
| 1067 | + public void exitInputStatement(GeneratedYangParser.InputStatementContext ctx) { | ||
| 1068 | + //TODO: implement the method. | ||
| 1069 | + } | ||
| 1070 | + | ||
| 1071 | + @Override | ||
| 1072 | + public void enterOutputStatement(GeneratedYangParser.OutputStatementContext ctx) { | ||
| 1073 | + //TODO: implement the method. | ||
| 1074 | + } | ||
| 1075 | + | ||
| 1076 | + @Override | ||
| 1077 | + public void exitOutputStatement(GeneratedYangParser.OutputStatementContext ctx) { | ||
| 1078 | + //TODO: implement the method. | ||
| 1079 | + } | ||
| 1080 | + | ||
| 1081 | + @Override | ||
| 1082 | + public void enterNotificationStatement(GeneratedYangParser.NotificationStatementContext ctx) { | ||
| 1083 | + //TODO: implement the method. | ||
| 1084 | + } | ||
| 1085 | + | ||
| 1086 | + @Override | ||
| 1087 | + public void exitNotificationStatement(GeneratedYangParser.NotificationStatementContext ctx) { | ||
| 1088 | + //TODO: implement the method. | ||
| 1089 | + } | ||
| 1090 | + | ||
| 1091 | + @Override | ||
| 1092 | + public void enterDeviationStatement(GeneratedYangParser.DeviationStatementContext ctx) { | ||
| 1093 | + //TODO: implement the method. | ||
| 1094 | + } | ||
| 1095 | + | ||
| 1096 | + @Override | ||
| 1097 | + public void exitDeviationStatement(GeneratedYangParser.DeviationStatementContext ctx) { | ||
| 1098 | + //TODO: implement the method. | ||
| 1099 | + } | ||
| 1100 | + | ||
| 1101 | + @Override | ||
| 1102 | + public void enterDeviateNotSupportedStatement(GeneratedYangParser.DeviateNotSupportedStatementContext ctx) { | ||
| 1103 | + //TODO: implement the method. | ||
| 1104 | + } | ||
| 1105 | + | ||
| 1106 | + @Override | ||
| 1107 | + public void exitDeviateNotSupportedStatement(GeneratedYangParser.DeviateNotSupportedStatementContext ctx) { | ||
| 1108 | + //TODO: implement the method. | ||
| 1109 | + } | ||
| 1110 | + | ||
| 1111 | + @Override | ||
| 1112 | + public void enterDeviateAddStatement(GeneratedYangParser.DeviateAddStatementContext ctx) { | ||
| 1113 | + //TODO: implement the method. | ||
| 1114 | + } | ||
| 1115 | + | ||
| 1116 | + @Override | ||
| 1117 | + public void exitDeviateAddStatement(GeneratedYangParser.DeviateAddStatementContext ctx) { | ||
| 1118 | + //TODO: implement the method. | ||
| 1119 | + } | ||
| 1120 | + | ||
| 1121 | + @Override | ||
| 1122 | + public void enterDeviateDeleteStatement(GeneratedYangParser.DeviateDeleteStatementContext ctx) { | ||
| 1123 | + //TODO: implement the method. | ||
| 1124 | + } | ||
| 1125 | + | ||
| 1126 | + @Override | ||
| 1127 | + public void exitDeviateDeleteStatement(GeneratedYangParser.DeviateDeleteStatementContext ctx) { | ||
| 1128 | + //TODO: implement the method. | ||
| 1129 | + } | ||
| 1130 | + | ||
| 1131 | + @Override | ||
| 1132 | + public void enterDeviateReplaceStatement(GeneratedYangParser.DeviateReplaceStatementContext ctx) { | ||
| 1133 | + //TODO: implement the method. | ||
| 1134 | + } | ||
| 1135 | + | ||
| 1136 | + @Override | ||
| 1137 | + public void exitDeviateReplaceStatement(GeneratedYangParser.DeviateReplaceStatementContext ctx) { | ||
| 1138 | + //TODO: implement the method. | ||
| 1139 | + } | ||
| 1140 | + | ||
| 1141 | + @Override | ||
| 1142 | + public void enterString(GeneratedYangParser.StringContext ctx) { | ||
| 1143 | + //TODO: implement the method. | ||
| 1144 | + } | ||
| 1145 | + | ||
| 1146 | + @Override | ||
| 1147 | + public void exitString(GeneratedYangParser.StringContext ctx) { | ||
| 1148 | + //TODO: implement the method. | ||
| 1149 | + } | ||
| 1150 | + | ||
| 1151 | + @Override | ||
| 1152 | + public void visitTerminal(TerminalNode terminalNode) { | ||
| 1153 | + //TODO: implement the method. | ||
| 1154 | + } | ||
| 1155 | + | ||
| 1156 | + @Override | ||
| 1157 | + public void visitErrorNode(ErrorNode errorNode) { | ||
| 1158 | + //TODO: implement the method. | ||
| 1159 | + } | ||
| 1160 | + | ||
| 1161 | + @Override | ||
| 1162 | + public void enterEveryRule(ParserRuleContext parserRuleContext) { | ||
| 1163 | + //TODO: implement the method. | ||
| 1164 | + } | ||
| 1165 | + | ||
| 1166 | + @Override | ||
| 1167 | + public void exitEveryRule(ParserRuleContext parserRuleContext) { | ||
| 1168 | + //TODO: implement the method. | ||
| 1169 | + } | ||
| 1170 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
utils/yangutils/src/main/java/org/onosproject/yangutils/parser/impl/listeners/package-info.java
0 → 100644
| 1 | +/* | ||
| 2 | + * Copyright 2016 Open Networking Laboratory | ||
| 3 | + * | ||
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + * you may not use this file except in compliance with the License. | ||
| 6 | + * You may obtain a copy of the License at | ||
| 7 | + * | ||
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + * | ||
| 10 | + * Unless required by applicable law or agreed to in writing, software | ||
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + * See the License for the specific language governing permissions and | ||
| 14 | + * limitations under the License. | ||
| 15 | + */ | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + * Provide call back functions for listeners based tree walk. | ||
| 19 | + */ | ||
| 20 | +package org.onosproject.yangutils.parser.impl.listeners; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
utils/yangutils/src/main/java/org/onosproject/yangutils/parser/impl/parserutils/ListenerError.java
0 → 100644
| 1 | +/* | ||
| 2 | + * Copyright 2016 Open Networking Laboratory | ||
| 3 | + * | ||
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + * you may not use this file except in compliance with the License. | ||
| 6 | + * You may obtain a copy of the License at | ||
| 7 | + * | ||
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + * | ||
| 10 | + * Unless required by applicable law or agreed to in writing, software | ||
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + * See the License for the specific language governing permissions and | ||
| 14 | + * limitations under the License. | ||
| 15 | + */ | ||
| 16 | + | ||
| 17 | +package org.onosproject.yangutils.parser.impl.parserutils; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * Error information while doing a listener's based walk is maintained in it. | ||
| 21 | + */ | ||
| 22 | +public class ListenerError { | ||
| 23 | + | ||
| 24 | + // Maintains the state of Exception. | ||
| 25 | + private boolean errorFlag = false; | ||
| 26 | + | ||
| 27 | + // Maintains the reason of Exception. | ||
| 28 | + private String errorMsg; | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * Returns error flag. | ||
| 32 | + * | ||
| 33 | + * @return error flag. | ||
| 34 | + */ | ||
| 35 | + public boolean isErrorFlag() { | ||
| 36 | + return errorFlag; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + /** | ||
| 40 | + * Returns error message. | ||
| 41 | + * | ||
| 42 | + * @return error msg. | ||
| 43 | + */ | ||
| 44 | + public String getErrorMsg() { | ||
| 45 | + return errorMsg; | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * Set error flag. | ||
| 50 | + * | ||
| 51 | + * @param errorFlag error existence flag | ||
| 52 | + */ | ||
| 53 | + public void setErrorFlag(boolean errorFlag) { | ||
| 54 | + this.errorFlag = errorFlag; | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + /** | ||
| 58 | + * Set error message. | ||
| 59 | + * | ||
| 60 | + * @param errorMsg reason for error. | ||
| 61 | + */ | ||
| 62 | + public void setErrorMsg(String errorMsg) { | ||
| 63 | + this.errorMsg = errorMsg; | ||
| 64 | + } | ||
| 65 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
utils/yangutils/src/main/java/org/onosproject/yangutils/parser/impl/parserutils/package-info.java
0 → 100644
| 1 | +/* | ||
| 2 | + * Copyright 2016 Open Networking Laboratory | ||
| 3 | + * | ||
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + * you may not use this file except in compliance with the License. | ||
| 6 | + * You may obtain a copy of the License at | ||
| 7 | + * | ||
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + * | ||
| 10 | + * Unless required by applicable law or agreed to in writing, software | ||
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + * See the License for the specific language governing permissions and | ||
| 14 | + * limitations under the License. | ||
| 15 | + */ | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + * Provide common utils for parser implementation. | ||
| 19 | + */ | ||
| 20 | +package org.onosproject.yangutils.parser.impl.parserutils; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -25,8 +25,8 @@ import YangLexer; | ... | @@ -25,8 +25,8 @@ import YangLexer; |
| 25 | package org.onosproject.yangutils.parser.antlrgencode; | 25 | package org.onosproject.yangutils.parser.antlrgencode; |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | - yangfile : module_stmt | 28 | + yangfile : moduleStatement |
| 29 | - | submodule_stmt; | 29 | + | subModuleStatement; |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * module-stmt = optsep module-keyword sep identifier-arg-str | 32 | * module-stmt = optsep module-keyword sep identifier-arg-str |
| ... | @@ -40,9 +40,9 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -40,9 +40,9 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 40 | * "}" optsep | 40 | * "}" optsep |
| 41 | */ | 41 | */ |
| 42 | 42 | ||
| 43 | - module_stmt : MODULE_KEYWORD IDENTIFIER LEFT_CURLY_BRACE module_body* RIGHT_CURLY_BRACE; | 43 | + moduleStatement : MODULE_KEYWORD IDENTIFIER LEFT_CURLY_BRACE moduleBody* RIGHT_CURLY_BRACE; |
| 44 | 44 | ||
| 45 | - module_body : module_header_statement linkage_stmts meta_stmts revision_stmts body_stmts; | 45 | + moduleBody : moduleHeaderStatement linkageStatements metaStatements revisionStatements bodyStatements; |
| 46 | 46 | ||
| 47 | /** | 47 | /** |
| 48 | * module-header-stmts = ;; these stmts can appear in any order | 48 | * module-header-stmts = ;; these stmts can appear in any order |
| ... | @@ -51,12 +51,12 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -51,12 +51,12 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 51 | * prefix-stmt stmtsep | 51 | * prefix-stmt stmtsep |
| 52 | */ | 52 | */ |
| 53 | 53 | ||
| 54 | - module_header_statement : yang_version_stmt? namespace_stmt prefix_stmt | 54 | + moduleHeaderStatement : yangVersionStatement? namespaceStatement prefixStatement |
| 55 | - | yang_version_stmt? prefix_stmt namespace_stmt | 55 | + | yangVersionStatement? prefixStatement namespaceStatement |
| 56 | - | namespace_stmt yang_version_stmt? prefix_stmt | 56 | + | namespaceStatement yangVersionStatement? prefixStatement |
| 57 | - | namespace_stmt prefix_stmt yang_version_stmt? | 57 | + | namespaceStatement prefixStatement yangVersionStatement? |
| 58 | - | prefix_stmt namespace_stmt yang_version_stmt? | 58 | + | prefixStatement namespaceStatement yangVersionStatement? |
| 59 | - | prefix_stmt yang_version_stmt? namespace_stmt? | 59 | + | prefixStatement yangVersionStatement? namespaceStatement |
| 60 | ; | 60 | ; |
| 61 | 61 | ||
| 62 | /** | 62 | /** |
| ... | @@ -65,8 +65,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -65,8 +65,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 65 | * *(include-stmt stmtsep) | 65 | * *(include-stmt stmtsep) |
| 66 | */ | 66 | */ |
| 67 | 67 | ||
| 68 | - linkage_stmts : (import_stmt | 68 | + linkageStatements : (importStatement |
| 69 | - | include_stmt)*; | 69 | + | includeStatement)*; |
| 70 | 70 | ||
| 71 | /** | 71 | /** |
| 72 | * meta-stmts = ;; these stmts can appear in any order | 72 | * meta-stmts = ;; these stmts can appear in any order |
| ... | @@ -76,34 +76,34 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -76,34 +76,34 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 76 | * [reference-stmt stmtsep] | 76 | * [reference-stmt stmtsep] |
| 77 | */ | 77 | */ |
| 78 | 78 | ||
| 79 | - meta_stmts : organization_stmt? contact_stmt? description_stmt? reference_stmt? | 79 | + metaStatements : organizationStatement? contactStatement? descriptionStatement? referenceStatement? |
| 80 | - | organization_stmt? contact_stmt? reference_stmt? description_stmt? | 80 | + | organizationStatement? contactStatement? referenceStatement? descriptionStatement? |
| 81 | - | organization_stmt? description_stmt? contact_stmt? reference_stmt? | 81 | + | organizationStatement? descriptionStatement? contactStatement? referenceStatement? |
| 82 | - | organization_stmt? description_stmt? reference_stmt? contact_stmt? | 82 | + | organizationStatement? descriptionStatement? referenceStatement? contactStatement? |
| 83 | - | organization_stmt? reference_stmt? contact_stmt? description_stmt? | 83 | + | organizationStatement? referenceStatement? contactStatement? descriptionStatement? |
| 84 | - | organization_stmt? reference_stmt? description_stmt? contact_stmt? | 84 | + | organizationStatement? referenceStatement? descriptionStatement? contactStatement? |
| 85 | - | contact_stmt? organization_stmt? description_stmt? reference_stmt? | 85 | + | contactStatement? organizationStatement? descriptionStatement? referenceStatement? |
| 86 | - | contact_stmt? organization_stmt? reference_stmt? description_stmt? | 86 | + | contactStatement? organizationStatement? referenceStatement? descriptionStatement? |
| 87 | - | contact_stmt? reference_stmt? organization_stmt? description_stmt? | 87 | + | contactStatement? referenceStatement? organizationStatement? descriptionStatement? |
| 88 | - | contact_stmt? reference_stmt? description_stmt? organization_stmt? | 88 | + | contactStatement? referenceStatement? descriptionStatement? organizationStatement? |
| 89 | - | contact_stmt? description_stmt? reference_stmt? organization_stmt? | 89 | + | contactStatement? descriptionStatement? referenceStatement? organizationStatement? |
| 90 | - | contact_stmt? description_stmt? organization_stmt? reference_stmt? | 90 | + | contactStatement? descriptionStatement? organizationStatement? referenceStatement? |
| 91 | - | reference_stmt? contact_stmt? organization_stmt? description_stmt? | 91 | + | referenceStatement? contactStatement? organizationStatement? descriptionStatement? |
| 92 | - | reference_stmt? contact_stmt? description_stmt? organization_stmt? | 92 | + | referenceStatement? contactStatement? descriptionStatement? organizationStatement? |
| 93 | - | reference_stmt? organization_stmt? contact_stmt? description_stmt? | 93 | + | referenceStatement? organizationStatement? contactStatement? descriptionStatement? |
| 94 | - | reference_stmt? organization_stmt? description_stmt? contact_stmt? | 94 | + | referenceStatement? organizationStatement? descriptionStatement? contactStatement? |
| 95 | - | reference_stmt? description_stmt? organization_stmt? contact_stmt? | 95 | + | referenceStatement? descriptionStatement? organizationStatement? contactStatement? |
| 96 | - | reference_stmt? description_stmt? contact_stmt? organization_stmt? | 96 | + | referenceStatement? descriptionStatement? contactStatement? organizationStatement? |
| 97 | - | description_stmt? reference_stmt? contact_stmt? organization_stmt? | 97 | + | descriptionStatement? referenceStatement? contactStatement? organizationStatement? |
| 98 | - | description_stmt? reference_stmt? organization_stmt? contact_stmt? | 98 | + | descriptionStatement? referenceStatement? organizationStatement? contactStatement? |
| 99 | - | description_stmt? contact_stmt? reference_stmt? organization_stmt? | 99 | + | descriptionStatement? contactStatement? referenceStatement? organizationStatement? |
| 100 | - | description_stmt? contact_stmt? organization_stmt? reference_stmt? | 100 | + | descriptionStatement? contactStatement? organizationStatement? referenceStatement? |
| 101 | - | description_stmt? organization_stmt? contact_stmt? reference_stmt? | 101 | + | descriptionStatement? organizationStatement? contactStatement? referenceStatement? |
| 102 | - | description_stmt? organization_stmt? reference_stmt? contact_stmt? | 102 | + | descriptionStatement? organizationStatement? referenceStatement? contactStatement? |
| 103 | ; | 103 | ; |
| 104 | 104 | ||
| 105 | // revision-stmts = *(revision-stmt stmtsep) | 105 | // revision-stmts = *(revision-stmt stmtsep) |
| 106 | - revision_stmts : revision_stmt*; | 106 | + revisionStatements : revisionStatement*; |
| 107 | 107 | ||
| 108 | /** | 108 | /** |
| 109 | * body-stmts = *((extension-stmt / | 109 | * body-stmts = *((extension-stmt / |
| ... | @@ -118,16 +118,16 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -118,16 +118,16 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 118 | * deviation-stmt) stmtsep) | 118 | * deviation-stmt) stmtsep) |
| 119 | */ | 119 | */ |
| 120 | 120 | ||
| 121 | - body_stmts : (extension_stmt | 121 | + bodyStatements : (extensionStatement |
| 122 | - | feature_stmt | 122 | + | featureStatement |
| 123 | - | identity_stmt | 123 | + | identityStatement |
| 124 | - | typedef_stmt | 124 | + | typedefStatement |
| 125 | - | grouping_stmt | 125 | + | groupingStatement |
| 126 | - | data_def_stmt | 126 | + | dataDefStatement |
| 127 | - | augment_stmt | 127 | + | augmentStatement |
| 128 | - | rpc_stmt | 128 | + | rpcStatement |
| 129 | - | notification_stmt | 129 | + | notificationStatement |
| 130 | - | deviation_stmt)* | 130 | + | deviationStatement)* |
| 131 | ; | 131 | ; |
| 132 | 132 | ||
| 133 | /** | 133 | /** |
| ... | @@ -135,20 +135,20 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -135,20 +135,20 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 135 | * optsep stmtend | 135 | * optsep stmtend |
| 136 | */ | 136 | */ |
| 137 | 137 | ||
| 138 | - yang_version_stmt : YANG_VERSION_KEYWORD INTEGER STMTEND; | 138 | + yangVersionStatement : YANG_VERSION_KEYWORD INTEGER STMTEND; |
| 139 | 139 | ||
| 140 | 140 | ||
| 141 | /** | 141 | /** |
| 142 | * namespace-stmt = namespace-keyword sep uri-str optsep stmtend | 142 | * namespace-stmt = namespace-keyword sep uri-str optsep stmtend |
| 143 | * For namespace validation TODO in Listener | 143 | * For namespace validation TODO in Listener |
| 144 | */ | 144 | */ |
| 145 | - namespace_stmt : NAMESPACE_KEYWORD string STMTEND; | 145 | + namespaceStatement : NAMESPACE_KEYWORD string STMTEND; |
| 146 | 146 | ||
| 147 | /** | 147 | /** |
| 148 | * prefix-stmt = prefix-keyword sep prefix-arg-str | 148 | * prefix-stmt = prefix-keyword sep prefix-arg-str |
| 149 | * optsep stmtend | 149 | * optsep stmtend |
| 150 | */ | 150 | */ |
| 151 | - prefix_stmt : PREFIX_KEYWORD IDENTIFIER STMTEND; | 151 | + prefixStatement : PREFIX_KEYWORD IDENTIFIER STMTEND; |
| 152 | 152 | ||
| 153 | /** | 153 | /** |
| 154 | * import-stmt = import-keyword sep identifier-arg-str optsep | 154 | * import-stmt = import-keyword sep identifier-arg-str optsep |
| ... | @@ -157,14 +157,12 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -157,14 +157,12 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 157 | * [revision-date-stmt stmtsep] | 157 | * [revision-date-stmt stmtsep] |
| 158 | * "}" | 158 | * "}" |
| 159 | */ | 159 | */ |
| 160 | - import_stmt : IMPORT_KEYWORD IDENTIFIER LEFT_CURLY_BRACE import_stmt_body RIGHT_CURLY_BRACE; | 160 | + importStatement : IMPORT_KEYWORD IDENTIFIER LEFT_CURLY_BRACE importStatementBody RIGHT_CURLY_BRACE; |
| 161 | 161 | ||
| 162 | - import_stmt_body : prefix_stmt revision_date_stmt?; | 162 | + importStatementBody : prefixStatement revisionDateStatement?; |
| 163 | 163 | ||
| 164 | // revision-date-stmt = revision-date-keyword sep revision-date stmtend | 164 | // revision-date-stmt = revision-date-keyword sep revision-date stmtend |
| 165 | - revision_date_stmt : REVISION_DATE_KEYWORD DATE_ARG STMTEND; | 165 | + revisionDateStatement : REVISION_DATE_KEYWORD DATE_ARG STMTEND; |
| 166 | - | ||
| 167 | - revision_date_stmt_body : revision_date_stmt; | ||
| 168 | 166 | ||
| 169 | /** | 167 | /** |
| 170 | * include-stmt = include-keyword sep identifier-arg-str optsep | 168 | * include-stmt = include-keyword sep identifier-arg-str optsep |
| ... | @@ -173,22 +171,22 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -173,22 +171,22 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 173 | * [revision-date-stmt stmtsep] | 171 | * [revision-date-stmt stmtsep] |
| 174 | * "}") | 172 | * "}") |
| 175 | */ | 173 | */ |
| 176 | - include_stmt : INCLUDE_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE revision_date_stmt_body? RIGHT_CURLY_BRACE); | 174 | + includeStatement : INCLUDE_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE revisionDateStatement? RIGHT_CURLY_BRACE); |
| 177 | 175 | ||
| 178 | /** | 176 | /** |
| 179 | * organization-stmt = organization-keyword sep string | 177 | * organization-stmt = organization-keyword sep string |
| 180 | * optsep stmtend | 178 | * optsep stmtend |
| 181 | */ | 179 | */ |
| 182 | - organization_stmt : ORGANIZATION_KEYWORD string STMTEND; | 180 | + organizationStatement : ORGANIZATION_KEYWORD string STMTEND; |
| 183 | 181 | ||
| 184 | // contact-stmt = contact-keyword sep string optsep stmtend | 182 | // contact-stmt = contact-keyword sep string optsep stmtend |
| 185 | - contact_stmt : CONTACT_KEYWORD string STMTEND; | 183 | + contactStatement : CONTACT_KEYWORD string STMTEND; |
| 186 | 184 | ||
| 187 | // description-stmt = description-keyword sep string optsep stmtend | 185 | // description-stmt = description-keyword sep string optsep stmtend |
| 188 | - description_stmt : DESCRIPTION_KEYWORD string STMTEND; | 186 | + descriptionStatement : DESCRIPTION_KEYWORD string STMTEND; |
| 189 | 187 | ||
| 190 | // reference-stmt = reference-keyword sep string optsep stmtend | 188 | // reference-stmt = reference-keyword sep string optsep stmtend |
| 191 | - reference_stmt : REFERENCE_KEYWORD string STMTEND; | 189 | + referenceStatement : REFERENCE_KEYWORD string STMTEND; |
| 192 | 190 | ||
| 193 | /** | 191 | /** |
| 194 | * revision-stmt = revision-keyword sep revision-date optsep | 192 | * revision-stmt = revision-keyword sep revision-date optsep |
| ... | @@ -198,8 +196,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -198,8 +196,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 198 | * [reference-stmt stmtsep] | 196 | * [reference-stmt stmtsep] |
| 199 | * "}") | 197 | * "}") |
| 200 | */ | 198 | */ |
| 201 | - revision_stmt : REVISION_KEYWORD DATE_ARG (STMTEND | LEFT_CURLY_BRACE revision_stmt_body RIGHT_CURLY_BRACE); | 199 | + revisionStatement : REVISION_KEYWORD DATE_ARG (STMTEND | LEFT_CURLY_BRACE revisionStatementBody RIGHT_CURLY_BRACE); |
| 202 | - revision_stmt_body : description_stmt? reference_stmt?; | 200 | + revisionStatementBody : descriptionStatement? referenceStatement?; |
| 203 | 201 | ||
| 204 | /** | 202 | /** |
| 205 | * submodule-stmt = optsep submodule-keyword sep identifier-arg-str | 203 | * submodule-stmt = optsep submodule-keyword sep identifier-arg-str |
| ... | @@ -212,16 +210,16 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -212,16 +210,16 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 212 | * body-stmts | 210 | * body-stmts |
| 213 | * "}" optsep | 211 | * "}" optsep |
| 214 | */ | 212 | */ |
| 215 | - submodule_stmt : SUBMODULE_KEYWORD IDENTIFIER LEFT_CURLY_BRACE submodule_body* RIGHT_CURLY_BRACE; | 213 | + subModuleStatement : SUBMODULE_KEYWORD IDENTIFIER LEFT_CURLY_BRACE submoduleBody* RIGHT_CURLY_BRACE; |
| 216 | - submodule_body : submodule_header_statement linkage_stmts meta_stmts revision_stmts body_stmts; | 214 | + submoduleBody : submoduleHeaderStatement linkageStatements metaStatements revisionStatements bodyStatements; |
| 217 | 215 | ||
| 218 | /** submodule-header-stmts = | 216 | /** submodule-header-stmts = |
| 219 | * ;; these stmts can appear in any order | 217 | * ;; these stmts can appear in any order |
| 220 | * [yang-version-stmt stmtsep] | 218 | * [yang-version-stmt stmtsep] |
| 221 | * belongs-to-stmt stmtsep | 219 | * belongs-to-stmt stmtsep |
| 222 | */ | 220 | */ |
| 223 | - submodule_header_statement : yang_version_stmt? belongs_to_stmt | 221 | + submoduleHeaderStatement : yangVersionStatement? belongstoStatement |
| 224 | - | belongs_to_stmt yang_version_stmt? | 222 | + | belongstoStatement yangVersionStatement? |
| 225 | ; | 223 | ; |
| 226 | 224 | ||
| 227 | /** | 225 | /** |
| ... | @@ -231,8 +229,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -231,8 +229,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 231 | * prefix-stmt stmtsep | 229 | * prefix-stmt stmtsep |
| 232 | * "}" | 230 | * "}" |
| 233 | */ | 231 | */ |
| 234 | - belongs_to_stmt : BELONGS_TO_KEYWORD IDENTIFIER LEFT_CURLY_BRACE belongs_to_stmt_body RIGHT_CURLY_BRACE; | 232 | + belongstoStatement : BELONGS_TO_KEYWORD IDENTIFIER LEFT_CURLY_BRACE belongstoStatementBody RIGHT_CURLY_BRACE; |
| 235 | - belongs_to_stmt_body : prefix_stmt; | 233 | + belongstoStatementBody : prefixStatement; |
| 236 | 234 | ||
| 237 | /** | 235 | /** |
| 238 | * extension-stmt = extension-keyword sep identifier-arg-str optsep | 236 | * extension-stmt = extension-keyword sep identifier-arg-str optsep |
| ... | @@ -245,31 +243,31 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -245,31 +243,31 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 245 | * [reference-stmt stmtsep] | 243 | * [reference-stmt stmtsep] |
| 246 | * "}") | 244 | * "}") |
| 247 | */ | 245 | */ |
| 248 | - extension_stmt : EXTENSION_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE extension_body RIGHT_CURLY_BRACE); | 246 | + extensionStatement : EXTENSION_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE extensionBody RIGHT_CURLY_BRACE); |
| 249 | - extension_body : argument_stmt? status_stmt? description_stmt? reference_stmt? | 247 | + extensionBody : argumentStatement? statusStatement? descriptionStatement? referenceStatement? |
| 250 | - | argument_stmt? status_stmt? reference_stmt? description_stmt? | 248 | + | argumentStatement? statusStatement? referenceStatement? descriptionStatement? |
| 251 | - | argument_stmt? description_stmt? status_stmt? reference_stmt? | 249 | + | argumentStatement? descriptionStatement? statusStatement? referenceStatement? |
| 252 | - | argument_stmt? description_stmt? reference_stmt? status_stmt? | 250 | + | argumentStatement? descriptionStatement? referenceStatement? statusStatement? |
| 253 | - | argument_stmt? reference_stmt? description_stmt? status_stmt? | 251 | + | argumentStatement? referenceStatement? descriptionStatement? statusStatement? |
| 254 | - | argument_stmt? reference_stmt? status_stmt? description_stmt? | 252 | + | argumentStatement? referenceStatement? statusStatement? descriptionStatement? |
| 255 | - | status_stmt? reference_stmt? argument_stmt? description_stmt? | 253 | + | statusStatement? referenceStatement? argumentStatement? descriptionStatement? |
| 256 | - | status_stmt? reference_stmt? description_stmt? argument_stmt? | 254 | + | statusStatement? referenceStatement? descriptionStatement? argumentStatement? |
| 257 | - | status_stmt? description_stmt? reference_stmt? argument_stmt? | 255 | + | statusStatement? descriptionStatement? referenceStatement? argumentStatement? |
| 258 | - | status_stmt? description_stmt? argument_stmt? reference_stmt? | 256 | + | statusStatement? descriptionStatement? argumentStatement? referenceStatement? |
| 259 | - | status_stmt? argument_stmt? reference_stmt? description_stmt? | 257 | + | statusStatement? argumentStatement? referenceStatement? descriptionStatement? |
| 260 | - | status_stmt? argument_stmt? description_stmt? reference_stmt? | 258 | + | statusStatement? argumentStatement? descriptionStatement? referenceStatement? |
| 261 | - | description_stmt? argument_stmt? status_stmt? reference_stmt? | 259 | + | descriptionStatement? argumentStatement? statusStatement? referenceStatement? |
| 262 | - | description_stmt? argument_stmt? reference_stmt? status_stmt? | 260 | + | descriptionStatement? argumentStatement? referenceStatement? statusStatement? |
| 263 | - | description_stmt? status_stmt? argument_stmt? reference_stmt? | 261 | + | descriptionStatement? statusStatement? argumentStatement? referenceStatement? |
| 264 | - | description_stmt? status_stmt? reference_stmt? argument_stmt? | 262 | + | descriptionStatement? statusStatement? referenceStatement? argumentStatement? |
| 265 | - | description_stmt? reference_stmt? status_stmt? argument_stmt? | 263 | + | descriptionStatement? referenceStatement? statusStatement? argumentStatement? |
| 266 | - | description_stmt? reference_stmt? argument_stmt? status_stmt? | 264 | + | descriptionStatement? referenceStatement? argumentStatement? statusStatement? |
| 267 | - | reference_stmt? description_stmt? argument_stmt? status_stmt? | 265 | + | referenceStatement? descriptionStatement? argumentStatement? statusStatement? |
| 268 | - | reference_stmt? description_stmt? status_stmt? argument_stmt? | 266 | + | referenceStatement? descriptionStatement? statusStatement? argumentStatement? |
| 269 | - | reference_stmt? status_stmt? argument_stmt? description_stmt? | 267 | + | referenceStatement? statusStatement? argumentStatement? descriptionStatement? |
| 270 | - | reference_stmt? status_stmt? description_stmt? argument_stmt? | 268 | + | referenceStatement? statusStatement? descriptionStatement? argumentStatement? |
| 271 | - | reference_stmt? argument_stmt? description_stmt? status_stmt? | 269 | + | referenceStatement? argumentStatement? descriptionStatement? statusStatement? |
| 272 | - | reference_stmt? argument_stmt? status_stmt? description_stmt? | 270 | + | referenceStatement? argumentStatement? statusStatement? descriptionStatement? |
| 273 | ; | 271 | ; |
| 274 | 272 | ||
| 275 | /** | 273 | /** |
| ... | @@ -279,14 +277,14 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -279,14 +277,14 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 279 | * [yin-element-stmt stmtsep] | 277 | * [yin-element-stmt stmtsep] |
| 280 | * "}") | 278 | * "}") |
| 281 | */ | 279 | */ |
| 282 | - argument_stmt : ARGUMENT_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE argument_body RIGHT_CURLY_BRACE); | 280 | + argumentStatement : ARGUMENT_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE argumentBody RIGHT_CURLY_BRACE); |
| 283 | - argument_body : yin_element_stmt?; | 281 | + argumentBody : yinElementStatement?; |
| 284 | 282 | ||
| 285 | /** | 283 | /** |
| 286 | * yin-element-stmt = yin-element-keyword sep yin-element-arg-str | 284 | * yin-element-stmt = yin-element-keyword sep yin-element-arg-str |
| 287 | * stmtend | 285 | * stmtend |
| 288 | */ | 286 | */ |
| 289 | - yin_element_stmt : YIN_ELEMENT_KEYWORD (TRUE_KEYWORD | FALSE_KEYWORD) STMTEND; | 287 | + yinElementStatement : YIN_ELEMENT_KEYWORD (TRUE_KEYWORD | FALSE_KEYWORD) STMTEND; |
| 290 | 288 | ||
| 291 | /** | 289 | /** |
| 292 | * identity-stmt = identity-keyword sep identifier-arg-str optsep | 290 | * identity-stmt = identity-keyword sep identifier-arg-str optsep |
| ... | @@ -299,32 +297,32 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -299,32 +297,32 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 299 | * [reference-stmt stmtsep] | 297 | * [reference-stmt stmtsep] |
| 300 | * "}") | 298 | * "}") |
| 301 | */ | 299 | */ |
| 302 | - identity_stmt : IDENTITY_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE identity_body RIGHT_CURLY_BRACE); | 300 | + identityStatement : IDENTITY_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE identityBody RIGHT_CURLY_BRACE); |
| 303 | - identity_body : base_stmt? status_stmt? description_stmt? reference_stmt? | 301 | + identityBody : baseStatement? statusStatement? descriptionStatement? referenceStatement? |
| 304 | - | base_stmt? status_stmt? reference_stmt? description_stmt? | 302 | + | baseStatement? statusStatement? referenceStatement? descriptionStatement? |
| 305 | - | base_stmt? description_stmt? status_stmt? reference_stmt? | 303 | + | baseStatement? descriptionStatement? statusStatement? referenceStatement? |
| 306 | - | base_stmt? description_stmt? reference_stmt? status_stmt? | 304 | + | baseStatement? descriptionStatement? referenceStatement? statusStatement? |
| 307 | - | base_stmt? reference_stmt? description_stmt? status_stmt? | 305 | + | baseStatement? referenceStatement? descriptionStatement? statusStatement? |
| 308 | - | base_stmt? reference_stmt? status_stmt? description_stmt? | 306 | + | baseStatement? referenceStatement? statusStatement? descriptionStatement? |
| 309 | - | reference_stmt? base_stmt? status_stmt? description_stmt? | 307 | + | referenceStatement? baseStatement? statusStatement? descriptionStatement? |
| 310 | - | reference_stmt? base_stmt? description_stmt? status_stmt? | 308 | + | referenceStatement? baseStatement? descriptionStatement? statusStatement? |
| 311 | - | reference_stmt? status_stmt? base_stmt? description_stmt? | 309 | + | referenceStatement? statusStatement? baseStatement? descriptionStatement? |
| 312 | - | reference_stmt? status_stmt? description_stmt? base_stmt? | 310 | + | referenceStatement? statusStatement? descriptionStatement? baseStatement? |
| 313 | - | reference_stmt? description_stmt? status_stmt? base_stmt? | 311 | + | referenceStatement? descriptionStatement? statusStatement? baseStatement? |
| 314 | - | reference_stmt? description_stmt? base_stmt? status_stmt? | 312 | + | referenceStatement? descriptionStatement? baseStatement? statusStatement? |
| 315 | - | description_stmt? reference_stmt? status_stmt? base_stmt? | 313 | + | descriptionStatement? referenceStatement? statusStatement? baseStatement? |
| 316 | - | description_stmt? reference_stmt? status_stmt? base_stmt? | 314 | + | descriptionStatement? referenceStatement? statusStatement? baseStatement? |
| 317 | - | description_stmt? reference_stmt? base_stmt? status_stmt? | 315 | + | descriptionStatement? referenceStatement? baseStatement? statusStatement? |
| 318 | - | description_stmt? status_stmt? base_stmt? reference_stmt? | 316 | + | descriptionStatement? statusStatement? baseStatement? referenceStatement? |
| 319 | - | description_stmt? status_stmt? reference_stmt? base_stmt? | 317 | + | descriptionStatement? statusStatement? referenceStatement? baseStatement? |
| 320 | - | description_stmt? base_stmt? reference_stmt? status_stmt? | 318 | + | descriptionStatement? baseStatement? referenceStatement? statusStatement? |
| 321 | - | description_stmt? base_stmt? status_stmt? reference_stmt? | 319 | + | descriptionStatement? baseStatement? statusStatement? referenceStatement? |
| 322 | - | status_stmt? base_stmt? description_stmt? reference_stmt? | 320 | + | statusStatement? baseStatement? descriptionStatement? referenceStatement? |
| 323 | - | status_stmt? base_stmt? reference_stmt? description_stmt? | 321 | + | statusStatement? baseStatement? referenceStatement? descriptionStatement? |
| 324 | - | status_stmt? description_stmt? base_stmt? reference_stmt? | 322 | + | statusStatement? descriptionStatement? baseStatement? referenceStatement? |
| 325 | - | status_stmt? description_stmt? reference_stmt? base_stmt? | 323 | + | statusStatement? descriptionStatement? referenceStatement? baseStatement? |
| 326 | - | status_stmt? reference_stmt? description_stmt? base_stmt? | 324 | + | statusStatement? referenceStatement? descriptionStatement? baseStatement? |
| 327 | - | status_stmt? reference_stmt? base_stmt? description_stmt? | 325 | + | statusStatement? referenceStatement? baseStatement? descriptionStatement? |
| 328 | ; | 326 | ; |
| 329 | 327 | ||
| 330 | /** | 328 | /** |
| ... | @@ -332,7 +330,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -332,7 +330,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 332 | * optsep stmtend* | 330 | * optsep stmtend* |
| 333 | * identifier-ref-arg = [prefix ":"] identifier | 331 | * identifier-ref-arg = [prefix ":"] identifier |
| 334 | */ | 332 | */ |
| 335 | - base_stmt : BASE_KEYWORD string STMTEND; | 333 | + baseStatement : BASE_KEYWORD string STMTEND; |
| 336 | 334 | ||
| 337 | /** | 335 | /** |
| 338 | * feature-stmt = feature-keyword sep identifier-arg-str optsep | 336 | * feature-stmt = feature-keyword sep identifier-arg-str optsep |
| ... | @@ -345,31 +343,31 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -345,31 +343,31 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 345 | * [reference-stmt stmtsep] | 343 | * [reference-stmt stmtsep] |
| 346 | * "}") | 344 | * "}") |
| 347 | */ | 345 | */ |
| 348 | - feature_stmt : FEATURE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE feature_body RIGHT_CURLY_BRACE); | 346 | + featureStatement : FEATURE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE featureBody RIGHT_CURLY_BRACE); |
| 349 | - feature_body : if_feature_stmt* status_stmt? description_stmt? reference_stmt? | 347 | + featureBody : ifFeatureStatement* statusStatement? descriptionStatement? referenceStatement? |
| 350 | - | if_feature_stmt* status_stmt? reference_stmt? description_stmt? | 348 | + | ifFeatureStatement* statusStatement? referenceStatement? descriptionStatement? |
| 351 | - | if_feature_stmt* description_stmt? status_stmt? reference_stmt? | 349 | + | ifFeatureStatement* descriptionStatement? statusStatement? referenceStatement? |
| 352 | - | if_feature_stmt* description_stmt? reference_stmt? status_stmt? | 350 | + | ifFeatureStatement* descriptionStatement? referenceStatement? statusStatement? |
| 353 | - | if_feature_stmt* reference_stmt? status_stmt? description_stmt? | 351 | + | ifFeatureStatement* referenceStatement? statusStatement? descriptionStatement? |
| 354 | - | if_feature_stmt* reference_stmt? description_stmt? status_stmt? | 352 | + | ifFeatureStatement* referenceStatement? descriptionStatement? statusStatement? |
| 355 | - | status_stmt? if_feature_stmt* description_stmt? reference_stmt? | 353 | + | statusStatement? ifFeatureStatement* descriptionStatement? referenceStatement? |
| 356 | - | status_stmt? if_feature_stmt* reference_stmt? description_stmt? | 354 | + | statusStatement? ifFeatureStatement* referenceStatement? descriptionStatement? |
| 357 | - | status_stmt? description_stmt? if_feature_stmt* reference_stmt? | 355 | + | statusStatement? descriptionStatement? ifFeatureStatement* referenceStatement? |
| 358 | - | status_stmt? description_stmt? reference_stmt? if_feature_stmt* | 356 | + | statusStatement? descriptionStatement? referenceStatement? ifFeatureStatement* |
| 359 | - | status_stmt? reference_stmt? if_feature_stmt* description_stmt? | 357 | + | statusStatement? referenceStatement? ifFeatureStatement* descriptionStatement? |
| 360 | - | status_stmt? reference_stmt? description_stmt? if_feature_stmt* | 358 | + | statusStatement? referenceStatement? descriptionStatement? ifFeatureStatement* |
| 361 | - | description_stmt? if_feature_stmt* status_stmt? reference_stmt? | 359 | + | descriptionStatement? ifFeatureStatement* statusStatement? referenceStatement? |
| 362 | - | description_stmt? if_feature_stmt* reference_stmt? status_stmt? | 360 | + | descriptionStatement? ifFeatureStatement* referenceStatement? statusStatement? |
| 363 | - | description_stmt? status_stmt? if_feature_stmt* reference_stmt? | 361 | + | descriptionStatement? statusStatement? ifFeatureStatement* referenceStatement? |
| 364 | - | description_stmt? status_stmt? reference_stmt? if_feature_stmt* | 362 | + | descriptionStatement? statusStatement? referenceStatement? ifFeatureStatement* |
| 365 | - | description_stmt? reference_stmt* status_stmt? if_feature_stmt* | 363 | + | descriptionStatement? referenceStatement* statusStatement? ifFeatureStatement* |
| 366 | - | description_stmt? reference_stmt* if_feature_stmt? status_stmt? | 364 | + | descriptionStatement? referenceStatement* ifFeatureStatement? statusStatement? |
| 367 | - | reference_stmt? if_feature_stmt* status_stmt? description_stmt? | 365 | + | referenceStatement? ifFeatureStatement* statusStatement? descriptionStatement? |
| 368 | - | reference_stmt? if_feature_stmt* description_stmt? status_stmt? | 366 | + | referenceStatement? ifFeatureStatement* descriptionStatement? statusStatement? |
| 369 | - | reference_stmt? description_stmt? status_stmt? if_feature_stmt* | 367 | + | referenceStatement? descriptionStatement? statusStatement? ifFeatureStatement* |
| 370 | - | reference_stmt? description_stmt? if_feature_stmt* status_stmt? | 368 | + | referenceStatement? descriptionStatement? ifFeatureStatement* statusStatement? |
| 371 | - | reference_stmt? status_stmt? description_stmt? if_feature_stmt* | 369 | + | referenceStatement? statusStatement? descriptionStatement? ifFeatureStatement* |
| 372 | - | reference_stmt? status_stmt? if_feature_stmt* description_stmt? | 370 | + | referenceStatement? statusStatement? ifFeatureStatement* descriptionStatement? |
| 373 | ; | 371 | ; |
| 374 | 372 | ||
| 375 | /** | 373 | /** |
| ... | @@ -381,23 +379,23 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -381,23 +379,23 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 381 | * anyxml-stmt / | 379 | * anyxml-stmt / |
| 382 | * uses-stmt | 380 | * uses-stmt |
| 383 | */ | 381 | */ |
| 384 | - data_def_stmt : container_stmt | 382 | + dataDefStatement : containerStatement |
| 385 | - | leaf_stmt | 383 | + | leafStatement |
| 386 | - | leaf_list_stmt | 384 | + | leafListStatement |
| 387 | - | list_stmt | 385 | + | listStatement |
| 388 | - | choice_stmt | 386 | + | choiceStatement |
| 389 | - | uses_stmt; | 387 | + | usesStatement; |
| 390 | 388 | ||
| 391 | /** | 389 | /** |
| 392 | * if-feature-stmt = if-feature-keyword sep identifier-ref-arg-str | 390 | * if-feature-stmt = if-feature-keyword sep identifier-ref-arg-str |
| 393 | * optsep stmtend | 391 | * optsep stmtend |
| 394 | */ | 392 | */ |
| 395 | - if_feature_stmt : IF_FEATURE_KEYWORD string STMTEND; | 393 | + ifFeatureStatement : IF_FEATURE_KEYWORD string STMTEND; |
| 396 | 394 | ||
| 397 | /** | 395 | /** |
| 398 | * units-stmt = units-keyword sep string optsep stmtend | 396 | * units-stmt = units-keyword sep string optsep stmtend |
| 399 | */ | 397 | */ |
| 400 | - units_stmt : UNITS_KEYWORD string STMTEND; | 398 | + unitsStatement : UNITS_KEYWORD string STMTEND; |
| 401 | 399 | ||
| 402 | /** | 400 | /** |
| 403 | * typedef-stmt = typedef-keyword sep identifier-arg-str optsep | 401 | * typedef-stmt = typedef-keyword sep identifier-arg-str optsep |
| ... | @@ -412,8 +410,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -412,8 +410,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 412 | * "}" | 410 | * "}" |
| 413 | * TODO : 0..1 occurance to be validated in listener | 411 | * TODO : 0..1 occurance to be validated in listener |
| 414 | */ | 412 | */ |
| 415 | - typedef_stmt : TYPEDEF_KEYWORD IDENTIFIER LEFT_CURLY_BRACE | 413 | + typedefStatement : TYPEDEF_KEYWORD IDENTIFIER LEFT_CURLY_BRACE |
| 416 | - (type_stmt | units_stmt | default_stmt | status_stmt | description_stmt | reference_stmt)* | 414 | + (typeStatement | unitsStatement | defaultStatement | statusStatement | descriptionStatement | referenceStatement)* |
| 417 | RIGHT_CURLY_BRACE; | 415 | RIGHT_CURLY_BRACE; |
| 418 | 416 | ||
| 419 | /** | 417 | /** |
| ... | @@ -423,7 +421,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -423,7 +421,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 423 | * type-body-stmts | 421 | * type-body-stmts |
| 424 | * "}") | 422 | * "}") |
| 425 | */ | 423 | */ |
| 426 | - type_stmt : TYPE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE type_body_stmts RIGHT_CURLY_BRACE); | 424 | + typeStatement : TYPE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE typeBodyStatements RIGHT_CURLY_BRACE); |
| 427 | 425 | ||
| 428 | /** | 426 | /** |
| 429 | * type-body-stmts = numerical-restrictions / | 427 | * type-body-stmts = numerical-restrictions / |
| ... | @@ -437,14 +435,14 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -437,14 +435,14 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 437 | * union-specification | 435 | * union-specification |
| 438 | * TODO : decimal64-specification to be added | 436 | * TODO : decimal64-specification to be added |
| 439 | */ | 437 | */ |
| 440 | - type_body_stmts : numerical_restrictions | string_restrictions | enum_specification | 438 | + typeBodyStatements : numericalRestrictions | stringRestrictions | enumSpecification |
| 441 | - | leafref_specification | identityref_specification | instance_identifier_specification | 439 | + | leafrefSpecification | identityrefSpecification | instanceIdentifierSpecification |
| 442 | - | bits_specification | union_specification; | 440 | + | bitsSpecification | unionSpecification; |
| 443 | 441 | ||
| 444 | /** | 442 | /** |
| 445 | * numerical-restrictions = range-stmt stmtsep | 443 | * numerical-restrictions = range-stmt stmtsep |
| 446 | */ | 444 | */ |
| 447 | - numerical_restrictions : range_stmt; | 445 | + numericalRestrictions : rangeStatement; |
| 448 | 446 | ||
| 449 | /** | 447 | /** |
| 450 | * range-stmt = range-keyword sep range-arg-str optsep | 448 | * range-stmt = range-keyword sep range-arg-str optsep |
| ... | @@ -457,32 +455,32 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -457,32 +455,32 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 457 | * [reference-stmt stmtsep] | 455 | * [reference-stmt stmtsep] |
| 458 | * "}") | 456 | * "}") |
| 459 | */ | 457 | */ |
| 460 | - range_stmt : RANGE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE common_stmts RIGHT_CURLY_BRACE); | 458 | + rangeStatement : RANGE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE commonStatements RIGHT_CURLY_BRACE); |
| 461 | - | 459 | + |
| 462 | - common_stmts : error_message_stmt? error_app_tag_stmt? description_stmt? reference_stmt? | 460 | + commonStatements : errorMessageStatement? errorAppTagStatement? descriptionStatement? referenceStatement? |
| 463 | - | error_message_stmt? error_app_tag_stmt? reference_stmt? description_stmt? | 461 | + | errorMessageStatement? errorAppTagStatement? referenceStatement? descriptionStatement? |
| 464 | - | error_message_stmt? description_stmt? error_app_tag_stmt? reference_stmt? | 462 | + | errorMessageStatement? descriptionStatement? errorAppTagStatement? referenceStatement? |
| 465 | - | error_message_stmt? description_stmt? reference_stmt? error_app_tag_stmt? | 463 | + | errorMessageStatement? descriptionStatement? referenceStatement? errorAppTagStatement? |
| 466 | - | error_message_stmt? reference_stmt? error_app_tag_stmt? description_stmt? | 464 | + | errorMessageStatement? referenceStatement? errorAppTagStatement? descriptionStatement? |
| 467 | - | error_message_stmt? reference_stmt? description_stmt? error_app_tag_stmt? | 465 | + | errorMessageStatement? referenceStatement? descriptionStatement? errorAppTagStatement? |
| 468 | - | error_app_tag_stmt? error_message_stmt? description_stmt? reference_stmt? | 466 | + | errorAppTagStatement? errorMessageStatement? descriptionStatement? referenceStatement? |
| 469 | - | error_app_tag_stmt? error_message_stmt? reference_stmt? description_stmt? | 467 | + | errorAppTagStatement? errorMessageStatement? referenceStatement? descriptionStatement? |
| 470 | - | error_app_tag_stmt? description_stmt? description_stmt? error_message_stmt? | 468 | + | errorAppTagStatement? descriptionStatement? descriptionStatement? errorMessageStatement? |
| 471 | - | error_app_tag_stmt? description_stmt? error_message_stmt? description_stmt? | 469 | + | errorAppTagStatement? descriptionStatement? errorMessageStatement? descriptionStatement? |
| 472 | - | error_app_tag_stmt? reference_stmt? error_message_stmt? description_stmt? | 470 | + | errorAppTagStatement? referenceStatement? errorMessageStatement? descriptionStatement? |
| 473 | - | error_app_tag_stmt? reference_stmt? description_stmt? error_message_stmt? | 471 | + | errorAppTagStatement? referenceStatement? descriptionStatement? errorMessageStatement? |
| 474 | - | description_stmt? error_message_stmt? error_app_tag_stmt? reference_stmt? | 472 | + | descriptionStatement? errorMessageStatement? errorAppTagStatement? referenceStatement? |
| 475 | - | description_stmt? error_message_stmt? reference_stmt? error_app_tag_stmt? | 473 | + | descriptionStatement? errorMessageStatement? referenceStatement? errorAppTagStatement? |
| 476 | - | description_stmt? error_app_tag_stmt? error_message_stmt? reference_stmt? | 474 | + | descriptionStatement? errorAppTagStatement? errorMessageStatement? referenceStatement? |
| 477 | - | description_stmt? error_app_tag_stmt? reference_stmt? error_message_stmt? | 475 | + | descriptionStatement? errorAppTagStatement? referenceStatement? errorMessageStatement? |
| 478 | - | description_stmt? reference_stmt? error_message_stmt? error_app_tag_stmt? | 476 | + | descriptionStatement? referenceStatement? errorMessageStatement? errorAppTagStatement? |
| 479 | - | description_stmt? reference_stmt? error_app_tag_stmt? error_message_stmt? | 477 | + | descriptionStatement? referenceStatement? errorAppTagStatement? errorMessageStatement? |
| 480 | - | reference_stmt? error_message_stmt? description_stmt? error_app_tag_stmt? | 478 | + | referenceStatement? errorMessageStatement? descriptionStatement? errorAppTagStatement? |
| 481 | - | reference_stmt? error_message_stmt? error_app_tag_stmt? description_stmt? | 479 | + | referenceStatement? errorMessageStatement? errorAppTagStatement? descriptionStatement? |
| 482 | - | reference_stmt? error_app_tag_stmt? description_stmt? error_message_stmt? | 480 | + | referenceStatement? errorAppTagStatement? descriptionStatement? errorMessageStatement? |
| 483 | - | reference_stmt? error_app_tag_stmt? error_message_stmt? description_stmt? | 481 | + | referenceStatement? errorAppTagStatement? errorMessageStatement? descriptionStatement? |
| 484 | - | reference_stmt? description_stmt? error_message_stmt? error_app_tag_stmt? | 482 | + | referenceStatement? descriptionStatement? errorMessageStatement? errorAppTagStatement? |
| 485 | - | reference_stmt? description_stmt? error_app_tag_stmt? error_message_stmt? | 483 | + | referenceStatement? descriptionStatement? errorAppTagStatement? errorMessageStatement? |
| 486 | ; | 484 | ; |
| 487 | 485 | ||
| 488 | /** | 486 | /** |
| ... | @@ -490,7 +488,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -490,7 +488,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 490 | * [length-stmt stmtsep] | 488 | * [length-stmt stmtsep] |
| 491 | * *(pattern-stmt stmtsep) | 489 | * *(pattern-stmt stmtsep) |
| 492 | */ | 490 | */ |
| 493 | - string_restrictions : ((length_stmt)? (pattern_stmt)*) | ((pattern_stmt)* (length_stmt)?); | 491 | + stringRestrictions : ((lengthStatement)? (patternStatement)*) | ((patternStatement)* (lengthStatement)?); |
| 494 | 492 | ||
| 495 | /** | 493 | /** |
| 496 | * length-stmt = length-keyword sep length-arg-str optsep | 494 | * length-stmt = length-keyword sep length-arg-str optsep |
| ... | @@ -503,8 +501,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -503,8 +501,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 503 | * [reference-stmt stmtsep] | 501 | * [reference-stmt stmtsep] |
| 504 | * "}") | 502 | * "}") |
| 505 | */ | 503 | */ |
| 506 | - length_stmt : LENGTH_KEYWORD string | 504 | + lengthStatement : LENGTH_KEYWORD string |
| 507 | - (STMTEND | LEFT_CURLY_BRACE common_stmts RIGHT_CURLY_BRACE); | 505 | + (STMTEND | LEFT_CURLY_BRACE commonStatements RIGHT_CURLY_BRACE); |
| 508 | 506 | ||
| 509 | /** | 507 | /** |
| 510 | * pattern-stmt = pattern-keyword sep string optsep | 508 | * pattern-stmt = pattern-keyword sep string optsep |
| ... | @@ -517,17 +515,17 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -517,17 +515,17 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 517 | * [reference-stmt stmtsep] | 515 | * [reference-stmt stmtsep] |
| 518 | * "}") | 516 | * "}") |
| 519 | */ | 517 | */ |
| 520 | - pattern_stmt : PATTERN_KEYWORD string (STMTEND | LEFT_CURLY_BRACE common_stmts RIGHT_CURLY_BRACE); | 518 | + patternStatement : PATTERN_KEYWORD string (STMTEND | LEFT_CURLY_BRACE commonStatements RIGHT_CURLY_BRACE); |
| 521 | 519 | ||
| 522 | /** | 520 | /** |
| 523 | * default-stmt = default-keyword sep string stmtend | 521 | * default-stmt = default-keyword sep string stmtend |
| 524 | */ | 522 | */ |
| 525 | - default_stmt : DEFAULT_KEYWORD string STMTEND; | 523 | + defaultStatement : DEFAULT_KEYWORD string STMTEND; |
| 526 | 524 | ||
| 527 | /** | 525 | /** |
| 528 | * enum-specification = 1*(enum-stmt stmtsep) | 526 | * enum-specification = 1*(enum-stmt stmtsep) |
| 529 | */ | 527 | */ |
| 530 | - enum_specification : enum_stmt+; | 528 | + enumSpecification : enumStatement+; |
| 531 | 529 | ||
| 532 | /** | 530 | /** |
| 533 | * enum-stmt = enum-keyword sep string optsep | 531 | * enum-stmt = enum-keyword sep string optsep |
| ... | @@ -540,32 +538,32 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -540,32 +538,32 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 540 | * [reference-stmt stmtsep] | 538 | * [reference-stmt stmtsep] |
| 541 | * "}") | 539 | * "}") |
| 542 | */ | 540 | */ |
| 543 | - enum_stmt : ENUM_KEYWORD string (STMTEND | LEFT_CURLY_BRACE enum_stmt_body RIGHT_CURLY_BRACE); | 541 | + enumStatement : ENUM_KEYWORD string (STMTEND | LEFT_CURLY_BRACE enumStatementBody RIGHT_CURLY_BRACE); |
| 544 | - | 542 | + |
| 545 | - enum_stmt_body : value_stmt? status_stmt? description_stmt? reference_stmt? | 543 | + enumStatementBody : valueStatement? statusStatement? descriptionStatement? referenceStatement? |
| 546 | - | value_stmt? status_stmt? reference_stmt? description_stmt? | 544 | + | valueStatement? statusStatement? referenceStatement? descriptionStatement? |
| 547 | - | value_stmt? description_stmt? status_stmt? reference_stmt? | 545 | + | valueStatement? descriptionStatement? statusStatement? referenceStatement? |
| 548 | - | value_stmt? description_stmt? reference_stmt? status_stmt? | 546 | + | valueStatement? descriptionStatement? referenceStatement? statusStatement? |
| 549 | - | value_stmt? reference_stmt? status_stmt? description_stmt? | 547 | + | valueStatement? referenceStatement? statusStatement? descriptionStatement? |
| 550 | - | value_stmt? reference_stmt? description_stmt? status_stmt? | 548 | + | valueStatement? referenceStatement? descriptionStatement? statusStatement? |
| 551 | - | status_stmt? value_stmt? description_stmt? reference_stmt? | 549 | + | statusStatement? valueStatement? descriptionStatement? referenceStatement? |
| 552 | - | status_stmt? value_stmt? reference_stmt? description_stmt? | 550 | + | statusStatement? valueStatement? referenceStatement? descriptionStatement? |
| 553 | - | status_stmt? description_stmt? description_stmt? value_stmt? | 551 | + | statusStatement? descriptionStatement? descriptionStatement? valueStatement? |
| 554 | - | status_stmt? description_stmt? value_stmt? description_stmt? | 552 | + | statusStatement? descriptionStatement? valueStatement? descriptionStatement? |
| 555 | - | status_stmt? reference_stmt? value_stmt? description_stmt? | 553 | + | statusStatement? referenceStatement? valueStatement? descriptionStatement? |
| 556 | - | status_stmt? reference_stmt? description_stmt? value_stmt? | 554 | + | statusStatement? referenceStatement? descriptionStatement? valueStatement? |
| 557 | - | description_stmt? value_stmt? status_stmt? reference_stmt? | 555 | + | descriptionStatement? valueStatement? statusStatement? referenceStatement? |
| 558 | - | description_stmt? value_stmt? reference_stmt? status_stmt? | 556 | + | descriptionStatement? valueStatement? referenceStatement? statusStatement? |
| 559 | - | description_stmt? status_stmt? value_stmt? reference_stmt? | 557 | + | descriptionStatement? statusStatement? valueStatement? referenceStatement? |
| 560 | - | description_stmt? status_stmt? reference_stmt? value_stmt? | 558 | + | descriptionStatement? statusStatement? referenceStatement? valueStatement? |
| 561 | - | description_stmt? reference_stmt? value_stmt? status_stmt? | 559 | + | descriptionStatement? referenceStatement? valueStatement? statusStatement? |
| 562 | - | description_stmt? reference_stmt? status_stmt? value_stmt? | 560 | + | descriptionStatement? referenceStatement? statusStatement? valueStatement? |
| 563 | - | reference_stmt? value_stmt? description_stmt? status_stmt? | 561 | + | referenceStatement? valueStatement? descriptionStatement? statusStatement? |
| 564 | - | reference_stmt? value_stmt? status_stmt? description_stmt? | 562 | + | referenceStatement? valueStatement? statusStatement? descriptionStatement? |
| 565 | - | reference_stmt? status_stmt? description_stmt? value_stmt? | 563 | + | referenceStatement? statusStatement? descriptionStatement? valueStatement? |
| 566 | - | reference_stmt? status_stmt? value_stmt? description_stmt? | 564 | + | referenceStatement? statusStatement? valueStatement? descriptionStatement? |
| 567 | - | reference_stmt? description_stmt? value_stmt? status_stmt? | 565 | + | referenceStatement? descriptionStatement? valueStatement? statusStatement? |
| 568 | - | reference_stmt? description_stmt? status_stmt? value_stmt? | 566 | + | referenceStatement? descriptionStatement? statusStatement? valueStatement? |
| 569 | ; | 567 | ; |
| 570 | 568 | ||
| 571 | /** | 569 | /** |
| ... | @@ -574,12 +572,12 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -574,12 +572,12 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 574 | * path-stmt stmtsep | 572 | * path-stmt stmtsep |
| 575 | * [require-instance-stmt stmtsep] | 573 | * [require-instance-stmt stmtsep] |
| 576 | */ | 574 | */ |
| 577 | - leafref_specification : (path_stmt (require_instance_stmt)?) | ((require_instance_stmt)? path_stmt); | 575 | + leafrefSpecification : (pathStatement (requireInstanceStatement)?) | ((requireInstanceStatement)? pathStatement); |
| 578 | 576 | ||
| 579 | /** | 577 | /** |
| 580 | * path-stmt = path-keyword sep path-arg-str stmtend | 578 | * path-stmt = path-keyword sep path-arg-str stmtend |
| 581 | */ | 579 | */ |
| 582 | - path_stmt : PATH_KEYWORD string STMTEND; | 580 | + pathStatement : PATH_KEYWORD string STMTEND; |
| 583 | 581 | ||
| 584 | /** | 582 | /** |
| 585 | * require-instance-stmt = require-instance-keyword sep | 583 | * require-instance-stmt = require-instance-keyword sep |
| ... | @@ -588,29 +586,29 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -588,29 +586,29 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 588 | * require-instance-arg > | 586 | * require-instance-arg > |
| 589 | * require-instance-arg = true-keyword / false-keyword | 587 | * require-instance-arg = true-keyword / false-keyword |
| 590 | */ | 588 | */ |
| 591 | - require_instance_stmt : REQUIRE_INSTANCE_KEYWORD (TRUE_KEYWORD | FALSE_KEYWORD) STMTEND; | 589 | + requireInstanceStatement : REQUIRE_INSTANCE_KEYWORD (TRUE_KEYWORD | FALSE_KEYWORD) STMTEND; |
| 592 | 590 | ||
| 593 | /** | 591 | /** |
| 594 | * instance-identifier-specification = | 592 | * instance-identifier-specification = |
| 595 | * [require-instance-stmt stmtsep] | 593 | * [require-instance-stmt stmtsep] |
| 596 | */ | 594 | */ |
| 597 | - instance_identifier_specification : require_instance_stmt?; | 595 | + instanceIdentifierSpecification : requireInstanceStatement?; |
| 598 | 596 | ||
| 599 | /** | 597 | /** |
| 600 | * identityref-specification = | 598 | * identityref-specification = |
| 601 | * base-stmt stmtsep | 599 | * base-stmt stmtsep |
| 602 | */ | 600 | */ |
| 603 | - identityref_specification : base_stmt; | 601 | + identityrefSpecification : baseStatement; |
| 604 | 602 | ||
| 605 | /** | 603 | /** |
| 606 | * union-specification = 1*(type-stmt stmtsep) | 604 | * union-specification = 1*(type-stmt stmtsep) |
| 607 | */ | 605 | */ |
| 608 | - union_specification : type_stmt+; | 606 | + unionSpecification : typeStatement+; |
| 609 | 607 | ||
| 610 | /** | 608 | /** |
| 611 | * bits-specification = 1*(bit-stmt stmtsep) | 609 | * bits-specification = 1*(bit-stmt stmtsep) |
| 612 | */ | 610 | */ |
| 613 | - bits_specification : bit_stmt+; | 611 | + bitsSpecification : bitStatement+; |
| 614 | 612 | ||
| 615 | /** | 613 | /** |
| 616 | * bit-stmt = bit-keyword sep identifier-arg-str optsep | 614 | * bit-stmt = bit-keyword sep identifier-arg-str optsep |
| ... | @@ -624,32 +622,32 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -624,32 +622,32 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 624 | * "}" | 622 | * "}" |
| 625 | * "}") | 623 | * "}") |
| 626 | */ | 624 | */ |
| 627 | - bit_stmt : BIT_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE bit_body_stmt RIGHT_CURLY_BRACE); | 625 | + bitStatement : BIT_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE bitBodyStatement RIGHT_CURLY_BRACE); |
| 628 | - | 626 | + |
| 629 | - bit_body_stmt : position_stmt? status_stmt? description_stmt? reference_stmt? | 627 | + bitBodyStatement : positionStatement? statusStatement? descriptionStatement? referenceStatement? |
| 630 | - | position_stmt? status_stmt? reference_stmt? description_stmt? | 628 | + | positionStatement? statusStatement? referenceStatement? descriptionStatement? |
| 631 | - | position_stmt? description_stmt? status_stmt? reference_stmt? | 629 | + | positionStatement? descriptionStatement? statusStatement? referenceStatement? |
| 632 | - | position_stmt? description_stmt? reference_stmt? status_stmt? | 630 | + | positionStatement? descriptionStatement? referenceStatement? statusStatement? |
| 633 | - | position_stmt? reference_stmt? status_stmt? description_stmt? | 631 | + | positionStatement? referenceStatement? statusStatement? descriptionStatement? |
| 634 | - | position_stmt? reference_stmt? description_stmt? status_stmt? | 632 | + | positionStatement? referenceStatement? descriptionStatement? statusStatement? |
| 635 | - | status_stmt? position_stmt? description_stmt? reference_stmt? | 633 | + | statusStatement? positionStatement? descriptionStatement? referenceStatement? |
| 636 | - | status_stmt? position_stmt? reference_stmt? description_stmt? | 634 | + | statusStatement? positionStatement? referenceStatement? descriptionStatement? |
| 637 | - | status_stmt? description_stmt? description_stmt? position_stmt? | 635 | + | statusStatement? descriptionStatement? descriptionStatement? positionStatement? |
| 638 | - | status_stmt? description_stmt? position_stmt? description_stmt? | 636 | + | statusStatement? descriptionStatement? positionStatement? descriptionStatement? |
| 639 | - | status_stmt? reference_stmt? position_stmt? description_stmt? | 637 | + | statusStatement? referenceStatement? positionStatement? descriptionStatement? |
| 640 | - | status_stmt? reference_stmt? description_stmt? position_stmt? | 638 | + | statusStatement? referenceStatement? descriptionStatement? positionStatement? |
| 641 | - | description_stmt? position_stmt? status_stmt? reference_stmt? | 639 | + | descriptionStatement? positionStatement? statusStatement? referenceStatement? |
| 642 | - | description_stmt? position_stmt? reference_stmt? status_stmt? | 640 | + | descriptionStatement? positionStatement? referenceStatement? statusStatement? |
| 643 | - | description_stmt? status_stmt? position_stmt? reference_stmt? | 641 | + | descriptionStatement? statusStatement? positionStatement? referenceStatement? |
| 644 | - | description_stmt? status_stmt? reference_stmt? position_stmt? | 642 | + | descriptionStatement? statusStatement? referenceStatement? positionStatement? |
| 645 | - | description_stmt? reference_stmt? position_stmt? status_stmt? | 643 | + | descriptionStatement? referenceStatement? positionStatement? statusStatement? |
| 646 | - | description_stmt? reference_stmt? status_stmt? position_stmt? | 644 | + | descriptionStatement? referenceStatement? statusStatement? positionStatement? |
| 647 | - | reference_stmt? position_stmt? description_stmt? status_stmt? | 645 | + | referenceStatement? positionStatement? descriptionStatement? statusStatement? |
| 648 | - | reference_stmt? position_stmt? status_stmt? description_stmt? | 646 | + | referenceStatement? positionStatement? statusStatement? descriptionStatement? |
| 649 | - | reference_stmt? status_stmt? description_stmt? position_stmt? | 647 | + | referenceStatement? statusStatement? descriptionStatement? positionStatement? |
| 650 | - | reference_stmt? status_stmt? position_stmt? description_stmt? | 648 | + | referenceStatement? statusStatement? positionStatement? descriptionStatement? |
| 651 | - | reference_stmt? description_stmt? position_stmt? status_stmt? | 649 | + | referenceStatement? descriptionStatement? positionStatement? statusStatement? |
| 652 | - | reference_stmt? description_stmt? status_stmt? position_stmt? | 650 | + | referenceStatement? descriptionStatement? statusStatement? positionStatement? |
| 653 | ; | 651 | ; |
| 654 | 652 | ||
| 655 | /** | 653 | /** |
| ... | @@ -659,7 +657,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -659,7 +657,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 659 | * position-value-arg > | 657 | * position-value-arg > |
| 660 | * position-value-arg = non-negative-integer-value | 658 | * position-value-arg = non-negative-integer-value |
| 661 | */ | 659 | */ |
| 662 | - position_stmt : POSITION_KEYWORD INTEGER STMTEND; | 660 | + positionStatement : POSITION_KEYWORD INTEGER STMTEND; |
| 663 | 661 | ||
| 664 | /** | 662 | /** |
| 665 | * status-stmt = status-keyword sep status-arg-str stmtend | 663 | * status-stmt = status-keyword sep status-arg-str stmtend |
| ... | @@ -669,7 +667,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -669,7 +667,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 669 | * obsolete-keyword / | 667 | * obsolete-keyword / |
| 670 | * deprecated-keyword | 668 | * deprecated-keyword |
| 671 | */ | 669 | */ |
| 672 | - status_stmt : STATUS_KEYWORD (CURRENT_KEYWORD | OBSOLETE_KEYWORD | DEPRECATED_KEYWORD) STMTEND; | 670 | + statusStatement : STATUS_KEYWORD (CURRENT_KEYWORD | OBSOLETE_KEYWORD | DEPRECATED_KEYWORD) STMTEND; |
| 673 | 671 | ||
| 674 | /** | 672 | /** |
| 675 | * config-stmt = config-keyword sep | 673 | * config-stmt = config-keyword sep |
| ... | @@ -678,7 +676,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -678,7 +676,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 678 | * config-arg > | 676 | * config-arg > |
| 679 | * config-arg = true-keyword / false-keyword | 677 | * config-arg = true-keyword / false-keyword |
| 680 | */ | 678 | */ |
| 681 | - config_stmt : CONFIG_KEYWORD (TRUE_KEYWORD | FALSE_KEYWORD) STMTEND; | 679 | + configStatement : CONFIG_KEYWORD (TRUE_KEYWORD | FALSE_KEYWORD) STMTEND; |
| 682 | 680 | ||
| 683 | /** | 681 | /** |
| 684 | * mandatory-stmt = mandatory-keyword sep | 682 | * mandatory-stmt = mandatory-keyword sep |
| ... | @@ -689,12 +687,12 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -689,12 +687,12 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 689 | * | 687 | * |
| 690 | * mandatory-arg = true-keyword / false-keyword | 688 | * mandatory-arg = true-keyword / false-keyword |
| 691 | */ | 689 | */ |
| 692 | - mandatory_stmt : MANDATORY_KEYWORD (TRUE_KEYWORD | FALSE_KEYWORD) STMTEND; | 690 | + mandatoryStatement : MANDATORY_KEYWORD (TRUE_KEYWORD | FALSE_KEYWORD) STMTEND; |
| 693 | 691 | ||
| 694 | /** | 692 | /** |
| 695 | * presence-stmt = presence-keyword sep string stmtend | 693 | * presence-stmt = presence-keyword sep string stmtend |
| 696 | */ | 694 | */ |
| 697 | - presence_stmt : PRESENCE_KEYWORD string STMTEND; | 695 | + presenceStatement : PRESENCE_KEYWORD string STMTEND; |
| 698 | 696 | ||
| 699 | /** | 697 | /** |
| 700 | * ordered-by-stmt = ordered-by-keyword sep | 698 | * ordered-by-stmt = ordered-by-keyword sep |
| ... | @@ -705,7 +703,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -705,7 +703,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 705 | * | 703 | * |
| 706 | * ordered-by-arg = user-keyword / system-keyword | 704 | * ordered-by-arg = user-keyword / system-keyword |
| 707 | */ | 705 | */ |
| 708 | - ordered_by_stmt : ORDERED_BY_KEYWORD (USER_KEYWORD | SYSTEM_KEYWORD) STMTEND; | 706 | + orderedByStatement : ORDERED_BY_KEYWORD (USER_KEYWORD | SYSTEM_KEYWORD) STMTEND; |
| 709 | 707 | ||
| 710 | /** | 708 | /** |
| 711 | * must-stmt = must-keyword sep string optsep | 709 | * must-stmt = must-keyword sep string optsep |
| ... | @@ -718,17 +716,17 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -718,17 +716,17 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 718 | * [reference-stmt stmtsep] | 716 | * [reference-stmt stmtsep] |
| 719 | * "}") | 717 | * "}") |
| 720 | */ | 718 | */ |
| 721 | - must_stmt : MUST_KEYWORD string (STMTEND | LEFT_CURLY_BRACE common_stmts RIGHT_CURLY_BRACE); | 719 | + mustStatement : MUST_KEYWORD string (STMTEND | LEFT_CURLY_BRACE commonStatements RIGHT_CURLY_BRACE); |
| 722 | 720 | ||
| 723 | /** | 721 | /** |
| 724 | * error-message-stmt = error-message-keyword sep string stmtend | 722 | * error-message-stmt = error-message-keyword sep string stmtend |
| 725 | */ | 723 | */ |
| 726 | - error_message_stmt : ERROR_MESSAGE_KEYWORD string STMTEND; | 724 | + errorMessageStatement : ERROR_MESSAGE_KEYWORD string STMTEND; |
| 727 | 725 | ||
| 728 | /** | 726 | /** |
| 729 | * error-app-tag-stmt = error-app-tag-keyword sep string stmtend | 727 | * error-app-tag-stmt = error-app-tag-keyword sep string stmtend |
| 730 | */ | 728 | */ |
| 731 | - error_app_tag_stmt : ERROR_APP_TAG_KEYWORD string STMTEND; | 729 | + errorAppTagStatement : ERROR_APP_TAG_KEYWORD string STMTEND; |
| 732 | 730 | ||
| 733 | /** | 731 | /** |
| 734 | * min-elements-stmt = min-elements-keyword sep | 732 | * min-elements-stmt = min-elements-keyword sep |
| ... | @@ -737,7 +735,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -737,7 +735,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 737 | * min-value-arg > | 735 | * min-value-arg > |
| 738 | * min-value-arg = non-negative-integer-value | 736 | * min-value-arg = non-negative-integer-value |
| 739 | */ | 737 | */ |
| 740 | - min_elements_stmt : MIN_ELEMENTS_KEYWORD INTEGER STMTEND; | 738 | + minElementsStatement : MIN_ELEMENTS_KEYWORD INTEGER STMTEND; |
| 741 | 739 | ||
| 742 | /** | 740 | /** |
| 743 | * max-elements-stmt = max-elements-keyword sep | 741 | * max-elements-stmt = max-elements-keyword sep |
| ... | @@ -746,18 +744,18 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -746,18 +744,18 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 746 | * max-value-arg > | 744 | * max-value-arg > |
| 747 | 745 | ||
| 748 | */ | 746 | */ |
| 749 | - max_elements_stmt : MAX_ELEMENTS_KEYWORD max_value_arg STMTEND; | 747 | + maxElementsStatement : MAX_ELEMENTS_KEYWORD maxValueArgument STMTEND; |
| 750 | 748 | ||
| 751 | /** | 749 | /** |
| 752 | * max-value-arg = unbounded-keyword / | 750 | * max-value-arg = unbounded-keyword / |
| 753 | * positive-integer-value | 751 | * positive-integer-value |
| 754 | */ | 752 | */ |
| 755 | - max_value_arg : UNBOUNDED_KEYWORD | INTEGER; | 753 | + maxValueArgument : UNBOUNDED_KEYWORD | INTEGER; |
| 756 | 754 | ||
| 757 | /** | 755 | /** |
| 758 | * value-stmt = value-keyword sep integer-value stmtend | 756 | * value-stmt = value-keyword sep integer-value stmtend |
| 759 | */ | 757 | */ |
| 760 | - value_stmt : VALUE_KEYWORD ((MINUS INTEGER) | INTEGER) STMTEND; | 758 | + valueStatement : VALUE_KEYWORD ((MINUS INTEGER) | INTEGER) STMTEND; |
| 761 | 759 | ||
| 762 | /** | 760 | /** |
| 763 | * grouping-stmt = grouping-keyword sep identifier-arg-str optsep | 761 | * grouping-stmt = grouping-keyword sep identifier-arg-str optsep |
| ... | @@ -773,9 +771,9 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -773,9 +771,9 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 773 | * "}") | 771 | * "}") |
| 774 | * TODO : 0..1 occurance to be checked in listener | 772 | * TODO : 0..1 occurance to be checked in listener |
| 775 | */ | 773 | */ |
| 776 | - grouping_stmt : GROUPING_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE | 774 | + groupingStatement : GROUPING_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE |
| 777 | - (status_stmt | description_stmt | reference_stmt | typedef_stmt | grouping_stmt | 775 | + (statusStatement | descriptionStatement | referenceStatement | typedefStatement | groupingStatement |
| 778 | - | data_def_stmt)* RIGHT_CURLY_BRACE); | 776 | + | dataDefStatement)* RIGHT_CURLY_BRACE); |
| 779 | 777 | ||
| 780 | /** | 778 | /** |
| 781 | * container-stmt = container-keyword sep identifier-arg-str optsep | 779 | * container-stmt = container-keyword sep identifier-arg-str optsep |
| ... | @@ -796,10 +794,10 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -796,10 +794,10 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 796 | * "}") | 794 | * "}") |
| 797 | * TODO : 0..1 occurance to be checked in listener | 795 | * TODO : 0..1 occurance to be checked in listener |
| 798 | */ | 796 | */ |
| 799 | - container_stmt : CONTAINER_KEYWORD IDENTIFIER | 797 | + containerStatement : CONTAINER_KEYWORD IDENTIFIER |
| 800 | - (STMTEND | LEFT_CURLY_BRACE (when_stmt | if_feature_stmt | must_stmt | presence_stmt | config_stmt | 798 | + (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | mustStatement | presenceStatement | configStatement |
| 801 | - | status_stmt | description_stmt | reference_stmt | typedef_stmt | grouping_stmt | 799 | + | statusStatement | descriptionStatement | referenceStatement | typedefStatement | groupingStatement |
| 802 | - | data_def_stmt)* RIGHT_CURLY_BRACE); | 800 | + | dataDefStatement)* RIGHT_CURLY_BRACE); |
| 803 | 801 | ||
| 804 | /** | 802 | /** |
| 805 | * leaf-stmt = leaf-keyword sep identifier-arg-str optsep | 803 | * leaf-stmt = leaf-keyword sep identifier-arg-str optsep |
| ... | @@ -819,9 +817,9 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -819,9 +817,9 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 819 | * "}" | 817 | * "}" |
| 820 | * TODO : 0..1 occurance to be checked in listener | 818 | * TODO : 0..1 occurance to be checked in listener |
| 821 | */ | 819 | */ |
| 822 | - leaf_stmt : LEAF_KEYWORD IDENTIFIER LEFT_CURLY_BRACE (when_stmt | if_feature_stmt | type_stmt | units_stmt | 820 | + leafStatement : LEAF_KEYWORD IDENTIFIER LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | typeStatement | unitsStatement |
| 823 | - | must_stmt | default_stmt | config_stmt | mandatory_stmt | status_stmt | description_stmt | 821 | + | mustStatement | defaultStatement | configStatement | mandatoryStatement | statusStatement | descriptionStatement |
| 824 | - | reference_stmt)* RIGHT_CURLY_BRACE; | 822 | + | referenceStatement)* RIGHT_CURLY_BRACE; |
| 825 | 823 | ||
| 826 | /** | 824 | /** |
| 827 | * leaf-list-stmt = leaf-list-keyword sep identifier-arg-str optsep | 825 | * leaf-list-stmt = leaf-list-keyword sep identifier-arg-str optsep |
| ... | @@ -842,9 +840,9 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -842,9 +840,9 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 842 | * "}" | 840 | * "}" |
| 843 | * TODO : 0..1 occurance to be checked in listener | 841 | * TODO : 0..1 occurance to be checked in listener |
| 844 | */ | 842 | */ |
| 845 | - leaf_list_stmt : LEAF_LIST_KEYWORD IDENTIFIER LEFT_CURLY_BRACE (when_stmt | if_feature_stmt | type_stmt | 843 | + leafListStatement : LEAF_LIST_KEYWORD IDENTIFIER LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | typeStatement |
| 846 | - | units_stmt | must_stmt | config_stmt | min_elements_stmt | max_elements_stmt | ordered_by_stmt | 844 | + | unitsStatement | mustStatement | configStatement | minElementsStatement | maxElementsStatement | orderedByStatement |
| 847 | - | status_stmt | description_stmt | reference_stmt)* RIGHT_CURLY_BRACE; | 845 | + | statusStatement | descriptionStatement | referenceStatement)* RIGHT_CURLY_BRACE; |
| 848 | 846 | ||
| 849 | /** | 847 | /** |
| 850 | * list-stmt = list-keyword sep identifier-arg-str optsep | 848 | * list-stmt = list-keyword sep identifier-arg-str optsep |
| ... | @@ -868,19 +866,19 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -868,19 +866,19 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 868 | * "}" | 866 | * "}" |
| 869 | * TODO : 0..1 occurance to be checked in listener | 867 | * TODO : 0..1 occurance to be checked in listener |
| 870 | */ | 868 | */ |
| 871 | - list_stmt : LIST_KEYWORD IDENTIFIER LEFT_CURLY_BRACE (when_stmt | if_feature_stmt | must_stmt | key_stmt | 869 | + listStatement : LIST_KEYWORD IDENTIFIER LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | mustStatement | keyStatement |
| 872 | - | unique_stmt | config_stmt | min_elements_stmt | max_elements_stmt | ordered_by_stmt | status_stmt | 870 | + | uniqueStatement | configStatement | minElementsStatement | maxElementsStatement | orderedByStatement | statusStatement |
| 873 | - | description_stmt | reference_stmt | typedef_stmt | grouping_stmt| data_def_stmt)* RIGHT_CURLY_BRACE; | 871 | + | descriptionStatement | referenceStatement | typedefStatement | groupingStatement| dataDefStatement)* RIGHT_CURLY_BRACE; |
| 874 | 872 | ||
| 875 | /** | 873 | /** |
| 876 | * key-stmt = key-keyword sep key-arg-str stmtend | 874 | * key-stmt = key-keyword sep key-arg-str stmtend |
| 877 | */ | 875 | */ |
| 878 | - key_stmt : KEY_KEYWORD string STMTEND; | 876 | + keyStatement : KEY_KEYWORD string STMTEND; |
| 879 | 877 | ||
| 880 | /** | 878 | /** |
| 881 | * unique-stmt = unique-keyword sep unique-arg-str stmtend | 879 | * unique-stmt = unique-keyword sep unique-arg-str stmtend |
| 882 | */ | 880 | */ |
| 883 | - unique_stmt: UNIQUE_KEYWORD string STMTEND; | 881 | + uniqueStatement: UNIQUE_KEYWORD string STMTEND; |
| 884 | 882 | ||
| 885 | /** | 883 | /** |
| 886 | * choice-stmt = choice-keyword sep identifier-arg-str optsep | 884 | * choice-stmt = choice-keyword sep identifier-arg-str optsep |
| ... | @@ -899,9 +897,9 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -899,9 +897,9 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 899 | * "}") | 897 | * "}") |
| 900 | * TODO : 0..1 occurance to be checked in listener | 898 | * TODO : 0..1 occurance to be checked in listener |
| 901 | */ | 899 | */ |
| 902 | - choice_stmt : CHOICE_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE (when_stmt | if_feature_stmt | default_stmt | 900 | + choiceStatement : CHOICE_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | defaultStatement |
| 903 | - | config_stmt | mandatory_stmt | status_stmt | description_stmt | reference_stmt | short_case_stmt | 901 | + | configStatement | mandatoryStatement | statusStatement | descriptionStatement | referenceStatement | shortCaseStatement |
| 904 | - | case_stmt)* RIGHT_CURLY_BRACE); | 902 | + | caseStatement)* RIGHT_CURLY_BRACE); |
| 905 | 903 | ||
| 906 | /** | 904 | /** |
| 907 | * short-case-stmt = container-stmt / | 905 | * short-case-stmt = container-stmt / |
| ... | @@ -910,7 +908,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -910,7 +908,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 910 | * list-stmt / | 908 | * list-stmt / |
| 911 | * anyxml-stmt | 909 | * anyxml-stmt |
| 912 | */ | 910 | */ |
| 913 | - short_case_stmt : container_stmt | leaf_stmt | leaf_list_stmt | list_stmt; | 911 | + shortCaseStatement : containerStatement | leafStatement | leafListStatement | listStatement; |
| 914 | 912 | ||
| 915 | /** | 913 | /** |
| 916 | * case-stmt = case-keyword sep identifier-arg-str optsep | 914 | * case-stmt = case-keyword sep identifier-arg-str optsep |
| ... | @@ -926,8 +924,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -926,8 +924,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 926 | * "}") | 924 | * "}") |
| 927 | * TODO : 0..1 occurance to be checked in listener | 925 | * TODO : 0..1 occurance to be checked in listener |
| 928 | */ | 926 | */ |
| 929 | - case_stmt : CASE_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE (when_stmt | if_feature_stmt | status_stmt | 927 | + caseStatement : CASE_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | statusStatement |
| 930 | - | description_stmt | reference_stmt | data_def_stmt)* RIGHT_CURLY_BRACE); | 928 | + | descriptionStatement | referenceStatement | dataDefStatement)* RIGHT_CURLY_BRACE); |
| 931 | 929 | ||
| 932 | /** | 930 | /** |
| 933 | * uses-stmt = uses-keyword sep identifier-ref-arg-str optsep | 931 | * uses-stmt = uses-keyword sep identifier-ref-arg-str optsep |
| ... | @@ -944,8 +942,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -944,8 +942,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 944 | * "}") | 942 | * "}") |
| 945 | * TODO : 0..1 occurance to be checked in listener | 943 | * TODO : 0..1 occurance to be checked in listener |
| 946 | */ | 944 | */ |
| 947 | - uses_stmt : USES_KEYWORD string (STMTEND | LEFT_CURLY_BRACE (when_stmt | if_feature_stmt | status_stmt | 945 | + usesStatement : USES_KEYWORD string (STMTEND | LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | statusStatement |
| 948 | - | description_stmt | reference_stmt | refine_stmt | uses_augment_stmt)* RIGHT_CURLY_BRACE); | 946 | + | descriptionStatement | referenceStatement | refineStatement | usesAugmentStatement)* RIGHT_CURLY_BRACE); |
| 949 | 947 | ||
| 950 | /** | 948 | /** |
| 951 | * refine-stmt = refine-keyword sep refine-arg-str optsep | 949 | * refine-stmt = refine-keyword sep refine-arg-str optsep |
| ... | @@ -960,8 +958,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -960,8 +958,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 960 | * refine-anyxml-stmts) | 958 | * refine-anyxml-stmts) |
| 961 | * "}") | 959 | * "}") |
| 962 | */ | 960 | */ |
| 963 | - refine_stmt : REFINE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE (refine_container_stmts | refine_leaf_stmts | 961 | + refineStatement : REFINE_KEYWORD string (STMTEND | LEFT_CURLY_BRACE (refineContainerStatements | refineLeafStatements |
| 964 | - | refine_leaf_list_stmts | refine_list_stmts | refine_choice_stmts | refine_case_stmts) | 962 | + | refineLeafListStatements | refineListStatements | refineChoiceStatements | refineCaseStatements) |
| 965 | RIGHT_CURLY_BRACE); | 963 | RIGHT_CURLY_BRACE); |
| 966 | 964 | ||
| 967 | /** | 965 | /** |
| ... | @@ -974,7 +972,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -974,7 +972,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 974 | * [reference-stmt stmtsep] | 972 | * [reference-stmt stmtsep] |
| 975 | * TODO : 0..1 occurance to be checked in listener | 973 | * TODO : 0..1 occurance to be checked in listener |
| 976 | */ | 974 | */ |
| 977 | - refine_container_stmts : (must_stmt | presence_stmt | config_stmt | description_stmt | reference_stmt)* ; | 975 | + refineContainerStatements : (mustStatement | presenceStatement | configStatement | descriptionStatement | referenceStatement)* ; |
| 978 | 976 | ||
| 979 | /** | 977 | /** |
| 980 | * refine-leaf-stmts = ;; these stmts can appear in any order | 978 | * refine-leaf-stmts = ;; these stmts can appear in any order |
| ... | @@ -986,7 +984,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -986,7 +984,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 986 | * [reference-stmt stmtsep] | 984 | * [reference-stmt stmtsep] |
| 987 | * TODO : 0..1 occurance to be checked in listener | 985 | * TODO : 0..1 occurance to be checked in listener |
| 988 | */ | 986 | */ |
| 989 | - refine_leaf_stmts : (must_stmt | default_stmt | config_stmt | mandatory_stmt | description_stmt | reference_stmt)*; | 987 | + refineLeafStatements : (mustStatement | defaultStatement | configStatement | mandatoryStatement | descriptionStatement | referenceStatement)*; |
| 990 | 988 | ||
| 991 | /** | 989 | /** |
| 992 | * refine-leaf-list-stmts = | 990 | * refine-leaf-list-stmts = |
| ... | @@ -999,8 +997,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -999,8 +997,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 999 | * [reference-stmt stmtsep] | 997 | * [reference-stmt stmtsep] |
| 1000 | * TODO : 0..1 occurance to be checked in listener | 998 | * TODO : 0..1 occurance to be checked in listener |
| 1001 | */ | 999 | */ |
| 1002 | - refine_leaf_list_stmts : (must_stmt | config_stmt | min_elements_stmt | max_elements_stmt | description_stmt | 1000 | + refineLeafListStatements : (mustStatement | configStatement | minElementsStatement | maxElementsStatement | descriptionStatement |
| 1003 | - | reference_stmt)*; | 1001 | + | referenceStatement)*; |
| 1004 | 1002 | ||
| 1005 | /** | 1003 | /** |
| 1006 | * refine-list-stmts = ;; these stmts can appear in any order | 1004 | * refine-list-stmts = ;; these stmts can appear in any order |
| ... | @@ -1012,8 +1010,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1012,8 +1010,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1012 | * [reference-stmt stmtsep] | 1010 | * [reference-stmt stmtsep] |
| 1013 | * TODO : 0..1 occurance to be checked in listener | 1011 | * TODO : 0..1 occurance to be checked in listener |
| 1014 | */ | 1012 | */ |
| 1015 | - refine_list_stmts : (must_stmt | config_stmt | min_elements_stmt | max_elements_stmt | description_stmt | 1013 | + refineListStatements : (mustStatement | configStatement | minElementsStatement | maxElementsStatement | descriptionStatement |
| 1016 | - | reference_stmt)*; | 1014 | + | referenceStatement)*; |
| 1017 | 1015 | ||
| 1018 | /** | 1016 | /** |
| 1019 | * refine-choice-stmts = ;; these stmts can appear in any order | 1017 | * refine-choice-stmts = ;; these stmts can appear in any order |
| ... | @@ -1024,7 +1022,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1024,7 +1022,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1024 | * [reference-stmt stmtsep] | 1022 | * [reference-stmt stmtsep] |
| 1025 | * TODO : 0..1 occurance to be checked in listener | 1023 | * TODO : 0..1 occurance to be checked in listener |
| 1026 | */ | 1024 | */ |
| 1027 | - refine_choice_stmts : (default_stmt | config_stmt | mandatory_stmt | description_stmt | reference_stmt)*; | 1025 | + refineChoiceStatements : (defaultStatement | configStatement | mandatoryStatement | descriptionStatement | referenceStatement)*; |
| 1028 | 1026 | ||
| 1029 | /** | 1027 | /** |
| 1030 | * refine-case-stmts = ;; these stmts can appear in any order | 1028 | * refine-case-stmts = ;; these stmts can appear in any order |
| ... | @@ -1032,7 +1030,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1032,7 +1030,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1032 | * [reference-stmt stmtsep] | 1030 | * [reference-stmt stmtsep] |
| 1033 | * | 1031 | * |
| 1034 | */ | 1032 | */ |
| 1035 | - refine_case_stmts : (description_stmt | reference_stmt)? | (reference_stmt | description_stmt)?; | 1033 | + refineCaseStatements : (descriptionStatement | referenceStatement)? | (referenceStatement | descriptionStatement)?; |
| 1036 | 1034 | ||
| 1037 | /** | 1035 | /** |
| 1038 | * uses-augment-stmt = augment-keyword sep uses-augment-arg-str optsep | 1036 | * uses-augment-stmt = augment-keyword sep uses-augment-arg-str optsep |
| ... | @@ -1048,8 +1046,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1048,8 +1046,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1048 | * "}" | 1046 | * "}" |
| 1049 | * TODO : 0..1 occurance to be checked in listener | 1047 | * TODO : 0..1 occurance to be checked in listener |
| 1050 | */ | 1048 | */ |
| 1051 | - uses_augment_stmt : AUGMENT_KEYWORD string LEFT_CURLY_BRACE (when_stmt | if_feature_stmt | status_stmt | 1049 | + usesAugmentStatement : AUGMENT_KEYWORD string LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | statusStatement |
| 1052 | - | description_stmt | reference_stmt | data_def_stmt | case_stmt)* RIGHT_CURLY_BRACE; | 1050 | + | descriptionStatement | referenceStatement | dataDefStatement | caseStatement)* RIGHT_CURLY_BRACE; |
| 1053 | 1051 | ||
| 1054 | /** | 1052 | /** |
| 1055 | * augment-stmt = augment-keyword sep augment-arg-str optsep | 1053 | * augment-stmt = augment-keyword sep augment-arg-str optsep |
| ... | @@ -1065,8 +1063,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1065,8 +1063,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1065 | * "}" | 1063 | * "}" |
| 1066 | * TODO : 0..1 occurance to be checked in listener | 1064 | * TODO : 0..1 occurance to be checked in listener |
| 1067 | */ | 1065 | */ |
| 1068 | - augment_stmt : AUGMENT_KEYWORD string LEFT_CURLY_BRACE (when_stmt | if_feature_stmt | status_stmt | 1066 | + augmentStatement : AUGMENT_KEYWORD string LEFT_CURLY_BRACE (whenStatement | ifFeatureStatement | statusStatement |
| 1069 | - | description_stmt | reference_stmt | data_def_stmt | case_stmt)* RIGHT_CURLY_BRACE; | 1067 | + | descriptionStatement | referenceStatement | dataDefStatement | caseStatement)* RIGHT_CURLY_BRACE; |
| 1070 | 1068 | ||
| 1071 | /** | 1069 | /** |
| 1072 | * when-stmt = when-keyword sep string optsep | 1070 | * when-stmt = when-keyword sep string optsep |
| ... | @@ -1078,8 +1076,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1078,8 +1076,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1078 | * "}") | 1076 | * "}") |
| 1079 | * | 1077 | * |
| 1080 | */ | 1078 | */ |
| 1081 | - when_stmt : WHEN_KEYWORD string (STMTEND | LEFT_CURLY_BRACE ((description_stmt? reference_stmt?) | 1079 | + whenStatement : WHEN_KEYWORD string (STMTEND | LEFT_CURLY_BRACE ((descriptionStatement? referenceStatement?) |
| 1082 | - | (reference_stmt? description_stmt?)) RIGHT_CURLY_BRACE); | 1080 | + | (referenceStatement? descriptionStatement?)) RIGHT_CURLY_BRACE); |
| 1083 | 1081 | ||
| 1084 | /** | 1082 | /** |
| 1085 | * rpc-stmt = rpc-keyword sep identifier-arg-str optsep | 1083 | * rpc-stmt = rpc-keyword sep identifier-arg-str optsep |
| ... | @@ -1097,8 +1095,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1097,8 +1095,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1097 | * "}") | 1095 | * "}") |
| 1098 | * TODO : 0..1 occurance to be checked in listener | 1096 | * TODO : 0..1 occurance to be checked in listener |
| 1099 | */ | 1097 | */ |
| 1100 | - rpc_stmt : RPC_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE (if_feature_stmt | status_stmt | description_stmt | 1098 | + rpcStatement : RPC_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE (ifFeatureStatement | statusStatement | descriptionStatement |
| 1101 | - | reference_stmt | typedef_stmt | grouping_stmt | input_stmt | output_stmt)* RIGHT_CURLY_BRACE); | 1099 | + | referenceStatement | typedefStatement | groupingStatement | inputStatement | outputStatement)* RIGHT_CURLY_BRACE); |
| 1102 | 1100 | ||
| 1103 | /** | 1101 | /** |
| 1104 | * input-stmt = input-keyword optsep | 1102 | * input-stmt = input-keyword optsep |
| ... | @@ -1109,9 +1107,9 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1109,9 +1107,9 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1109 | * 1*(data-def-stmt stmtsep) | 1107 | * 1*(data-def-stmt stmtsep) |
| 1110 | * "}" | 1108 | * "}" |
| 1111 | */ | 1109 | */ |
| 1112 | - input_stmt : INPUT_KEYWORD LEFT_CURLY_BRACE | 1110 | + inputStatement : INPUT_KEYWORD LEFT_CURLY_BRACE |
| 1113 | - ((typedef_stmt | grouping_stmt)* | data_def_stmt+) | 1111 | + ((typedefStatement | groupingStatement)* | dataDefStatement+) |
| 1114 | - | (data_def_stmt+ | (typedef_stmt | grouping_stmt)*)RIGHT_CURLY_BRACE; | 1112 | + | (dataDefStatement+ | (typedefStatement | groupingStatement)*)RIGHT_CURLY_BRACE; |
| 1115 | 1113 | ||
| 1116 | /** | 1114 | /** |
| 1117 | * output-stmt = output-keyword optsep | 1115 | * output-stmt = output-keyword optsep |
| ... | @@ -1122,9 +1120,9 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1122,9 +1120,9 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1122 | * 1*(data-def-stmt stmtsep) | 1120 | * 1*(data-def-stmt stmtsep) |
| 1123 | * "}" | 1121 | * "}" |
| 1124 | */ | 1122 | */ |
| 1125 | - output_stmt : OUTPUT_KEYWORD LEFT_CURLY_BRACE | 1123 | + outputStatement : OUTPUT_KEYWORD LEFT_CURLY_BRACE |
| 1126 | - ((typedef_stmt | grouping_stmt)* | data_def_stmt+) | 1124 | + ((typedefStatement | groupingStatement)* | dataDefStatement+) |
| 1127 | - | (data_def_stmt+ | (typedef_stmt | grouping_stmt)*)RIGHT_CURLY_BRACE; | 1125 | + | (dataDefStatement+ | (typedefStatement | groupingStatement)*)RIGHT_CURLY_BRACE; |
| 1128 | 1126 | ||
| 1129 | /** | 1127 | /** |
| 1130 | * notification-stmt = notification-keyword sep | 1128 | * notification-stmt = notification-keyword sep |
| ... | @@ -1142,8 +1140,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1142,8 +1140,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1142 | * "}") | 1140 | * "}") |
| 1143 | * TODO : 0..1 occurance to be checked in listener | 1141 | * TODO : 0..1 occurance to be checked in listener |
| 1144 | */ | 1142 | */ |
| 1145 | - notification_stmt : NOTIFICATION_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE (if_feature_stmt | status_stmt | 1143 | + notificationStatement : NOTIFICATION_KEYWORD IDENTIFIER (STMTEND | LEFT_CURLY_BRACE (ifFeatureStatement | statusStatement |
| 1146 | - | description_stmt | reference_stmt | typedef_stmt | grouping_stmt | data_def_stmt)* | 1144 | + | descriptionStatement | referenceStatement | typedefStatement | groupingStatement | dataDefStatement)* |
| 1147 | RIGHT_CURLY_BRACE); | 1145 | RIGHT_CURLY_BRACE); |
| 1148 | 1146 | ||
| 1149 | /** | 1147 | /** |
| ... | @@ -1160,8 +1158,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1160,8 +1158,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1160 | * "}" | 1158 | * "}" |
| 1161 | * TODO : 0..1 occurance to be checked in listener | 1159 | * TODO : 0..1 occurance to be checked in listener |
| 1162 | */ | 1160 | */ |
| 1163 | - deviation_stmt: DEVIATION_KEYWORD string LEFT_CURLY_BRACE (description_stmt | reference_stmt | 1161 | + deviationStatement: DEVIATION_KEYWORD string LEFT_CURLY_BRACE (descriptionStatement | referenceStatement |
| 1164 | - | deviate_not_supported_stmt | deviate_add_stmt | deviate_replace_stmt | deviate_delete_stmt)* | 1162 | + | deviateNotSupportedStatement | deviateAddStatement | deviateReplaceStatement | deviateDeleteStatement)* |
| 1165 | RIGHT_CURLY_BRACE; | 1163 | RIGHT_CURLY_BRACE; |
| 1166 | 1164 | ||
| 1167 | /** | 1165 | /** |
| ... | @@ -1172,7 +1170,7 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1172,7 +1170,7 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1172 | * "{" stmtsep | 1170 | * "{" stmtsep |
| 1173 | * "}") | 1171 | * "}") |
| 1174 | */ | 1172 | */ |
| 1175 | - deviate_not_supported_stmt: DEVIATE_KEYWORD NOT_SUPPORTED_KEYWORD (STMTEND | LEFT_CURLY_BRACE RIGHT_CURLY_BRACE); | 1173 | + deviateNotSupportedStatement: DEVIATE_KEYWORD NOT_SUPPORTED_KEYWORD (STMTEND | LEFT_CURLY_BRACE RIGHT_CURLY_BRACE); |
| 1176 | 1174 | ||
| 1177 | /** | 1175 | /** |
| 1178 | * deviate-add-stmt = deviate-keyword sep add-keyword optsep | 1176 | * deviate-add-stmt = deviate-keyword sep add-keyword optsep |
| ... | @@ -1188,8 +1186,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1188,8 +1186,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1188 | * [max-elements-stmt stmtsep] | 1186 | * [max-elements-stmt stmtsep] |
| 1189 | * "}") | 1187 | * "}") |
| 1190 | */ | 1188 | */ |
| 1191 | - deviate_add_stmt: DEVIATE_KEYWORD ADD_KEYWORD (STMTEND | (LEFT_CURLY_BRACE units_stmt? must_stmt* unique_stmt* | 1189 | + deviateAddStatement: DEVIATE_KEYWORD ADD_KEYWORD (STMTEND | (LEFT_CURLY_BRACE unitsStatement? mustStatement* uniqueStatement* |
| 1192 | - default_stmt? config_stmt? mandatory_stmt? min_elements_stmt? max_elements_stmt? | 1190 | + defaultStatement? configStatement? mandatoryStatement? minElementsStatement? maxElementsStatement? |
| 1193 | RIGHT_CURLY_BRACE)); | 1191 | RIGHT_CURLY_BRACE)); |
| 1194 | 1192 | ||
| 1195 | /** | 1193 | /** |
| ... | @@ -1202,8 +1200,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1202,8 +1200,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1202 | * [default-stmt stmtsep] | 1200 | * [default-stmt stmtsep] |
| 1203 | * "}") | 1201 | * "}") |
| 1204 | */ | 1202 | */ |
| 1205 | - deviate_delete_stmt: DEVIATE_KEYWORD DELETE_KEYWORD (STMTEND | 1203 | + deviateDeleteStatement: DEVIATE_KEYWORD DELETE_KEYWORD (STMTEND |
| 1206 | - | (LEFT_CURLY_BRACE units_stmt? must_stmt* unique_stmt* default_stmt? RIGHT_CURLY_BRACE)); | 1204 | + | (LEFT_CURLY_BRACE unitsStatement? mustStatement* uniqueStatement* defaultStatement? RIGHT_CURLY_BRACE)); |
| 1207 | 1205 | ||
| 1208 | /** | 1206 | /** |
| 1209 | * deviate-replace-stmt = deviate-keyword sep replace-keyword optsep | 1207 | * deviate-replace-stmt = deviate-keyword sep replace-keyword optsep |
| ... | @@ -1218,9 +1216,8 @@ package org.onosproject.yangutils.parser.antlrgencode; | ... | @@ -1218,9 +1216,8 @@ package org.onosproject.yangutils.parser.antlrgencode; |
| 1218 | * [max-elements-stmt stmtsep] | 1216 | * [max-elements-stmt stmtsep] |
| 1219 | * "}") | 1217 | * "}") |
| 1220 | */ | 1218 | */ |
| 1221 | - deviate_replace_stmt: DEVIATE_KEYWORD REPLACE_KEYWORD (STMTEND | (LEFT_CURLY_BRACE type_stmt? units_stmt? | 1219 | + deviateReplaceStatement: DEVIATE_KEYWORD REPLACE_KEYWORD (STMTEND | (LEFT_CURLY_BRACE typeStatement? unitsStatement? |
| 1222 | - default_stmt? config_stmt? mandatory_stmt? min_elements_stmt? | 1220 | + defaultStatement? configStatement? mandatoryStatement? minElementsStatement? |
| 1223 | - max_elements_stmt? RIGHT_CURLY_BRACE)); | 1221 | + maxElementsStatement? RIGHT_CURLY_BRACE)); |
| 1224 | 1222 | ||
| 1225 | string : STRING (PLUS STRING)*; | 1223 | string : STRING (PLUS STRING)*; |
| 1226 | - | ... | ... |
-
Please register or login to post a comment