Java APG, Version 1.0
Author Lowell D. Thomas
Copyright © Coast to Coast Research, Inc. 2011

com.coasttocoastresearch.examples.anbncn
Class AnBnCn

java.lang.Object
  extended by com.coasttocoastresearch.apg.Grammar
      extended by com.coasttocoastresearch.examples.anbncn.AnBnCn

public class AnBnCn
extends com.coasttocoastresearch.apg.Grammar

This class has been generated automatically from an SABNF grammer by Java APG, the Generator class.
It is an extension of the Grammar class containing additional members and enums not found in the base class.
The function getInstance() will return a reference to a static, singleton instance of the class.

For more information visit http://www.coasttocoastresearch.com.


Nested Class Summary
static class AnBnCn.RuleNames
          This enum provides easy to remember enum constants for locating the rule identifiers and names.
static class AnBnCn.UdtNames
          This enum provides easy to remember enum constants for locating the UDT identifiers and names.
 
Field Summary
static int ruleCount
          The number of rules in the grammar
static int udtCount
          The number of UDTs in the grammar
 
Method Summary
static void display(java.io.PrintStream out)
          Displays the original SABNF grammar on the output device.
static com.coasttocoastresearch.apg.Grammar getInstance()
          Called to get a singleton instance of this class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ruleCount

public static int ruleCount
The number of rules in the grammar


udtCount

public static int udtCount
The number of UDTs in the grammar

Method Detail

display

public static void display(java.io.PrintStream out)
Displays the original SABNF grammar on the output device.

Parameters:
out - the output device to display on.

getInstance

public static com.coasttocoastresearch.apg.Grammar getInstance()
Called to get a singleton instance of this class.

Returns:
a singleton instance of this class, cast as the base class, Grammar.

Java APG, Version 1.0
Author Lowell D. Thomas
Copyright © Coast to Coast Research, Inc. 2011

Licence Notification

All the software in this distribution is free software:
you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program in the COPYING file. If not, see GPL, Version 2
or GPL, Version 3 or write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.