B - model entry typeR - field typepublic class RuntimeField<B,R> extends java.lang.Object implements DslField<R>, FieldInfo, java.util.function.Function<B,R>, java.util.function.BiConsumer<B,R>
| Constructor and Description |
|---|
RuntimeField(java.util.List<PathMethod<java.lang.Object,java.lang.Object>> chain,
PathMethod<java.lang.Object,R> lastLink,
FieldId id,
java.lang.String readable,
FieldId[] siblings,
java.lang.Class<R> type,
java.lang.Class<?>[] genericTypes,
boolean isTransient) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(B b,
R r) |
R |
apply(B b) |
java.lang.Class<?>[] |
genericTypes()
Returns the
FieldId type parameters |
R |
get(B model) |
DefaultCondition<R> |
getDefaultFunction()
Returns a new default condition that will use this as a field.
|
Metadata |
getMetadata() |
FieldId |
id()
Returns the referenced
FieldId |
boolean |
isCodeLookup()
Field metadata for
CodeLookup. |
boolean |
isCodeValuable()
Field metadata for
CodeValuable. |
boolean |
isTransient()
Field metadata for transient.
|
java.lang.String |
readable()
Returns the human readable version of this object.
|
RuntimeField<B,R> |
register(java.util.List<RuntimeField<B,java.lang.Object>> registry) |
void |
set(B model,
R value) |
FieldId[] |
siblings()
Returns the other
FieldId mapped on the same property |
java.lang.Class<R> |
type()
Returns the
FieldId type |
public RuntimeField(java.util.List<PathMethod<java.lang.Object,java.lang.Object>> chain, PathMethod<java.lang.Object,R> lastLink, FieldId id, java.lang.String readable, FieldId[] siblings, java.lang.Class<R> type, java.lang.Class<?>[] genericTypes, boolean isTransient)
public java.lang.String readable()
Readablepublic Metadata getMetadata()
getMetadata in interface DslField<R>getMetadata in interface FieldInfopublic DefaultCondition<R> getDefaultFunction()
DslFieldgetDefaultFunction in interface DslField<R>public RuntimeField<B,R> register(java.util.List<RuntimeField<B,java.lang.Object>> registry)
public FieldId[] siblings()
FieldInfoFieldId mapped on the same propertypublic java.lang.Class<R> type()
FieldInfoFieldId typepublic java.lang.Class<?>[] genericTypes()
FieldInfoFieldId type parametersgenericTypes in interface FieldInfopublic boolean isCodeLookup()
FieldInfoCodeLookup. This information is used for serialization of Enum typesisCodeLookup in interface FieldInfoCodeLookup is assignable from the fieldpublic boolean isCodeValuable()
FieldInfoCodeValuable. This information is used for serialization of Enum typesisCodeValuable in interface FieldInfoCodeValuable is assignable from the fieldpublic boolean isTransient()
FieldInfoFieldTransient annotation.isTransient in interface FieldInfo