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
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static classAnalysis special for API DOC generation. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected List<ContainerTemplate> protected GeneratedMethodprotected GeneratedConstructorprotected GeneratedConstructorprotected GeneratedMethodprotected GeneratedMethodprotected final ElementTemplateprotected GeneratedMethodprotected Stringprotected int[]protected final ContainerTemplateprotected GeneratedMethodprotected GeneratedConstructorprotected GeneratedConstructorprotected GeneratedMethodFields inherited from class eu.bandm.tools.tdom.NodeTemplate
actionMethod, decodeClosure, getDecodeClosure, getParseClosure, nodeClass, packageTemplate, parseClosure, parseSAX, parseSAXArguments, parseSAXAttributes, semiparseArguments, semiparseStatements, usingSemiparserFields inherited from class eu.bandm.tools.tdom.Template
formatClosure, msg -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContainerTemplate(ContainerTemplate parentContainer) (package private)ContainerTemplate(PackageTemplate packageTemplate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttrDescendStatement(String methodName) voidaddChild(ContainerTemplate child) voidaddDecodeArgument(Format decodeArgument) (package private) voidaddDescendStatement(Format template) (package private) voidaddDescendStatement(Format template, boolean priority) voidaddVisitContentStatement(String fieldName, String singularName, int modifier) protected abstract DTD.ContentModelprotected voidfinish()protected voidprotected GeneratedMethodvoidprotected GeneratedMethodprotected GeneratedMethodprotected GeneratedMethodprotected GeneratedMethodprotected GeneratedMethodATTENTION 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 GeneratedConstructorThe "typed constructor" has the same signature as theset(...)method, namely what corresponds correctly to the content model (notwithstanding null-checks and array length.)protected GeneratedConstructorThe "untyped constructor" requires a tdom object and is NORMALLY NOT visible to/callable by the programmer.protected GeneratedMethodFor TypedSequence, TypedChoice, TypedAlt.intprotected voidinit()protected ContentParserGenerator.Ruleprotected abstract voidvoidsetNumbering(DTD.CP cp) (package private) voidMethods 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_asFormatMethods 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:
initin classNodeTemplate
-
finish
protected void finish()- Overrides:
finishin classNodeTemplate
-
generateDeclComment
protected void generateDeclComment() -
generateVisitMethod
For TypedSequence, TypedChoice, TypedAlt. -
generateDumpMethod
-
generateDumpElementsMethod
-
addAttrDescendStatement
-
addDescendStatement
-
addDescendStatement
- Overrides:
addDescendStatementin 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:
useSemiparserin classNodeTemplate
-