Class AbstractMetaVisitor

java.lang.Object
org.synchronoss.cpo.core.exporter.AbstractMetaVisitor
All Implemented Interfaces:
MetaVisitor
Direct Known Subclasses:
CpoClassSourceGenerator, CpoInterfaceSourceGenerator

public abstract class AbstractMetaVisitor extends Object implements MetaVisitor
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 Details

    • visit

      public void visit(CpoFunctionGroup cpoFunctionGroup)
      Description copied from interface: MetaVisitor
      Visits a function group node in the meta model.
      Specified by:
      visit in interface MetaVisitor
      Parameters:
      cpoFunctionGroup - the function group to be visited
    • visit

      public void visit(CpoFunction cpoFunction)
      Description copied from interface: MetaVisitor
      Visits a function node in the meta model.
      Specified by:
      visit in interface MetaVisitor
      Parameters:
      cpoFunction - the function to be visited
    • visit

      public void visit(CpoArgument cpoArgument)
      Description copied from interface: MetaVisitor
      Visits an argument node in the meta model.
      Specified by:
      visit in interface MetaVisitor
      Parameters:
      cpoArgument - the argument to be visited