Package ftbsc.lll.proxies
Class AbstractProxy
- java.lang.Object
-
- ftbsc.lll.proxies.AbstractProxy
-
- Direct Known Subclasses:
FieldProxy
,MethodProxy
,QualifiableProxy
public abstract class AbstractProxy extends java.lang.Object
Abstract proxy class, implementing common aspects.- Since:
- 0.3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractProxy.Builder<T extends AbstractProxy>
A Builder for the generic proxy.
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
descriptor
The descriptor for this element.int
modifiers
The modifiers of the member, as a packed intjava.lang.String
name
The name of the corresponding element.QualifiableProxy
parent
The fully qualified name (i.e.ProxyType
proxyType
Which type of proxy this is.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractProxy(java.lang.String name, java.lang.String descriptor, int modifiers, QualifiableProxy parent, ProxyType proxyType)
The private constructor, should be called by all classes extending this in theirs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Indicates whether the given object is a proxy for the same element as this.
-
-
-
Field Detail
-
proxyType
public final ProxyType proxyType
Which type of proxy this is.
-
name
public final java.lang.String name
The name of the corresponding element.
-
descriptor
public final java.lang.String descriptor
The descriptor for this element.
-
parent
public final QualifiableProxy parent
The fully qualified name (i.e. java.lang.String) of the parent class.
-
modifiers
public final int modifiers
The modifiers of the member, as a packed int- See Also:
Modifier
-
-
Constructor Detail
-
AbstractProxy
protected AbstractProxy(java.lang.String name, java.lang.String descriptor, int modifiers, QualifiableProxy parent, ProxyType proxyType)
The private constructor, should be called by all classes extending this in theirs.- Parameters:
name
- the name of the elementdescriptor
- the descriptor for the elementmodifiers
- the modifiers, as a packed intparent
- the FQN of the parent classproxyType
- theProxyType
being represented here
-
-