| Modifier and Type | Method and Description |
|---|---|
FieldInfo |
MethodParameterInfo.asField() |
FieldInfo |
MethodInfo.asField() |
FieldInfo |
RecordComponentInfo.asField() |
FieldInfo |
TypeTarget.asField() |
FieldInfo |
AnnotationTarget.asField()
Casts and returns this target as a
FieldInfo if it is of kind FIELD |
FieldInfo |
FieldInfo.asField() |
FieldInfo |
ClassInfo.asField() |
static FieldInfo |
FieldInfo.create(ClassInfo clazz,
String name,
Type type,
short flags)
Construct a new mock Field instance.
|
FieldInfo |
RecordComponentInfo.field()
Returns the component field corresponding to this record component.
|
FieldInfo |
ClassInfo.field(String name)
Retrieves a field by the given name.
|
| Modifier and Type | Method and Description |
|---|---|
List<FieldInfo> |
ClassInfo.enumConstants()
Returns a list of enum constants declared by this enum class, represented as
FieldInfo. |
List<FieldInfo> |
ClassInfo.fields()
Returns a list of all available fields.
|
List<FieldInfo> |
ClassInfo.unsortedFields()
Returns a list of all fields declared in this class, in the declaration order.
|
| Modifier and Type | Method and Description |
|---|---|
static EquivalenceKey.FieldEquivalenceKey |
EquivalenceKey.of(FieldInfo field)
Returns an equivalence key for given field.
|
Copyright © 2018–2022. All rights reserved.