@Retention(value=CLASS)
@Target(value=FIELD)
public @interface Find
MethodProxy
or
FieldProxy
with the specified characteristics.Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
inner
For a
TypeProxy , this refers to the target itself rather than its parent. |
java.lang.String |
name
For a
FieldProxy , this is the name of the field to find. |
java.lang.Class<?> |
type
This overrules a field type.
|
java.lang.String[] |
typeInner
This is to be used in cases where private inner classes are used as parameters.
|
java.lang.Class<?> |
value |
public abstract java.lang.Class<?> value
Class
object containing the target, or the
Object
class if not specified (the annotation's parent
class is instead used).public abstract java.lang.String[] inner
TypeProxy
, this refers to the target itself rather than its parent.for details
public abstract java.lang.String name
FieldProxy
, this is the name of the field to find. If omitted,
it will fall back on the name of the annotated field.
For a MethodProxy
it indicates an attempt to match by name only, with
this name. This will issue a warning unless warnings are disabled. It will fail
and throw an exception if multiple methods with that name are found in the
relevant class. It is generally recommended that you use a Target
stub
for methods, as this can lead to unpredictable behaviour at runtime.
It will have no effect on a TypeProxy
.public abstract java.lang.Class<?> type
Class
representing the type.public abstract java.lang.String[] typeInner
type()
for details