private class GenZbnfJavaData.WrClassZbnf
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) GenJavaOutClass.WrClassJava |
wrClassJava |
Constructor and Description |
---|
WrClassZbnf() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
evaluateChildSyntax(java.util.List<ZbnfSyntaxPrescript> childScript,
GenZbnfJavaData.SubClassZbnf classData,
boolean bList,
int level)
An syntax item can have an inner syntax tree.
|
private void |
evaluateSubCmpnCall(ZbnfSyntaxPrescript item,
GenZbnfJavaData.SubClassZbnf classData,
boolean bList,
int level)
This routine is called for
<cmpnSyntax... |
private GenZbnfJavaData.SubClassZbnf |
getRegisterSubclass(java.lang.String name,
ZbnfSyntaxPrescript syntaxItem) |
private void |
registerCmpn(ZbnfSyntaxPrescript cmpn)
Registers a need Component.
|
protected void |
wrVariable(GenZbnfJavaData.SubClassZbnf classData,
java.lang.String typeNs,
java.lang.String typeRef,
java.lang.String typeObj,
java.lang.String semantic,
ZbnfSyntaxPrescript syntaxitem,
boolean bListVar,
boolean bCmpn,
java.util.List<java.lang.String> obligateAttribs) |
final GenJavaOutClass.WrClassJava wrClassJava
void evaluateChildSyntax(java.util.List<ZbnfSyntaxPrescript> childScript, GenZbnfJavaData.SubClassZbnf classData, boolean bList, int level) throws java.lang.Exception
childScript
- bList
- level
- java.io.IOException
java.lang.Exception
private GenZbnfJavaData.SubClassZbnf getRegisterSubclass(java.lang.String name, ZbnfSyntaxPrescript syntaxItem)
private void evaluateSubCmpnCall(ZbnfSyntaxPrescript item, GenZbnfJavaData.SubClassZbnf classData, boolean bList, int level) throws java.lang.Exception
<cmpnSyntax...>
.
GenZbnfJavaData.idxSubSyntax
. It should be found, elsewhere it is an IllegalArgumentException
<component>
and item[@link #sSemantic} contains "@"-
component::=<?semantic>
is given.
component::=<?>
is given. See next List.
<component?semantic>
is given.
<component?>
is given.
#wrVariable(String, String, boolean, boolean)
and the component's name is #registerCmpn(String)
to create a class for it later if not created already.
item
- The calling item of the componentbList
- true if the syntax is part of a repetitionlevel
- java.io.IOException
java.lang.Exception
protected void wrVariable(GenZbnfJavaData.SubClassZbnf classData, java.lang.String typeNs, java.lang.String typeRef, java.lang.String typeObj, java.lang.String semantic, ZbnfSyntaxPrescript syntaxitem, boolean bListVar, boolean bCmpn, java.util.List<java.lang.String> obligateAttribs) throws java.lang.Exception
java.lang.Exception
private void registerCmpn(ZbnfSyntaxPrescript cmpn)
cmpn
- The syntax definition head item of the components definition.
It is either a name::=... or also a {<?*name>...}