Package ftbsc.lll.proxies.impl
Class FieldProxy
java.lang.Object
ftbsc.lll.proxies.AbstractProxy
ftbsc.lll.proxies.impl.FieldProxy
A container for information about class fields to be used
in ASM patching.
- Since:
- 0.3.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class ftbsc.lll.proxies.AbstractProxy
descriptor, modifiers, name, parent, proxyType -
Constructor Summary
ConstructorsModifierConstructorDescriptionFieldProxy(Field f) A public constructor, builds a proxy from aFieldobtained from reflection.protectedFieldProxy(String name, String descriptor, int modifiers, QualifiableProxy parent) Protected constructor, called only from the builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldProxy.BuilderReturns a new instance ofFieldProxy.Builder.booleanIndicates whether the given object is a proxy for the same element as this.
-
Constructor Details
-
FieldProxy
Protected constructor, called only from the builder.- Parameters:
name- the name of the fielddescriptor- the descriptor of the fieldmodifiers- the modifiers of the fieldparent- theQualifiableProxyfor the parent
-
FieldProxy
A public constructor, builds a proxy from aFieldobtained from reflection.- Parameters:
f- theFieldobject corresponding to this.
-
-
Method Details
-
builder
Returns a new instance ofFieldProxy.Builder.- Parameters:
name- the name of the field- Returns:
- the builder object for field proxies
-
equals
Indicates whether the given object is a proxy for the same element as this.- Overrides:
equalsin classAbstractProxy- Parameters:
obj- the object to perform- Returns:
- true if it's equal
-