public class FieldProxy extends AbstractProxy
Modifier and Type | Class and Description |
---|---|
static class |
FieldProxy.Builder
A builder object for
FieldProxy . |
descriptor, modifiers, name, parent, proxyType
Modifier | Constructor and Description |
---|---|
|
FieldProxy(java.lang.reflect.Field f)
A public constructor, builds a proxy from a
Field
obtained from reflection. |
protected |
FieldProxy(java.lang.String name,
java.lang.String descriptor,
int modifiers,
QualifiableProxy parent)
Protected constructor, called only from the builder.
|
Modifier and Type | Method and Description |
---|---|
static FieldProxy.Builder |
builder(java.lang.String name)
Returns a new instance of
FieldProxy.Builder . |
boolean |
equals(java.lang.Object obj)
Indicates whether the given object is a proxy for the same element as this.
|
protected FieldProxy(java.lang.String name, java.lang.String descriptor, int modifiers, QualifiableProxy parent)
name
- the name of the fielddescriptor
- the descriptor of the fieldmodifiers
- the modifiers of the fieldparent
- the QualifiableProxy
for the parentpublic FieldProxy(java.lang.reflect.Field f)
Field
obtained from reflection.f
- the Field
object corresponding to this.public static FieldProxy.Builder builder(java.lang.String name)
FieldProxy.Builder
.name
- the name of the fieldpublic boolean equals(java.lang.Object obj)
equals
in class AbstractProxy
obj
- the object to perform