Class ImmutableFieldReference

All Implemented Interfaces:
Comparable<FieldReference>, FieldReference, Reference, ImmutableReference

public class ImmutableFieldReference extends BaseFieldReference implements ImmutableReference
  • Field Details

    • definingClass

      @Nonnull protected final String definingClass
    • name

      @Nonnull protected final String name
    • type

      @Nonnull protected final String type
  • Constructor Details

    • ImmutableFieldReference

      public ImmutableFieldReference(@Nonnull String definingClass, @Nonnull String name, @Nonnull String type)
  • Method Details

    • of

      @Nonnull public static ImmutableFieldReference of(@Nonnull FieldReference fieldReference)
    • getDefiningClass

      @Nonnull public String getDefiningClass()
      Description copied from interface: FieldReference
      Gets the type of the class that defines the referenced field.
      Specified by:
      getDefiningClass in interface FieldReference
      Returns:
      The type of the class that defines the referenced field
    • getName

      @Nonnull public String getName()
      Description copied from interface: FieldReference
      Gets the name of the referenced field.
      Specified by:
      getName in interface FieldReference
      Returns:
      The name of the referenced field
    • getType

      @Nonnull public String getType()
      Description copied from interface: FieldReference
      Gets the type of the referenced field.
      Specified by:
      getType in interface FieldReference
      Returns:
      The type of the referenced field