Interface FieldHolder<O extends JavaType<O>>

All Superinterfaces:
MemberHolder<O>
All Known Subinterfaces:
EnumConstant.ReadBody<O>, EnumConstantSource.Body, FieldHolderSource<O>, JavaClass<O>, JavaClassSource, JavaEnum<O>, JavaEnumSource, JavaInterface<O>, JavaInterfaceSource, PropertyHolder<O>, PropertyHolderSource<O>

public interface FieldHolder<O extends JavaType<O>> extends MemberHolder<O>
Represents a JavaType that may contain field definitions.
Author:
Lincoln Baxter, III
  • Method Details

    • hasField

      boolean hasField(String name)
      Return whether or not this FieldHolder declares a Field with the given name.
    • hasField

      boolean hasField(Field<O> field)
      Return whether or not this FieldHolder declares the given Field instance.
    • getField

      Field<O> getField(String name)
      Get the Field with the given name and return it, otherwise, return null.
    • getFields

      List<? extends Field<O>> getFields()
      Get a list of all Fields declared by this FieldHolder, or return an empty list if no Fields are declared.