public class FactoryMethod extends Method
Modifier and Type | Field and Description |
---|---|
private boolean |
primary
Tells if this factory method is the most complete one and this the one to use for data conversions etc.
|
declaringType, implementationInfo, javaDoc, modifiers, overriddenByMethod, overridesMethod, parameters, returnType, templateName, thrownTypes
annotations, clazz, declaredModifiers, name
MAX_RECURSIVE_LEVEL, NO_DETAILS_LEVEL
Constructor and Description |
---|
FactoryMethod(BasicClazz clazz,
Type declaringType,
String methodName,
Type returnType,
List<Parameter> parameters,
List<Type> thrownTypes,
String javaDoc,
boolean primary,
EnumSet<Modifier> declaredModifiers,
EnumSet<Modifier> modifiers,
List<Annotation> annotations,
ImplementationInfo implementationInfo,
TemplateKind templateKind) |
FactoryMethod(BasicClazz clazz,
Type declaringType,
String methodName,
Type returnType,
List<Parameter> parameters,
List<Type> thrownTypes,
String javaDoc,
boolean primary,
EnumSet<Modifier> declaredModifiers,
List<Annotation> annotations,
ImplementationInfo implementationInfo,
TemplateKind templateKind) |
Modifier and Type | Method and Description |
---|---|
boolean |
isFactoryMethod()
Checks if the method is a static factory method.
|
boolean |
isPrimary()
Checks if the method is the most complete creation method and thus the one to use for construction .
|
getDeclaringType, getImplementationInfo, getJavaDoc, getModifiers, getOverloadName, getOverloadName, getOverriddenByMethod, getOverridesMethod, getPackageName, getParameters, getQualifiedName, getReturnType, getTemplateName, getThrownTypes, isConstructor, isDeclared, isDelegating, isOverridden, isThisReturnType, print, setImplementationInfo, setOverriddenByMethod
getAnnotations, getClazz, getConfiguration, getDeclaredModifiers, getName
printExtraBottom, printExtraTop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isTransient
getGeneratedClazz, getVariablesPrefix, isInDefaultPackage
private final boolean primary
public FactoryMethod(BasicClazz clazz, Type declaringType, String methodName, Type returnType, List<Parameter> parameters, List<Type> thrownTypes, String javaDoc, boolean primary, EnumSet<Modifier> declaredModifiers, List<Annotation> annotations, ImplementationInfo implementationInfo, TemplateKind templateKind)
public FactoryMethod(BasicClazz clazz, Type declaringType, String methodName, Type returnType, List<Parameter> parameters, List<Type> thrownTypes, String javaDoc, boolean primary, EnumSet<Modifier> declaredModifiers, EnumSet<Modifier> modifiers, List<Annotation> annotations, ImplementationInfo implementationInfo, TemplateKind templateKind)
public boolean isFactoryMethod()
Method
isFactoryMethod
in class Method
Version 2.0.0 generated on 2014-11-22 at 09:45 - (C) 41concepts Aps. Refer to project homepage valjogen.41concepts.com for more information.