Package eu.bandm.tools.tdom
Class AbstractElementTemplate
java.lang.Object
eu.bandm.tools.tdom.Template
eu.bandm.tools.tdom.NodeTemplate
eu.bandm.tools.tdom.AbstractElementTemplate
- All Implemented Interfaces:
ToplevelTemplate
Realizes either the root class for all model elements, or one of the
intermediate abstract classes.
DOCME MORE
-
Field Summary
Modifier and TypeFieldDescription(package private) DocumentTemplate
(package private) GeneratedClass
Fields inherited from class eu.bandm.tools.tdom.NodeTemplate
actionMethod, decodeClosure, getDecodeClosure, getParseClosure, nodeClass, packageTemplate, parseClosure, parseSAX, parseSAXArguments, parseSAXAttributes, semiparseArguments, semiparseStatements, usingSemiparser
-
Constructor Summary
ConstructorDescriptionAbstractElementTemplate
(PackageTemplate packageTemplate) AbstractElementTemplate
(PackageTemplate packageTemplate, @Opt String name, Set<String> children, boolean hasDoc, boolean extensible, MetaType superClass) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addVisitorTypecase
(ElementTemplate elementTemplate, ToplevelTemplate visiteeTemplate) protected void
finish()
protected GeneratedClass
(package private) void
protected void
protected void
protected void
getName()
protected void
init()
void
initializeDecodeTable
(int tag, MetaClass implClass) void
initializeParseTable
(String tagName, MetaClass implClass) boolean
matchChildren
(Set<String> children) boolean
matchChildrenPartial
(Set<String> children) boolean
restrictSafeFlags
(boolean java, boolean saxDom) Methods inherited from class eu.bandm.tools.tdom.NodeTemplate
addDescendStatement, addGeneralizeParent, addLookaheadSAXStatement, addLookaheadSAXStatement, addLookaheadSemiparseStatement, addLookaheadSemiparseStatement, addParseSAXArgument, addParseSAXArgument, addParseSAXAttribute, addParseSAXStatement, addSemiparseArgument, addSemiparseArgument, addSemiparseStatement, generateActionMethod, generateDecodeClosure, generateHostMethod, generateMatchWithMethod, generateParseClosure, generateSAXParser, generateSemiparser_includingAlt, generateSemiparser_nonAlt, getNodeClass, getVisiteeName, parseSAXArguments_asFormat, useSemiparser
Methods inherited from class eu.bandm.tools.tdom.Template
error, error, expression, statement, statements, warning, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.tools.tdom.ToplevelTemplate
propagateSafeAttributeFlags
-
Field Details
-
documentTemplate
DocumentTemplate documentTemplate -
unmixedContentClass
GeneratedClass unmixedContentClass
-
-
Constructor Details
-
Method Details
-
init
protected void init()- Overrides:
init
in classNodeTemplate
-
restrictSafeFlags
public boolean restrictSafeFlags(boolean java, boolean saxDom) - Specified by:
restrictSafeFlags
in interfaceToplevelTemplate
-
getCaller
- Specified by:
getCaller
in interfaceToplevelTemplate
-
finish
protected void finish()- Overrides:
finish
in classNodeTemplate
-
getToplevelClass
- Specified by:
getToplevelClass
in interfaceToplevelTemplate
-
getName
- Specified by:
getName
in interfaceToplevelTemplate
-
getChildren
-
matchChildren
-
matchChildrenPartial
-
getDocumentTemplate
- Specified by:
getDocumentTemplate
in interfaceToplevelTemplate
-
addVisitorTypecase
-
getUnmixedContentClass
-
initializeParseTable
-
initializeDecodeTable
-
generateParseSAXAction
protected void generateParseSAXAction()- Overrides:
generateParseSAXAction
in classNodeTemplate
-
generateSemiparseAction
protected void generateSemiparseAction()- Overrides:
generateSemiparseAction
in classNodeTemplate
-
generateMatchWithMethod
protected void generateMatchWithMethod()- Overrides:
generateMatchWithMethod
in classNodeTemplate
-
generateExtendedClass
-
generateGetDeepPCDataMethod
void generateGetDeepPCDataMethod()
-