Class AbstractMetaVisitor
java.lang.Object
org.synchronoss.cpo.core.exporter.AbstractMetaVisitor
- All Implemented Interfaces:
MetaVisitor
- Direct Known Subclasses:
CpoClassSourceGenerator,CpoInterfaceSourceGenerator
Base class for
MetaVisitor implementations that generate Java source (interfaces,
classes) from CpoClass meta model objects.
Subclasses drive code generation by visiting the meta model depth-first; this class supplies
the shared naming helpers (getter/setter/static-field names) and text buffers (attributeStatics, functionGroupStatics, gettersSetters) that the visit
methods accumulate generated source into.
- Author:
- Michael Bellomo
-
Method Summary
Modifier and TypeMethodDescriptionvoidvisit(CpoArgument cpoArgument) Visits an argument node in the meta model.voidvisit(CpoFunction cpoFunction) Visits a function node in the meta model.voidvisit(CpoFunctionGroup cpoFunctionGroup) Visits a function group node in the meta model.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.synchronoss.cpo.core.MetaVisitor
visit, visit
-
Method Details
-
visit
Description copied from interface:MetaVisitorVisits a function group node in the meta model.- Specified by:
visitin interfaceMetaVisitor- Parameters:
cpoFunctionGroup- the function group to be visited
-
visit
Description copied from interface:MetaVisitorVisits a function node in the meta model.- Specified by:
visitin interfaceMetaVisitor- Parameters:
cpoFunction- the function to be visited
-
visit
Description copied from interface:MetaVisitorVisits an argument node in the meta model.- Specified by:
visitin interfaceMetaVisitor- Parameters:
cpoArgument- the argument to be visited
-