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

public Class ExplicitPropsConstructorGeneratorExtension

extends Object
implements GeneratorExtension
Class Inheritance
All Implemented Interfaces
com.mchange.v2.codegen.bean.GeneratorExtension
Imports
java.util.*, com.mchange.v2.log.*, java.lang.reflect.Modifier, java.io.IOException, com.mchange.v2.codegen.CodegenUtils, .IndentedWriter

Writes a constructor that takes an explicitly listed subset of a bean's properties for its arguments, and sets these properties initial values appropriately. Skips any specified names for properties that are not found in a bean being generated. Writes nothing if there are none of the property names are properties of the bean.

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv static final MLogger
pack-priv String[]
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Collection<E>
public Collection<E>
public Collection<E>
public void
generate(ClassInfo info, Class<T> superclassType, Property[] props, Class<T>[] propTypes, IndentedWriter iw)

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

Deprecated as a consequence of IndentedWriter being deprecated.

public String[]
public boolean
public void
setPropNames(String[] propNames)

public void
setsSkipsSilently(boolean skips_silently)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ctor_modifiersback to summary
pack-priv int ctor_modifiers
loggerback to summary
pack-priv static final MLogger logger
propNamesback to summary
pack-priv String[] propNames
skips_silentlyback to summary
pack-priv boolean skips_silently

Constructor Detail

ExplicitPropsConstructorGeneratorExtensionback to summary
public ExplicitPropsConstructorGeneratorExtension()
ExplicitPropsConstructorGeneratorExtensionback to summary
public ExplicitPropsConstructorGeneratorExtension(String[] propNames)

Method Detail

extraGeneralImportsback to summary
public Collection<E> extraGeneralImports()

Implements com.mchange.v2.codegen.bean.GeneratorExtension.extraGeneralImports.

extraInterfaceNamesback to summary
public Collection<E> extraInterfaceNames()

Implements com.mchange.v2.codegen.bean.GeneratorExtension.extraInterfaceNames.

extraSpecificImportsback to summary
public Collection<E> extraSpecificImports()

Implements com.mchange.v2.codegen.bean.GeneratorExtension.extraSpecificImports.

generateback to summary
public void generate(ClassInfo info, Class<T> superclassType, Property[] props, Class<T>[] propTypes, IndentedWriter iw) throws IOException

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

Deprecated

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

getPropNamesback to summary
public String[] getPropNames()
isSkipsSilentlyback to summary
public boolean isSkipsSilently()
setPropNamesback to summary
public void setPropNames(String[] propNames)
setsSkipsSilentlyback to summary
public void setsSkipsSilently(boolean skips_silently)