Package ftbsc.lll.proxies.impl
Class FieldProxy
- java.lang.Object
-
- ftbsc.lll.proxies.AbstractProxy
-
- ftbsc.lll.proxies.impl.FieldProxy
-
public class FieldProxy extends AbstractProxy
A container for information about class fields to be used in ASM patching.- Since:
- 0.3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldProxy.Builder
A builder object forFieldProxy
.
-
Field Summary
-
Fields inherited from class ftbsc.lll.proxies.AbstractProxy
descriptor, modifiers, name, parent, proxyType
-
-
Constructor Summary
Constructors Modifier Constructor Description FieldProxy(java.lang.reflect.Field f)
A public constructor, builds a proxy from aField
obtained from reflection.protected
FieldProxy(java.lang.String name, java.lang.String descriptor, int modifiers, QualifiableProxy parent)
Protected constructor, called only from the builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldProxy.Builder
builder(java.lang.String name)
Returns a new instance ofFieldProxy.Builder
.boolean
equals(java.lang.Object obj)
Indicates whether the given object is a proxy for the same element as this.
-
-
-
Constructor Detail
-
FieldProxy
protected FieldProxy(java.lang.String name, java.lang.String descriptor, int modifiers, QualifiableProxy parent)
Protected constructor, called only from the builder.- Parameters:
name
- the name of the fielddescriptor
- the descriptor of the fieldmodifiers
- the modifiers of the fieldparent
- theQualifiableProxy
for the parent
-
FieldProxy
public FieldProxy(java.lang.reflect.Field f)
A public constructor, builds a proxy from aField
obtained from reflection.- Parameters:
f
- theField
object corresponding to this.
-
-
Method Detail
-
builder
public static FieldProxy.Builder builder(java.lang.String name)
Returns a new instance ofFieldProxy.Builder
.- Parameters:
name
- the name of the field- Returns:
- the builder object for field proxies
-
equals
public boolean equals(java.lang.Object obj)
Indicates whether the given object is a proxy for the same element as this.- Overrides:
equals
in classAbstractProxy
- Parameters:
obj
- the object to perform- Returns:
- true if it's equal
-
-