public interface Fields
Modifier and Type | Method and Description |
---|---|
static Fields |
byDescription(Field field)
specifies a field by sample field object
|
static Fields |
byDescription(String className,
String fieldName,
String fieldDescriptor)
specifies a field by description
|
static Fields |
byName(String name)
specifies a set of fields by name
|
boolean |
matches(Field field)
defines matching with runtime (reflection) fields.
|
boolean |
matches(String className,
String fieldName,
String fieldDescriptor)
defines matching with compile time field specifications.
|
boolean matches(Field field)
field
- a field specified via reflectionboolean matches(String className, String fieldName, String fieldDescriptor)
className
- the internal name of the class (e.g. java/lang/String for java.lang.String)fieldName
- the name of the field (e.g chars)fieldDescriptor
- the type descriptor of the field (e.g. [C; for char[])static Fields byName(String name)
name
- the name of the field (it may be qualified with the declaring class, but signature spec is not accepted)static Fields byDescription(String className, String fieldName, String fieldDescriptor)
className
- the internal name of the class (e.g. java/lang/String for java.lang.String)fieldName
- the name of the field (e.g chars)fieldDescriptor
- the type descriptor of the field (e.g. [C; for char[])Copyright © 2020. All rights reserved.