Class AbstractProxy

java.lang.Object
ftbsc.lll.proxies.AbstractProxy
Direct Known Subclasses:
FieldProxy, MethodProxy, QualifiableProxy

public abstract class AbstractProxy extends Object
Abstract proxy class, implementing common aspects.
Since:
0.3.0
  • Field Details

    • proxyType

      public final ProxyType proxyType
      Which type of proxy this is.
    • name

      public final String name
      The name of the corresponding element.
    • descriptor

      public final 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:
  • Constructor Details

    • AbstractProxy

      protected AbstractProxy(String name, 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 element
      descriptor - the descriptor for the element
      modifiers - the modifiers, as a packed int
      parent - the FQN of the parent class
      proxyType - the ProxyType being represented here
  • Method Details

    • equals

      public boolean equals(Object obj)
      Indicates whether the given object is a proxy for the same element as this.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to perform
      Returns:
      true if it's equal