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 aJavaTypethat may contain property definitions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<? extends Property<O>>getProperties()Get a list of allPropertiesdeclared by thisPropertyHolder, or return an empty list if noPropertiesare declared.java.util.List<? extends Property<O>>getProperties(java.lang.Class<?> type)Get a list of allPropertiesdeclared by thisPropertyHolderwith the given type, or return an empty list if no matchingPropertiesare declared.Property<O>getProperty(java.lang.String name)Get thePropertywith the given name and return it, otherwise, return null.booleanhasProperty(java.lang.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, hasField
-
Methods inherited from interface org.jboss.forge.roaster.model.InterfaceCapable
getInterfaces, hasInterface, hasInterface, hasInterface
-
Methods inherited from interface org.jboss.forge.roaster.model.MemberHolder
getMembers
-
Methods inherited from interface org.jboss.forge.roaster.model.MethodHolder
getMethod, getMethod, getMethod, getMethods, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature
-
-
-
-
Method Detail
-
hasProperty
boolean hasProperty(java.lang.String name)
Return whether or not thisPropertyHolderdeclares aPropertywith the given name.
-
hasProperty
boolean hasProperty(Property<O> property)
Return whether or not thisPropertyHolderdeclares the givenPropertyinstance.
-
getProperty
Property<O> getProperty(java.lang.String name)
Get thePropertywith the given name and return it, otherwise, return null.
-
getProperties
java.util.List<? extends Property<O>> getProperties(java.lang.Class<?> type)
Get a list of allPropertiesdeclared by thisPropertyHolderwith the given type, or return an empty list if no matchingPropertiesare declared.
-
getProperties
java.util.List<? extends Property<O>> getProperties()
Get a list of allPropertiesdeclared by thisPropertyHolder, or return an empty list if noPropertiesare declared.
-
-