public class FieldInitializationReport
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
fieldInstance |
private boolean |
wasInitialized |
private boolean |
wasInitializedUsingConstructorArgs |
| Constructor and Description |
|---|
FieldInitializationReport(java.lang.Object fieldInstance,
boolean wasInitialized,
boolean wasInitializedUsingConstructorArgs) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
fieldClass()
Returns the class of the actual instance in the field.
|
java.lang.Object |
fieldInstance()
Returns the actual field instance.
|
boolean |
fieldWasInitialized()
Indicate whether the field was created during the process or not.
|
boolean |
fieldWasInitializedUsingContructorArgs()
Indicate whether the field was created using constructor args.
|
private final java.lang.Object fieldInstance
private final boolean wasInitialized
private final boolean wasInitializedUsingConstructorArgs
public FieldInitializationReport(java.lang.Object fieldInstance,
boolean wasInitialized,
boolean wasInitializedUsingConstructorArgs)
public java.lang.Object fieldInstance()
public boolean fieldWasInitialized()
true if created, false if the field did already hold an instance.public boolean fieldWasInitializedUsingContructorArgs()
true if field was created using constructor parameters.public java.lang.Class<?> fieldClass()