public class Member extends DefinitionBase implements TypedModel
Modifier and Type | Field and Description |
---|---|
private List<Property> |
properties |
private Type |
type |
annotations, clazz, declaredModifiers, name
MAX_RECURSIVE_LEVEL, NO_DETAILS_LEVEL
Constructor and Description |
---|
Member(BasicClazz clazz,
Type type,
String name,
EnumSet<Modifier> declaredModifiers,
List<Annotation> annotations) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyMethod(Property propertyMethod) |
Property |
getGetter() |
EnumSet<Modifier> |
getModifiers()
Get modifiers as they should be used generated code when defining something.
|
List<Member> |
getOtherMembersAfterThis() |
List<Member> |
getOtherMembersBeforeThis() |
String |
getPackageName()
The package that the output belongs to.
|
List<Property> |
getPropertyMethods() |
Type |
getType() |
boolean |
isEnsureNotNullEnabled() |
boolean |
isMutable() |
void |
print(IndentedPrintWriter writer,
int detailLevel)
Helper method for printing out the model nicely without getting into problems with its circular references.
|
getAnnotations, getClazz, getConfiguration, getDeclaredModifiers, getName
printExtraBottom, printExtraTop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClazz, getConfiguration, getGeneratedClazz, getVariablesPrefix, isInDefaultPackage
isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isTransient
public Member(BasicClazz clazz, Type type, String name, EnumSet<Modifier> declaredModifiers, List<Annotation> annotations)
public String getPackageName()
Model
getPackageName
in interface Model
public Type getType()
getType
in interface TypedModel
public EnumSet<Modifier> getModifiers()
Definition
getModifiers
in interface Definition
public Property getGetter()
public boolean isMutable()
public boolean isEnsureNotNullEnabled()
public void addPropertyMethod(Property propertyMethod)
public void print(IndentedPrintWriter writer, int detailLevel)
Model
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.