Package EDU.purdue.jtb.common
Class Constants
- java.lang.Object
-
- EDU.purdue.jtb.common.Constants
-
public class Constants extends java.lang.ObjectClassConstantscontains static global flags, constants and names.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]baseNodesClassesThe list of base nodes classesstatic java.lang.String[]baseNodesInterfacesThe array of base nodes interfacesstatic intBRLENThe javadoc break plus string lengthstatic java.lang.StringBRLSThe javadoc break plus the OS line separatorstatic intBRLSLENThe javadoc break plus the OS line separator string lengthstatic booleanDEBUG_CLASSTurns on / off printing class debug comments (useful to find where each line is produced)static booleanDEBUG_COMMENTTurns on / off printing field and sub comment debug commentsstatic java.lang.StringDEF_HOOK_DIR_NAMEDefault node scope hook directory namestatic java.lang.StringDEF_HOOK_PKG_NAMEDefault node scope hook package namestatic java.lang.StringDEF_ND_DIR_NAMEDefault nodes directory namestatic java.lang.StringDEF_ND_PKG_NAMEDefault nodes package namestatic java.lang.StringDEF_ND_PREFIXDefault nodes prefixstatic java.lang.StringDEF_ND_SUFFIXDefault nodes suffixstatic java.lang.StringDEF_OUT_FILE_NAMEDefault JavaCC generated grammar file namestatic java.lang.StringDEF_SIG_DIR_NAMEDefault signature directory namestatic java.lang.StringDEF_SIG_PKG_NAMEDefault signature package namestatic java.lang.StringDEF_VIS_DIR_NAMEDefault visitors directory namestatic java.lang.StringDEF_VIS_PKG_NAMEDefault visitors package namestatic java.lang.StringemptyEnterExitHookThe node scope hook empty class namestatic intFILE_EXISTS_RCThe "file exists" return codestatic java.lang.StringfileHeaderCommentFile header commentstatic java.lang.StringgenArguVarVisitor methods user argument (second and more arguments) variablestatic java.lang.StringgenDepthLevelVarVisitor methods depth level local variablestatic java.lang.StringgenNodeVarVisitor methods node argument (first argument) variablestatic java.lang.StringgenNodeVarDotVisitor methods node argument (first argument) variable plus dotstatic java.lang.StringgenRetVarVisitor methods return variablestatic java.lang.StringgenVisVarAccept methods visitor variablestatic java.lang.StringiEnterExitHookThe node scope hook interface namestatic intINDENT_AMTThe indentation default number of charactersstatic java.lang.StringiNodeName of the node interface that all tree nodes implementstatic java.lang.StringiNodeListName of the list interface that NodeList, NodeListOptional and NodeSequence implementstatic java.lang.StringjjTokenName of the (generated by JavaCC) class representing a tokenstatic java.lang.Stringjtb_base_interfaces_dm_keyThe jtb base nodes interfaces list key in the data modelstatic java.lang.Stringjtb_base_nodes_dm_keyThe jtb base nodes classes list key in the data modelstatic java.lang.Stringjtb_constants_dm_keyThe jtb constants map key in the data modelstatic java.lang.Stringjtb_nbSubNodesTbc_dm_keyThe jtb number of sub-nodes to be created map key in the data modelstatic java.lang.Stringjtb_notTbcNodes_dm_keyThe jtb nodes which must not be created map key in the data modelstatic java.lang.Stringjtb_options_dm_keyThe jtb options map key in the data modelstatic java.lang.Stringjtb_prod_dm_keyThe jtb all nodes map key in the data modelstatic java.lang.Stringjtb_user_nodes_dm_keyThe jtb user nodes map key in the data modelstatic java.lang.StringJTB_VERSIONThe program versionstatic java.lang.StringjtbEgInvokedMethodeThe external generator class method to be invokedstatic java.lang.StringjtbHookEnterThe enter node scope hook method namestatic java.lang.StringjtbHookExitThe exit node scope hook method namestatic java.lang.StringjtbHookVarThe JTB node scope hook variable namestatic java.lang.StringjtbNodeVarThe JTB created node variablestatic java.lang.StringjtbRtOldThe JTB result type save variables prefixstatic java.lang.StringjtbRtPrefixThe JTB result type variables prefixstatic java.lang.StringjtbSigPfxThe JTB created control signature variable prefixstatic java.lang.StringjtbUserPfxThe JTB created user node variable prefixstatic java.lang.StringLSThe OS line separator stringstatic charLS0The OS line separator first characterstatic intLSLENThe OS line separator string lengthstatic java.lang.StringnodeChoiceName of the node class representing a grammar choice such as ( A | B )static java.lang.StringnodeConstantsName of the node class holding the constants reflecting the generated classes "static java.lang.StringnodeListName of the node class representing a list such as ( A )+static java.lang.StringnodeListOptionalName of the node class representing an optional list such as (A )*static java.lang.StringnodeOptionalName of the node class representing an optional such as [ A ] or ( A )?static java.lang.StringnodeSequenceName of the node class representing a nested sequence of nodesstatic java.lang.StringnodeTokenName of the (generated by JavaCC) class representing a token; same asjjTokenstatic intOK_RCThe "OK" return codestatic java.lang.StringPROG_NAMEThe java program namestatic java.util.Map<java.lang.String,java.lang.String>ptHMA map holding the primitive types (except void)static longSERIALVERSIONUIDThe serial version uidstatic java.lang.StringsigAnnNameThe signature annotation namestatic java.lang.StringsigAnnProcNameThe signature annotation processor namestatic java.lang.StringSUPPORTAn indication in case of JTB internal errorsstatic java.lang.StringtreeDumperNameThe TreeDumpervisitor class namestatic java.lang.StringtreeFormatterNameThe TreeFormatter visitor class name
-
-
-
Field Detail
-
DEBUG_CLASS
public static final boolean DEBUG_CLASS
Turns on / off printing class debug comments (useful to find where each line is produced)- See Also:
- Constant Field Values
-
DEBUG_COMMENT
public static final boolean DEBUG_COMMENT
Turns on / off printing field and sub comment debug comments- See Also:
- Constant Field Values
-
JTB_VERSION
public static final java.lang.String JTB_VERSION
The program version- See Also:
- Constant Field Values
-
SERIALVERSIONUID
public static final long SERIALVERSIONUID
The serial version uid
-
PROG_NAME
public static final java.lang.String PROG_NAME
The java program name- See Also:
- Constant Field Values
-
fileHeaderComment
public static final java.lang.String fileHeaderComment
File header comment- See Also:
- Constant Field Values
-
SUPPORT
public static final java.lang.String SUPPORT
An indication in case of JTB internal errors- See Also:
- Constant Field Values
-
INDENT_AMT
public static final int INDENT_AMT
The indentation default number of characters- See Also:
- Constant Field Values
-
LS
public static final java.lang.String LS
The OS line separator string
-
LS0
public static final char LS0
The OS line separator first character
-
LSLEN
public static final int LSLEN
The OS line separator string length
-
BRLEN
public static final int BRLEN
The javadoc break plus string length
-
BRLS
public static final java.lang.String BRLS
The javadoc break plus the OS line separator
-
BRLSLEN
public static final int BRLSLEN
The javadoc break plus the OS line separator string length
-
OK_RC
public static final int OK_RC
The "OK" return code- See Also:
- Constant Field Values
-
FILE_EXISTS_RC
public static final int FILE_EXISTS_RC
The "file exists" return code- See Also:
- Constant Field Values
-
iNode
public static final java.lang.String iNode
Name of the node interface that all tree nodes implement
-
iNodeList
public static final java.lang.String iNodeList
Name of the list interface that NodeList, NodeListOptional and NodeSequence implement
-
nodeChoice
public static final java.lang.String nodeChoice
Name of the node class representing a grammar choice such as ( A | B )
-
nodeList
public static final java.lang.String nodeList
Name of the node class representing a list such as ( A )+
-
nodeListOptional
public static final java.lang.String nodeListOptional
Name of the node class representing an optional list such as (A )*
-
nodeOptional
public static final java.lang.String nodeOptional
Name of the node class representing an optional such as [ A ] or ( A )?
-
nodeSequence
public static final java.lang.String nodeSequence
Name of the node class representing a nested sequence of nodes
-
nodeToken
public static final java.lang.String nodeToken
Name of the (generated by JavaCC) class representing a token; same asjjToken
-
jjToken
public static final java.lang.String jjToken
Name of the (generated by JavaCC) class representing a token
-
baseNodesInterfaces
public static final java.lang.String[] baseNodesInterfaces
The array of base nodes interfaces
-
baseNodesClasses
public static final java.lang.String[] baseNodesClasses
The list of base nodes classes
-
nodeConstants
public static final java.lang.String nodeConstants
Name of the node class holding the constants reflecting the generated classes "
-
treeFormatterName
public static final java.lang.String treeFormatterName
The TreeFormatter visitor class name- See Also:
- Constant Field Values
-
treeDumperName
public static final java.lang.String treeDumperName
The TreeDumpervisitor class name- See Also:
- Constant Field Values
-
genVisVar
public static final java.lang.String genVisVar
Accept methods visitor variable- See Also:
- Constant Field Values
-
genRetVar
public static final java.lang.String genRetVar
Visitor methods return variable- See Also:
- Constant Field Values
-
genNodeVar
public static final java.lang.String genNodeVar
Visitor methods node argument (first argument) variable- See Also:
- Constant Field Values
-
genNodeVarDot
public static final java.lang.String genNodeVarDot
Visitor methods node argument (first argument) variable plus dot- See Also:
- Constant Field Values
-
genArguVar
public static final java.lang.String genArguVar
Visitor methods user argument (second and more arguments) variable- See Also:
- Constant Field Values
-
genDepthLevelVar
public static final java.lang.String genDepthLevelVar
Visitor methods depth level local variable- See Also:
- Constant Field Values
-
jtbHookVar
public static final java.lang.String jtbHookVar
The JTB node scope hook variable name- See Also:
- Constant Field Values
-
iEnterExitHook
public static final java.lang.String iEnterExitHook
The node scope hook interface name- See Also:
- Constant Field Values
-
emptyEnterExitHook
public static final java.lang.String emptyEnterExitHook
The node scope hook empty class name- See Also:
- Constant Field Values
-
jtbHookEnter
public static final java.lang.String jtbHookEnter
The enter node scope hook method name- See Also:
- Constant Field Values
-
jtbHookExit
public static final java.lang.String jtbHookExit
The exit node scope hook method name- See Also:
- Constant Field Values
-
jtbEgInvokedMethode
public static final java.lang.String jtbEgInvokedMethode
The external generator class method to be invoked- See Also:
- Constant Field Values
-
jtb_constants_dm_key
public static final java.lang.String jtb_constants_dm_key
The jtb constants map key in the data model- See Also:
- Constant Field Values
-
jtb_options_dm_key
public static final java.lang.String jtb_options_dm_key
The jtb options map key in the data model- See Also:
- Constant Field Values
-
jtb_base_interfaces_dm_key
public static final java.lang.String jtb_base_interfaces_dm_key
The jtb base nodes interfaces list key in the data model- See Also:
- Constant Field Values
-
jtb_base_nodes_dm_key
public static final java.lang.String jtb_base_nodes_dm_key
The jtb base nodes classes list key in the data model- See Also:
- Constant Field Values
-
jtb_user_nodes_dm_key
public static final java.lang.String jtb_user_nodes_dm_key
The jtb user nodes map key in the data model- See Also:
- Constant Field Values
-
jtb_notTbcNodes_dm_key
public static final java.lang.String jtb_notTbcNodes_dm_key
The jtb nodes which must not be created map key in the data model- See Also:
- Constant Field Values
-
jtb_prod_dm_key
public static final java.lang.String jtb_prod_dm_key
The jtb all nodes map key in the data model- See Also:
- Constant Field Values
-
jtb_nbSubNodesTbc_dm_key
public static final java.lang.String jtb_nbSubNodesTbc_dm_key
The jtb number of sub-nodes to be created map key in the data model- See Also:
- Constant Field Values
-
jtbRtPrefix
public static final java.lang.String jtbRtPrefix
The JTB result type variables prefix- See Also:
- Constant Field Values
-
jtbRtOld
public static final java.lang.String jtbRtOld
The JTB result type save variables prefix- See Also:
- Constant Field Values
-
jtbNodeVar
public static final java.lang.String jtbNodeVar
The JTB created node variable- See Also:
- Constant Field Values
-
jtbUserPfx
public static final java.lang.String jtbUserPfx
The JTB created user node variable prefix- See Also:
- Constant Field Values
-
jtbSigPfx
public static final java.lang.String jtbSigPfx
The JTB created control signature variable prefix- See Also:
- Constant Field Values
-
sigAnnName
public static final java.lang.String sigAnnName
The signature annotation name
-
sigAnnProcName
public static final java.lang.String sigAnnProcName
The signature annotation processor name
-
DEF_ND_PREFIX
public static final java.lang.String DEF_ND_PREFIX
Default nodes prefix- See Also:
- Constant Field Values
-
DEF_ND_SUFFIX
public static final java.lang.String DEF_ND_SUFFIX
Default nodes suffix- See Also:
- Constant Field Values
-
DEF_ND_PKG_NAME
public static final java.lang.String DEF_ND_PKG_NAME
Default nodes package name- See Also:
- Constant Field Values
-
DEF_VIS_PKG_NAME
public static final java.lang.String DEF_VIS_PKG_NAME
Default visitors package name- See Also:
- Constant Field Values
-
DEF_SIG_PKG_NAME
public static final java.lang.String DEF_SIG_PKG_NAME
Default signature package name- See Also:
- Constant Field Values
-
DEF_HOOK_PKG_NAME
public static final java.lang.String DEF_HOOK_PKG_NAME
Default node scope hook package name- See Also:
- Constant Field Values
-
DEF_ND_DIR_NAME
public static final java.lang.String DEF_ND_DIR_NAME
Default nodes directory name- See Also:
- Constant Field Values
-
DEF_VIS_DIR_NAME
public static final java.lang.String DEF_VIS_DIR_NAME
Default visitors directory name- See Also:
- Constant Field Values
-
DEF_SIG_DIR_NAME
public static final java.lang.String DEF_SIG_DIR_NAME
Default signature directory name- See Also:
- Constant Field Values
-
DEF_HOOK_DIR_NAME
public static final java.lang.String DEF_HOOK_DIR_NAME
Default node scope hook directory name- See Also:
- Constant Field Values
-
DEF_OUT_FILE_NAME
public static final java.lang.String DEF_OUT_FILE_NAME
Default JavaCC generated grammar file name- See Also:
- Constant Field Values
-
ptHM
public static final java.util.Map<java.lang.String,java.lang.String> ptHM
A map holding the primitive types (except void)
-
-