public interface TypeField extends ExecutableProperty, Variable
| Modifier and Type | Method and Description |
|---|---|
<T> T |
fetchStaticValue()
Get static value
|
Expression |
getDefaultValue()
Get default value
|
String |
getName()
Get property name
|
boolean |
hasDefaultValue()
Check if the field has default value
|
boolean |
isNative()
Check if field comes from Java mappings.
|
boolean |
isStatic()
Check if field is static
|
void |
setDefaultValue(Expression defaultValue)
Set the default value of this field,
assigned when a new instance of the type is created
|
void |
setStaticValue(Supplier<?> staticValue)
Set static value
|
getJavaParameterTypes, getParameters, getParameterTypes, getReturnType, invokegetLocation, getModule, getSimpleName, getType, getVisibilitygetPointer, initialize, isInitializedisMutable, isNillablevoid setDefaultValue(Expression defaultValue)
defaultValue - the default value to usevoid setStaticValue(Supplier<?> staticValue)
staticValue - the static valueboolean isStatic()
boolean isNative()
boolean hasDefaultValue()
<T> T fetchStaticValue()
T - type of valueExpression getDefaultValue()
String getName()
PropertygetName in interface ExecutablePropertygetName in interface PropertygetName in interface VariableDataCopyright © 2020. All rights reserved.