Interface ClassDecorator

All Known Implementing Classes:
CollectionMethodsDecorator, ExtensionDecorator, ListImplementationDecorator, NameMatchDecoratorBase, SerializableDecorator

public interface ClassDecorator
Interface implemented by class construction decorators used during code generation.
Author:
Dennis M. Sosnoski
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    finish(ElementBase binding, IClassHolder holder)
    Method called after completing code generation for the target class.
    void
    Method called before starting code generation for the target class.
    void
    valueAdded(String basename, boolean collect, String type, FieldDeclaration field, MethodDeclaration getmeth, MethodDeclaration setmeth, String descript, IClassHolder holder)
    Method called after adding each data value to class.
  • Method Details

    • start

      void start(IClassHolder holder)
      Method called before starting code generation for the target class.
      Parameters:
      holder -
    • valueAdded

      void valueAdded(String basename, boolean collect, String type, FieldDeclaration field, MethodDeclaration getmeth, MethodDeclaration setmeth, String descript, IClassHolder holder)
      Method called after adding each data value to class.
      Parameters:
      basename - base name used for data value
      collect - repeated value flag
      type - value type (item value type, in the case of a repeated value)
      field - actual field
      getmeth - read access method (null if a flag value)
      setmeth - write access method (null if a flag value)
      descript - value description text
      holder -
    • finish

      void finish(ElementBase binding, IClassHolder holder)
      Method called after completing code generation for the target class.
      Parameters:
      binding - binding definition element for class, a <format> if the class is an enumeration, a <mapping> or <structure> if it's a normal class
      holder -