public final class PandaField extends AbstractExecutableProperty<TypeField> implements TypeField
| Modifier and Type | Class and Description |
|---|---|
static class |
PandaField.PandaFieldBuilder |
AbstractExecutableProperty.PandaParametrizedExecutableBuilder<E extends ExecutableProperty,T extends AbstractExecutableProperty.PandaParametrizedExecutableBuilder<E,?>>| Modifier | Constructor and Description |
|---|---|
protected |
PandaField(PandaField.PandaFieldBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
static PandaField.PandaFieldBuilder |
builder() |
Object |
fetchStaticValue()
Get static value
|
Expression |
getDefaultValue()
Get default value
|
String |
getName()
Get property name
|
int |
getPointer()
Get the index that points the variable in memory
|
boolean |
hasDefaultValue()
Check if the field has default value
|
PandaField |
initialize()
Mark variable as initialized
|
boolean |
isInitialized()
Check if the variable is initialized
|
boolean |
isMutable()
Check if variable is mutable
|
boolean |
isNative()
Check if refers to the native context
|
boolean |
isNillable()
Check if variable is nillable (accepts null values)
|
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
|
String |
toString() |
getParameters, getParameterTypes, getReturnType, getType, invokegetLocation, getSimpleName, getVisibilityclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetJavaParameterTypes, getParameters, getParameterTypes, getReturnType, invokegetLocation, getModule, getSimpleName, getType, getVisibilityprotected PandaField(PandaField.PandaFieldBuilder builder)
public PandaField initialize()
Variableinitialize in interface Variablepublic void setDefaultValue(Expression defaultValue)
TypeFieldsetDefaultValue in interface TypeFielddefaultValue - the default value to usepublic void setStaticValue(Supplier<?> staticValue)
TypeFieldsetStaticValue in interface TypeFieldstaticValue - the static valuepublic boolean isNillable()
VariableDataisNillable in interface VariableDatapublic boolean isMutable()
VariableDataisMutable in interface VariableDatapublic boolean isStatic()
TypeFieldpublic boolean isNative()
Propertypublic boolean isInitialized()
VariableisInitialized in interface Variablepublic boolean hasDefaultValue()
TypeFieldhasDefaultValue in interface TypeFieldpublic Object fetchStaticValue()
TypeFieldfetchStaticValue in interface TypeFieldpublic Expression getDefaultValue()
TypeFieldgetDefaultValue in interface TypeFieldpublic int getPointer()
VariablegetPointer in interface Variablepublic String getName()
PropertygetName in interface VariableDatagetName in interface ExecutablePropertygetName in interface PropertygetName in interface TypeFieldpublic String toString()
toString in class AbstractExecutableProperty<TypeField>public static PandaField.PandaFieldBuilder builder()
Copyright © 2020. All rights reserved.