Class FieldProxy


  • public class FieldProxy
    extends AbstractProxy
    A container for information about class fields to be used in ASM patching.
    Since:
    0.3.0
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        FieldProxy​(java.lang.reflect.Field f)
      A public constructor, builds a proxy from a Field obtained from reflection.
      protected FieldProxy​(java.lang.String name, java.lang.String descriptor, int modifiers, QualifiableProxy parent)
      Protected constructor, called only from the builder.
    • Constructor Detail

      • FieldProxy

        protected FieldProxy​(java.lang.String name,
                             java.lang.String descriptor,
                             int modifiers,
                             QualifiableProxy parent)
        Protected constructor, called only from the builder.
        Parameters:
        name - the name of the field
        descriptor - the descriptor of the field
        modifiers - the modifiers of the field
        parent - the QualifiableProxy for the parent
      • FieldProxy

        public FieldProxy​(java.lang.reflect.Field f)
        A public constructor, builds a proxy from a Field obtained from reflection.
        Parameters:
        f - the Field object corresponding to this.
    • Method Detail

      • builder

        public static FieldProxy.Builder builder​(java.lang.String name)
        Returns a new instance of FieldProxy.Builder.
        Parameters:
        name - the name of the field
        Returns:
        the builder object for field proxies
      • 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 AbstractProxy
        Parameters:
        obj - the object to perform
        Returns:
        true if it's equal