| java.lang.Object org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.BeanCodeGenerator
All known Subclasses: org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d.Texture2D, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.vecmath.Tuple4d, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.vecmath.Tuple2f, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.com.sun.j3d.utils.geometry.ColorCube, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.com.sun.j3d.utils.geometry.Sphere, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.vecmath.Tuple3d, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d.PositionPathInterpolator, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d.Shape3D, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.com.sun.j3d.utils.behaviors.mouse.MouseTranslate, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.com.sun.j3d.demos.j3dedit.scenegrapheditor.nodes.LoaderGroup, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.com.sun.j3d.utils.behaviors.mouse.MouseRotate, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.vecmath.Tuple2d, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.vecmath.Matrix4d, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.vecmath.Tuple3f, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d.Transform3D, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.com.sun.j3d.utils.geometry.Cone, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d.GeometryArray, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d.MediaContainer, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d.RotationInterpolator, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.com.sun.j3d.utils.geometry.Box, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d.TextureAttributes, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.com.sun.j3d.utils.geometry.Cylinder, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.vecmath.Tuple4f, org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.ArrayGenerator,
BeanCodeGenerator | public class BeanCodeGenerator (Code) | | Generates customization code for fiven bean
author: Jan Becicka version: 0.1 |
constructionCode | protected String constructionCode(Code) | | holds construction code String
|
customizers | protected ArrayList customizers(Code) | | list of customizers to call
|
declarationCode | protected String declarationCode(Code) | | holds declaration code String
|
defaultInstance | protected Object defaultInstance(Code) | | default instance of the bean
|
defaultInstancePool | protected static HashMap defaultInstancePool(Code) | | only one default instance for all beans
|
getters | protected ArrayList getters(Code) | | list of all get* methods of this bean
|
needToProcessBeans | protected ArrayList needToProcessBeans(Code) | | Holds value of property needToProcessBeans.
|
setters | protected ArrayList setters(Code) | | list of all set* methods of this bean
|
BeanCodeGenerator | public BeanCodeGenerator(Object bean, NamePool naming)(Code) | | Creates new Generator
Parameters: bean - bean to creat code Parameters: naming - for creating names |
createAdders | protected void createAdders()(Code) | | creates addChild(..)
|
createConstructionCode | protected void createConstructionCode()(Code) | | Override this method, if you want to create parametric constructor constr
|
createCustomizationCode | protected void createCustomizationCode()(Code) | | creates setters e.g. t.setTransform(..);
|
createDeclarationCode | protected void createDeclarationCode()(Code) | | Override this method, if you want to create your own declaration
|
createDefaultInstanceOfBean | protected Object createDefaultInstanceOfBean()(Code) | | Override this method, if you want to have different default instance (e.g. YourNean(10))
instance of bean |
createIdentifier | final protected String createIdentifier(Object o)(Code) | | creates or returns identifier od given object
Parameters: o - bean name of identifier |
filterMethod | protected boolean filterMethod(Method m)(Code) | | Parameters: m - |
getConstructionCode | final public String getConstructionCode()(Code) | | returns cunstruction string
Construction String |
getCustomizationCode | final public String getCustomizationCode()(Code) | | returns customization code
Customization String |
getDeclarationCode | final public String getDeclarationCode()(Code) | | returns declaration string
returns declaration string |
getFieldName | final public String getFieldName()(Code) | | returns name of field
FieldName |
getNeedToProcessBeans | final public ArrayList getNeedToProcessBeans()(Code) | | Getter for property needToProcessBeans.
Value of property needToProcessBeans. |
handleCapability | protected void handleCapability()(Code) | | |
handleSpecialGetter | protected void handleSpecialGetter(Method g)(Code) | | use this method, if you want handle some strange getter
by default only getCapability/setCapability is handled
Parameters: g - |
init | protected void init()(Code) | | |
|
|