Top Fields Constructors Methods
com.mchange.v2.codegen.bean

public Class SimplePropertyBeanGenerator

extends Object
implements PropertyBeanGenerator
Class Inheritance
All Implemented Interfaces
com.mchange.v2.codegen.bean.PropertyBeanGenerator
Known Direct Subclasses
com.mchange.v2.codegen.bean.InnerBeanPropertyBeanGenerator
Imports
java.io.*, java.util.*, com.mchange.v2.log.*, java.lang.reflect.Modifier, com.mchange.v1.lang.ClassUtils, com.mchange.v2.codegen.CodegenUtils, .IndentedWriter

Field Summary

Modifier and TypeField and Description
private boolean
protected Set<E>
protected List<E>
private String
protected ClassInfo
private boolean
protected Set<E>
protected List<E>
protected IndentedWriter
iw

Deprecated as a consequence of IndentedWriter being deprecated.
private int
private static final MLogger
protected Class<T>[]
protected Property[]
protected Set<E>
protected Class<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
protected void
protected void
pack-priv boolean
pack-priv boolean
public synchronized void
protected void
protected String
public synchronized String
protected String
public synchronized int
protected String
public synchronized boolean
public synchronized boolean
public static void
main(String[] argv)

public synchronized void
protected void
public synchronized void
setForceUnmodifiable(boolean force_unmodifiable)

public synchronized void
setGeneratorName(String generatorName)

public synchronized void
setInner(boolean inner)

public synchronized void
setJavaVersion(int
a three digit number -- for example Java 1.3.1 is 131
java_version
)

protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
writePropertyGetter(Property prop, Class<T> propType)

protected void
writePropertyMember(Property prop)
Deprecated

protected void
writePropertyMembers()
Deprecated

protected void
writePropertySetter(Property prop, Class<T> propType)

protected void
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

force_unmodifiableback to summary
private boolean force_unmodifiable
generalImportsback to summary
protected Set<E> generalImports
generatorExtensionsback to summary
protected List<E> generatorExtensions
generatorNameback to summary
private String generatorName
infoback to summary
protected ClassInfo info
innerback to summary
private boolean inner
interfaceNamesback to summary
protected Set<E> interfaceNames
interfaceTypesback to summary
protected List<E> interfaceTypes
iwback to summary
protected IndentedWriter iw

Deprecated

as a consequence of IndentedWriter being deprecated. See corresponding docs for further information.

java_versionback to summary
private int java_version
loggerback to summary
private static final MLogger logger
propertyTypesback to summary
protected Class<T>[] propertyTypes
propsback to summary
protected Property[] props
specificImportsback to summary
protected Set<E> specificImports
superclassTypeback to summary
protected Class<T> superclassType

Constructor Detail

SimplePropertyBeanGeneratorback to summary
public SimplePropertyBeanGenerator()

Method Detail

addExtensionback to summary
public synchronized void addExtension(GeneratorExtension ext)
addInternalImportsback to summary
protected void addInternalImports()
addInternalInterfacesback to summary
protected void addInternalInterfaces()
boundPropertiesback to summary
pack-priv boolean boundProperties()
constrainedPropertiesback to summary
pack-priv boolean constrainedProperties()
generateback to summary
public synchronized void generate(ClassInfo info, Property[] props, Writer w) throws IOException

Implements com.mchange.v2.codegen.bean.PropertyBeanGenerator.generate.

generateClassJavaDocCommentback to summary
protected void generateClassJavaDocComment() throws IOException
getConstructorDefensiveCopyExpressionback to summary
protected String getConstructorDefensiveCopyExpression(Property prop, Class<T> propType)
getGeneratorNameback to summary
public synchronized String getGeneratorName()
getGetterDefensiveCopyExpressionback to summary
protected String getGetterDefensiveCopyExpression(Property prop, Class<T> propType)
getJavaVersionback to summary
public synchronized int getJavaVersion()
getSetterDefensiveCopyExpressionback to summary
protected String getSetterDefensiveCopyExpression(Property prop, Class<T> propType)
isForceUnmodifiableback to summary
public synchronized boolean isForceUnmodifiable()
isInnerback to summary
public synchronized boolean isInner()
mainback to summary
public static void main(String[] argv)
removeExtensionback to summary
public synchronized void removeExtension(GeneratorExtension ext)
resolveTypesback to summary
protected void resolveTypes()
setForceUnmodifiableback to summary
public synchronized void setForceUnmodifiable(boolean force_unmodifiable)
setGeneratorNameback to summary
public synchronized void setGeneratorName(String generatorName)
setInnerback to summary
public synchronized void setInner(boolean inner)
setJavaVersionback to summary
public synchronized void setJavaVersion(int java_version)
Parameters
java_version:int

a three digit number -- for example Java 1.3.1 is 131

writeBannerCommentsback to summary
protected void writeBannerComments() throws IOException
writeBoundPropertyEventSourceMethodsback to summary
protected void writeBoundPropertyEventSourceMethods() throws IOException
writeClassDeclarationback to summary
protected void writeClassDeclaration() throws IOException
writeConstrainedPropertyEventSourceMethodsback to summary
protected void writeConstrainedPropertyEventSourceMethods() throws IOException
writeCoreBodyback to summary
protected void writeCoreBody() throws IOException
writeGetterSetterPairback to summary
protected void writeGetterSetterPair(Property prop, Class<T> propType) throws IOException
writeGetterSetterPairsback to summary
protected void writeGetterSetterPairs() throws IOException
writeHeaderback to summary
protected void writeHeader() throws IOException
writeImportsback to summary
protected void writeImports() throws IOException
writeInternalUtilityFunctionsback to summary
protected void writeInternalUtilityFunctions() throws IOException
writeJavaBeansChangeSupportback to summary
protected void writeJavaBeansChangeSupport() throws IOException
writeOtherClassesback to summary
protected void writeOtherClasses() throws IOException
writeOtherFunctionsback to summary
protected void writeOtherFunctions() throws IOException
writeOtherVariablesback to summary
protected void writeOtherVariables() throws IOException
writePropertyGetterback to summary
protected void writePropertyGetter(Property prop, Class<T> propType) throws IOException
writePropertyMemberback to summary
protected void writePropertyMember(Property prop) throws IOException

Deprecated

writePropertyMembersback to summary
protected void writePropertyMembers() throws IOException

Deprecated

writePropertySetterback to summary
protected void writePropertySetter(Property prop, Class<T> propType) throws IOException
writePropertyVariableback to summary
protected void writePropertyVariable(Property prop) throws IOException
writePropertyVariablesback to summary
protected void writePropertyVariables() throws IOException