Package eu.bandm.tools.tdom
Class ContainerTemplate
java.lang.Object
eu.bandm.tools.tdom.Template
eu.bandm.tools.tdom.NodeTemplate
eu.bandm.tools.tdom.ContainerTemplate
- Direct Known Subclasses:
AltTemplate
,ChoiceTemplate
,ElementTemplate
,SequenceTemplate
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
Analysis special for API DOC generation. -
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected List<ContainerTemplate>
protected GeneratedMethod
protected GeneratedConstructor
protected GeneratedConstructor
protected GeneratedMethod
protected GeneratedMethod
protected final ElementTemplate
protected GeneratedMethod
protected String
protected int[]
protected final ContainerTemplate
protected GeneratedMethod
protected GeneratedConstructor
protected GeneratedConstructor
protected GeneratedMethod
Fields inherited from class eu.bandm.tools.tdom.NodeTemplate
actionMethod, decodeClosure, getDecodeClosure, getParseClosure, nodeClass, packageTemplate, parseClosure, parseSAX, parseSAXArguments, parseSAXAttributes, semiparseArguments, semiparseStatements, usingSemiparser
-
Constructor Summary
ModifierConstructorDescriptionprotected
ContainerTemplate
(ContainerTemplate parentContainer) (package private)
ContainerTemplate
(PackageTemplate packageTemplate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttrDescendStatement
(String methodName) void
addChild
(ContainerTemplate child) void
addDecodeArgument
(Format decodeArgument) (package private) void
addDescendStatement
(Format template) (package private) void
addDescendStatement
(Format template, boolean priority) void
addVisitContentStatement
(String fieldName, String singularName, int modifier) protected abstract DTD.ContentModel
protected void
finish()
protected void
protected GeneratedMethod
void
protected GeneratedMethod
protected GeneratedMethod
protected GeneratedMethod
protected GeneratedMethod
protected GeneratedMethod
ATTENTION the set method serves as a prototype and the sequence of its parameters is copied to several other methods (for structured contents, defined by DTD.CP).protected GeneratedConstructor
The "typed constructor" has the same signature as theset(...)
method, namely what corresponds correctly to the content model (notwithstanding null-checks and array length.)protected GeneratedConstructor
The "untyped constructor" requires a tdom object and is NORMALLY NOT visible to/callable by the programmer.protected GeneratedMethod
For TypedSequence, TypedChoice, TypedAlt.int
protected void
init()
protected ContentParserGenerator.Rule
protected abstract void
void
setNumbering
(DTD.CP cp) (package private) void
Methods inherited from class eu.bandm.tools.tdom.NodeTemplate
addGeneralizeParent, addLookaheadSAXStatement, addLookaheadSAXStatement, addLookaheadSemiparseStatement, addLookaheadSemiparseStatement, addParseSAXArgument, addParseSAXArgument, addParseSAXAttribute, addParseSAXStatement, addSemiparseArgument, addSemiparseArgument, addSemiparseStatement, generateActionMethod, generateDecodeClosure, generateHostMethod, generateMatchWithMethod, generateMatchWithMethod, generateParseClosure, generateParseSAXAction, generateSAXParser, generateSemiparseAction, generateSemiparser_includingAlt, generateSemiparser_nonAlt, getNodeClass, getVisiteeName, parseSAXArguments_asFormat
Methods inherited from class eu.bandm.tools.tdom.Template
error, error, expression, statement, statements, warning, warning
-
Field Details
-
elementTemplate
-
parentContainer
-
children
-
innerContainerPrefix
-
numbering
protected int[] numbering -
childIndex
protected int childIndex -
typedConstructor
-
untypedConstructor
-
disambigConstructor
-
disambigConstructorSafe
-
setMethod
-
visitMethod
-
encodeMethod
-
decodeMethod
-
dumpMethod
-
dumpElementsMethod
-
mandatoryDirector
-
optionalDirector
-
-
Constructor Details
-
ContainerTemplate
ContainerTemplate(PackageTemplate packageTemplate) -
ContainerTemplate
-
-
Method Details
-
contentModel
-
init
protected void init()- Overrides:
init
in classNodeTemplate
-
finish
protected void finish()- Overrides:
finish
in classNodeTemplate
-
generateDeclComment
protected void generateDeclComment() -
generateVisitMethod
For TypedSequence, TypedChoice, TypedAlt. -
generateDumpMethod
-
generateDumpElementsMethod
-
addAttrDescendStatement
-
addDescendStatement
-
addDescendStatement
- Overrides:
addDescendStatement
in classNodeTemplate
-
setNumbering
-
getNumber
public int getNumber() -
generateTypedConstructor
The "typed constructor" has the same signature as theset(...)
method, namely what corresponds correctly to the content model (notwithstanding null-checks and array length.) -
generateSetMethod
ATTENTION the set method serves as a prototype and the sequence of its parameters is copied to several other methods (for structured contents, defined by DTD.CP). FIXME not yet correctly handled for mixed contents !?!? -
generateUntypedConstructor
The "untyped constructor" requires a tdom object and is NORMALLY NOT visible to/callable by the programmer. -
addVisitContentStatement
-
generateParseMethod
-
generateEncodeMethod
-
generateDecodeMethod
-
addDecodeArgument
-
generateDecodeStatement
public void generateDecodeStatement() -
addChild
-
internalSetDirectors
-
setDirectors
-
useSemiparser
void useSemiparser()- Overrides:
useSemiparser
in classNodeTemplate
-