com.mchange.v2.codegen.bean
Class BeangenUtils
java.lang.Object
com.mchange.v2.codegen.bean.BeangenUtils
public final class BeangenUtils
- extends Object
Method Summary |
static String |
capitalize(String propName)
|
static boolean |
hasBoundProperties(Property[] props)
|
static boolean |
hasConstrainedProperties(Property[] props)
|
static void |
writeArgList(Property[] props,
boolean declare_types,
IndentedWriter iw)
|
static void |
writeExplicitDefaultConstructor(int ctor_modifiers,
ClassInfo info,
IndentedWriter iw)
|
static void |
writePropertyGetter(Property prop,
IndentedWriter iw)
|
static void |
writePropertyGetter(Property prop,
String defensiveCopyExpression,
IndentedWriter iw)
|
static void |
writePropertyMember(Property prop,
IndentedWriter iw)
Deprecated. use writePropertyVariable |
static void |
writePropertyMember(Property prop,
String defaultValueExpression,
IndentedWriter iw)
Deprecated. use writePropertyVariable |
static void |
writePropertySetter(Property prop,
IndentedWriter iw)
|
static void |
writePropertySetter(Property prop,
String setterDefensiveCopyExpression,
IndentedWriter iw)
|
static void |
writePropertySetterWithGetExpressionSetStatement(Property prop,
String getExpression,
String setStatement,
IndentedWriter iw)
|
static void |
writePropertyVariable(Property prop,
IndentedWriter iw)
|
static void |
writePropertyVariable(Property prop,
String defaultValueExpression,
IndentedWriter iw)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_COMPARATOR
public static final Comparator PROPERTY_COMPARATOR
capitalize
public static String capitalize(String propName)
writeExplicitDefaultConstructor
public static void writeExplicitDefaultConstructor(int ctor_modifiers,
ClassInfo info,
IndentedWriter iw)
throws IOException
- Throws:
IOException
writeArgList
public static void writeArgList(Property[] props,
boolean declare_types,
IndentedWriter iw)
throws IOException
- Throws:
IOException
writePropertyMember
public static void writePropertyMember(Property prop,
IndentedWriter iw)
throws IOException
- Deprecated. use writePropertyVariable
- Throws:
IOException
writePropertyVariable
public static void writePropertyVariable(Property prop,
IndentedWriter iw)
throws IOException
- Throws:
IOException
writePropertyMember
public static void writePropertyMember(Property prop,
String defaultValueExpression,
IndentedWriter iw)
throws IOException
- Deprecated. use writePropertyVariable
- Throws:
IOException
writePropertyVariable
public static void writePropertyVariable(Property prop,
String defaultValueExpression,
IndentedWriter iw)
throws IOException
- Throws:
IOException
writePropertyGetter
public static void writePropertyGetter(Property prop,
IndentedWriter iw)
throws IOException
- Throws:
IOException
writePropertyGetter
public static void writePropertyGetter(Property prop,
String defensiveCopyExpression,
IndentedWriter iw)
throws IOException
- Throws:
IOException
writePropertySetter
public static void writePropertySetter(Property prop,
IndentedWriter iw)
throws IOException
- Throws:
IOException
writePropertySetter
public static void writePropertySetter(Property prop,
String setterDefensiveCopyExpression,
IndentedWriter iw)
throws IOException
- Throws:
IOException
writePropertySetterWithGetExpressionSetStatement
public static void writePropertySetterWithGetExpressionSetStatement(Property prop,
String getExpression,
String setStatement,
IndentedWriter iw)
throws IOException
- Throws:
IOException
hasBoundProperties
public static boolean hasBoundProperties(Property[] props)
hasConstrainedProperties
public static boolean hasConstrainedProperties(Property[] props)