Package org.jboss.forge.roaster.model
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>
Represents a
JavaType that may contain field definitions.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionGet theFieldwith the given name and return it, otherwise, return null.Get a list of allFields declared by thisFieldHolder, or return an empty list if noFields are declared.booleanReturn whether or not thisFieldHolderdeclares aFieldwith the given name.booleanReturn whether or not thisFieldHolderdeclares the givenFieldinstance.Methods inherited from interface org.jboss.forge.roaster.model.MemberHolder
getMembers
-
Method Details
-
hasField
Return whether or not thisFieldHolderdeclares aFieldwith the given name. -
hasField
Return whether or not thisFieldHolderdeclares the givenFieldinstance. -
getField
Get theFieldwith the given name and return it, otherwise, return null. -
getFields
Get a list of allFields declared by thisFieldHolder, or return an empty list if noFields are declared.
-