diff options
author | zaaarf <zaaarf@proton.me> | 2023-03-21 18:46:23 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-03-21 18:46:23 +0100 |
commit | 17a0b4d0172c0b3399fb5ed0ef1f89b41a1fc67f (patch) | |
tree | 3f76c814475a4bef2c8fd04d6e50e6eb03287dd4 /src/main/java/ftbsc/lll/proxies/AbstractProxy.java | |
parent | 7e0b4e58dd9cf0c3d2f1b120ce21fe986d417f82 (diff) |
chore: reorganize, add ProxyType enum
Diffstat (limited to 'src/main/java/ftbsc/lll/proxies/AbstractProxy.java')
-rw-r--r-- | src/main/java/ftbsc/lll/proxies/AbstractProxy.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main/java/ftbsc/lll/proxies/AbstractProxy.java b/src/main/java/ftbsc/lll/proxies/AbstractProxy.java index d60f3d5..054cef9 100644 --- a/src/main/java/ftbsc/lll/proxies/AbstractProxy.java +++ b/src/main/java/ftbsc/lll/proxies/AbstractProxy.java @@ -3,13 +3,17 @@ package ftbsc.lll.proxies; import org.objectweb.asm.Type; /** - * Abstract proxy class, implementing common aspects - * of {@link MethodProxy} and {@link FieldProxy}. + * Abstract proxy class, implementing common aspects. * @since 0.3.0 */ public abstract class AbstractProxy { /** + * Which type of proxy this is. + */ + public final ProxyType proxyType; + + /** * The name of the corresponding element. */ public final String name; @@ -37,12 +41,14 @@ public abstract class AbstractProxy { * @param descriptor the descriptor for the element * @param modifiers the modifiers, as a packed int * @param parent the FQN of the parent class + * @param proxyType the {@link ProxyType} being represented here */ - protected AbstractProxy(String name, String descriptor, int modifiers, QualifiableProxy parent) { + protected AbstractProxy(String name, String descriptor, int modifiers, QualifiableProxy parent, ProxyType proxyType) { this.name = name; this.descriptor = descriptor; this.modifiers = modifiers; this.parent = parent; + this.proxyType = proxyType; } /** |