public final class ReservedKeywordsClashChecker extends java.lang.Object implements TreeWalker
| Constructor and Description |
|---|
ReservedKeywordsClashChecker(java.lang.String languageName,
java.lang.String[] reservedKeywords)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginBitmask(BitmaskType bitmaskType)
Called when BitmaskType AST node begins.
|
void |
beginChoice(ChoiceType choiceType)
Called when ChoiceType AST node begins.
|
void |
beginConst(Constant constant)
Called when Constant AST node begins.
|
void |
beginEnumeration(EnumType enumType)
Called when EnumType AST node begins.
|
void |
beginImport(Import importNode)
Called when Import AST node begins.
|
void |
beginInstantiateType(InstantiateType instantiateType)
Called when InstantiateType AST node begins.
|
void |
beginPackage(Package pkg)
Called when Package AST node begins.
|
void |
beginPubsub(PubsubType pubsub)
Called when PubsubType AST node begins.
|
void |
beginRoot(Root root)
Called when Root AST node begins.
|
void |
beginRuleGroup(RuleGroup ruleGroup)
Called when RuleGroup AST node begins.
|
void |
beginService(ServiceType service)
Called when ServiceType AST node begins.
|
void |
beginSqlDatabase(SqlDatabaseType sqlDatabaseType)
Called when SqlDatabaseType AST node begins.
|
void |
beginSqlTable(SqlTableType sqlTableType)
Called when SqlTableType AST node begins.
|
void |
beginStructure(StructureType structureType)
Called when StructureType AST node begins.
|
void |
beginSubtype(Subtype subtype)
Called when Subtype AST node begins.
|
void |
beginUnion(UnionType unionType)
Called when UnionType AST node begins.
|
void |
endPackage(Package pkg)
Called when Package node ends.
|
void |
endRoot(Root root)
Called when Root AST node ends.
|
boolean |
traverseTemplateInstantiations()
Returns whether to traverse template instantiations or just call appropriate TreeWalker's methods
directly for templates.
|
public ReservedKeywordsClashChecker(java.lang.String languageName,
java.lang.String[] reservedKeywords)
languageName - Name of the language to be reported in error messages.reservedKeywords - Array of reserved keywords for the particular extension.public boolean traverseTemplateInstantiations()
TreeWalkertraverseTemplateInstantiations in interface TreeWalkerpublic void beginRoot(Root root) throws ZserioExtensionException
TreeWalkerbeginRoot in interface TreeWalkerroot - Current Root AST node.ZserioExtensionException - In case of any internal error of the extension.public void endRoot(Root root) throws ZserioExtensionException
TreeWalkerendRoot in interface TreeWalkerroot - Current Root AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginPackage(Package pkg) throws ZserioExtensionException
TreeWalkerbeginPackage in interface TreeWalkerpkg - Current Package AST node.ZserioExtensionException - In case of any internal error of the extension.public void endPackage(Package pkg) throws ZserioExtensionException
TreeWalkerendPackage in interface TreeWalkerpkg - Current Package AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginImport(Import importNode) throws ZserioExtensionException
TreeWalkerbeginImport in interface TreeWalkerimportNode - Current Import AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginConst(Constant constant) throws ZserioExtensionException
TreeWalkerbeginConst in interface TreeWalkerconstant - Current Constant AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginRuleGroup(RuleGroup ruleGroup) throws ZserioExtensionException
TreeWalkerbeginRuleGroup in interface TreeWalkerruleGroup - Current RuleGroup AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginSubtype(Subtype subtype) throws ZserioExtensionException
TreeWalkerbeginSubtype in interface TreeWalkersubtype - Current Subtype AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginStructure(StructureType structureType) throws ZserioExtensionException
TreeWalkerbeginStructure in interface TreeWalkerstructureType - Current StructureType AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginChoice(ChoiceType choiceType) throws ZserioExtensionException
TreeWalkerbeginChoice in interface TreeWalkerchoiceType - Current ChoiceType AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginUnion(UnionType unionType) throws ZserioExtensionException
TreeWalkerbeginUnion in interface TreeWalkerunionType - Current UnionType AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginEnumeration(EnumType enumType) throws ZserioExtensionException
TreeWalkerbeginEnumeration in interface TreeWalkerenumType - Current EnumType AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginBitmask(BitmaskType bitmaskType) throws ZserioExtensionException
TreeWalkerbeginBitmask in interface TreeWalkerbitmaskType - Current BitmaskType AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginSqlTable(SqlTableType sqlTableType) throws ZserioExtensionException
TreeWalkerbeginSqlTable in interface TreeWalkersqlTableType - Current SqlTableType AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginSqlDatabase(SqlDatabaseType sqlDatabaseType) throws ZserioExtensionException
TreeWalkerbeginSqlDatabase in interface TreeWalkersqlDatabaseType - Current SqlDatabaseType AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginService(ServiceType service) throws ZserioExtensionException
TreeWalkerbeginService in interface TreeWalkerservice - Current ServiceType AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginPubsub(PubsubType pubsub) throws ZserioExtensionException
TreeWalkerbeginPubsub in interface TreeWalkerpubsub - Current PubsubType AST node.ZserioExtensionException - In case of any internal error of the extension.public void beginInstantiateType(InstantiateType instantiateType) throws ZserioExtensionException
TreeWalkerbeginInstantiateType in interface TreeWalkerinstantiateType - Current InstantiateType node.ZserioExtensionException - In case of any internal error of the extension.Last updated 2024-10-29 12:56:13