public class InitializedTypeDefinition extends TypeDefinition
| Modifier and Type | Class and Description |
|---|---|
static class |
InitializedTypeDefinition.Builder<T extends InitializedTypeDefinition.Builder<?>>
Builder to build
VariableDefinition. |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
collection
True if the variable is a collection, false otherwise
|
protected String |
defaultInit
The default initialization for a field, especially used for initializing collections.
|
protected String |
init1
init1 and init2 hold two distinct initialization values.
|
protected String |
init2 |
protected LinkedHashSet<String> |
initImports
The imports required for initializing this variable.
|
protected String |
noInit
Holds the value to be used when testing if a variable is not initialized.
|
accessModifiers, annotations, column, lineNumber, name, type, typeImports| Modifier | Constructor and Description |
|---|---|
|
InitializedTypeDefinition() |
protected |
InitializedTypeDefinition(InitializedTypeDefinition.Builder<?> builder) |
|
InitializedTypeDefinition(InitializedTypeDefinition var)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInitImports(LinkedHashSet<String> imports) |
void |
addInitImports(List<String> imports) |
String |
getDefaultInit() |
String |
getGetter() |
String |
getInit1() |
String |
getInit2() |
LinkedHashSet<String> |
getInitImports() |
String |
getNoInit() |
String |
getSetter() |
String |
getTypeWithoutParameters() |
boolean |
isCollection() |
void |
setCollection(boolean collection) |
void |
setDefaultInit(String defaultInit) |
void |
setInit1(String init1) |
void |
setInit2(String init2) |
void |
setInitImports(LinkedHashSet<String> imports) |
void |
setNoInit(String noInit) |
addTypeImport, addTypeImports, addTypeImports, compareTo, equals, getAccessModifiers, getAnnotations, getColumn, getLineNumber, getName, getNameAsString, getNonPrimitiveType, getType, getTypeImports, hashCode, isPrimitive, setAccessModifiers, setAnnotations, setColumn, setLineNumber, setName, setType, toStringprotected String defaultInit
protected String init1
protected String init2
protected String noInit
protected boolean collection
protected LinkedHashSet<String> initImports
public InitializedTypeDefinition()
public InitializedTypeDefinition(InitializedTypeDefinition var)
var - protected InitializedTypeDefinition(InitializedTypeDefinition.Builder<?> builder)
public boolean isCollection()
public void setCollection(boolean collection)
public String getDefaultInit()
public void setDefaultInit(String defaultInit)
public String getNoInit()
public void setNoInit(String noInit)
public String getInit1()
public void setInit1(String init1)
public String getInit2()
public void setInit2(String init2)
public String getGetter()
public String getSetter()
public String getTypeWithoutParameters()
public LinkedHashSet<String> getInitImports()
public void setInitImports(LinkedHashSet<String> imports)
public void addInitImports(LinkedHashSet<String> imports)
Copyright © 2019. All rights reserved.