Package org.jboss.forge.roaster.model
Interface PropertyHolder<O extends JavaType<O>>
- Type Parameters:
O- owningJavaTypetype
- All Superinterfaces:
FieldHolder<O>,InterfaceCapable,MemberHolder<O>,MethodHolder<O>
- All Known Subinterfaces:
JavaClass<O>,JavaClassSource,JavaEnum<O>,JavaEnumSource,JavaInterface<O>,JavaInterfaceSource,PropertyHolderSource<O>
public interface PropertyHolder<O extends JavaType<O>>
extends MethodHolder<O>, FieldHolder<O>, InterfaceCapable
Represents a
JavaType that may contain property definitions.-
Method Summary
Modifier and TypeMethodDescriptionGet a list of allPropertiesdeclared by thisPropertyHolder, or return an empty list if noPropertiesare declared.getProperties(Class<?> type) Get a list of allPropertiesdeclared by thisPropertyHolderwith the given type, or return an empty list if no matchingPropertiesare declared.getProperty(String name) Get thePropertywith the given name and return it, otherwise, return null.booleanhasProperty(String name) Return whether or not thisPropertyHolderdeclares aPropertywith the given name.booleanhasProperty(Property<O> property) Return whether or not thisPropertyHolderdeclares the givenPropertyinstance.Methods inherited from interface org.jboss.forge.roaster.model.FieldHolder
getField, getFields, hasField, hasFieldMethods inherited from interface org.jboss.forge.roaster.model.InterfaceCapable
getInterfaces, hasInterface, hasInterface, hasInterfaceMethods inherited from interface org.jboss.forge.roaster.model.MemberHolder
getMembersMethods inherited from interface org.jboss.forge.roaster.model.MethodHolder
getMethod, getMethod, getMethod, getMethods, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature
-
Method Details
-
hasProperty
Return whether or not thisPropertyHolderdeclares aPropertywith the given name. -
hasProperty
Return whether or not thisPropertyHolderdeclares the givenPropertyinstance. -
getProperty
Get thePropertywith the given name and return it, otherwise, return null. -
getProperties
Get a list of allPropertiesdeclared by thisPropertyHolderwith the given type, or return an empty list if no matchingPropertiesare declared. -
getProperties
Get a list of allPropertiesdeclared by thisPropertyHolder, or return an empty list if noPropertiesare declared.
-