Class 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
    • 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 int
      java.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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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 Detail

      • 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 class java.lang.Object
        Parameters:
        obj - the object to perform
        Returns:
        true if it's equal