|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
Creator | |
Getters | |
PCDGPFunc | The base class of Per Class Data-Generic Function generation. |
Setters | |
Typical | |
Updaters |
DemeterF per-class DGP classes.
The class PCDGPFunc can be extended to implement functionality for all
the classes in a given CD, generated on a per-class basis. This
is done with a DemeterF traversal over each TypeDef from the CD.
The structures involved are defined in the demfgen CD file:
edu/neu/ccs/demeterf/demfgen/demfgen.cd
The provided PCDGP functions are as follows:
The functions to be generated are specified as an argument to DemeterF with the option: --pcdgp: immediately followed by a list of PCDGPFunc class names separated by colons (":").
CD: pcdgp.cdSee individual source files for more details.MainC = <i> int <d> double.
Build With:Java: java demeterf pcdgp.cd any.beh ./ --pcdgp:Getters C#: java demeterfcs pcdgp.cd any.beh ./ --pcdgp:Getters
Generated Class Snipet (For Both):public class MainC{ protected final int i; protected final double d; /** Other ... Stuff * / /** Getter for field MainC.d * / public double getD(){ return d; } /** Getter for field MainC.i * / public int getI(){ return i; } }
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |