Class FieldProxy

java.lang.Object
ftbsc.lll.proxies.AbstractProxy
ftbsc.lll.proxies.impl.FieldProxy

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

    • FieldProxy

      protected FieldProxy(String name, 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(Field f)
      A public constructor, builds a proxy from a Field obtained from reflection.
      Parameters:
      f - the Field object corresponding to this.
  • Method Details

    • builder

      public static FieldProxy.Builder builder(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(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