Package com.mchange.v2.codegen.bean
Class SimplePropertyBeanGenerator
java.lang.Object
com.mchange.v2.codegen.bean.SimplePropertyBeanGenerator
- All Implemented Interfaces:
PropertyBeanGenerator
- Direct Known Subclasses:
InnerBeanPropertyBeanGenerator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
protected void
void
protected void
protected String
getConstructorDefensiveCopyExpression
(Property prop, Class propType) protected String
getGetterDefensiveCopyExpression
(Property prop, Class propType) int
protected String
getSetterDefensiveCopyExpression
(Property prop, Class propType) boolean
boolean
isInner()
static void
void
protected void
void
setForceUnmodifiable
(boolean force_unmodifiable) void
setGeneratorName
(String generatorName) void
setInner
(boolean inner) void
setJavaVersion
(int java_version) protected void
protected void
protected void
protected void
protected void
protected void
writeGetterSetterPair
(Property prop, Class propType) protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
writePropertyGetter
(Property prop, Class propType) protected void
writePropertyMember
(Property prop) Deprecated.protected void
Deprecated.protected void
writePropertySetter
(Property prop, Class propType) protected void
protected void
-
Field Details
-
info
-
props
-
iw
-
generalImports
-
specificImports
-
interfaceNames
-
superclassType
-
interfaceTypes
-
propertyTypes
-
generatorExtensions
-
-
Constructor Details
-
SimplePropertyBeanGenerator
public SimplePropertyBeanGenerator()
-
-
Method Details
-
setInner
public void setInner(boolean inner) -
isInner
public boolean isInner() -
setJavaVersion
public void setJavaVersion(int java_version) - Parameters:
java_version
- a three digit number -- for example Java 1.3.1 is 131
-
getJavaVersion
public int getJavaVersion() -
setGeneratorName
-
getGeneratorName
-
setForceUnmodifiable
public void setForceUnmodifiable(boolean force_unmodifiable) -
isForceUnmodifiable
public boolean isForceUnmodifiable() -
addExtension
-
removeExtension
-
generate
- Specified by:
generate
in interfacePropertyBeanGenerator
- Throws:
IOException
-
resolveTypes
protected void resolveTypes() -
addInternalImports
protected void addInternalImports() -
addInternalInterfaces
protected void addInternalInterfaces() -
writeCoreBody
- Throws:
IOException
-
writeInternalUtilityFunctions
- Throws:
IOException
-
writeConstrainedPropertyEventSourceMethods
- Throws:
IOException
-
writeBoundPropertyEventSourceMethods
- Throws:
IOException
-
writeJavaBeansChangeSupport
- Throws:
IOException
-
writeOtherVariables
- Throws:
IOException
-
writeOtherFunctions
- Throws:
IOException
-
writeOtherClasses
- Throws:
IOException
-
writePropertyVariables
- Throws:
IOException
-
writePropertyVariable
- Throws:
IOException
-
writePropertyMembers
Deprecated.- Throws:
IOException
-
writePropertyMember
Deprecated.- Throws:
IOException
-
writeGetterSetterPairs
- Throws:
IOException
-
writeGetterSetterPair
- Throws:
IOException
-
writePropertyGetter
- Throws:
IOException
-
writePropertySetter
- Throws:
IOException
-
getGetterDefensiveCopyExpression
-
getSetterDefensiveCopyExpression
-
getConstructorDefensiveCopyExpression
-
writeHeader
- Throws:
IOException
-
writeBannerComments
- Throws:
IOException
-
generateClassJavaDocComment
- Throws:
IOException
-
writeImports
- Throws:
IOException
-
writeClassDeclaration
- Throws:
IOException
-
main
-