Interface PropertyHolderSource<O extends JavaSource<O>>
- Type Parameters:
O- owningJavaSourcetype
- All Superinterfaces:
FieldHolder<O>,FieldHolderSource<O>,InterfaceCapable,MemberHolder<O>,MemberHolderSource<O>,MethodHolder<O>,MethodHolderSource<O>,PropertyHolder<O>
- All Known Subinterfaces:
JavaClassSource,JavaEnumSource,JavaInterfaceSource
public interface PropertyHolderSource<O extends JavaSource<O>>
extends PropertyHolder<O>, MethodHolderSource<O>, FieldHolderSource<O>
Represents a
JavaSource that may contain PropertySource definitions.-
Method Summary
Modifier and TypeMethodDescriptionaddProperty(Class<?> type, String name) Add a newPropertydeclaration to thisPropertyHolderSourceinstance.addProperty(String type, String name) Add a newPropertydeclaration to thisPropertyHolderSourceinstance.addProperty(JavaType<?> type, String name) Add a newPropertydeclaration to thisPropertyHolderSourceinstance.Get 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.removeProperty(Property<O> property) Remove the givenPropertyfrom thisPropertyHolderSourceinstance, if it exists; otherwise, do nothing.Methods inherited from interface org.jboss.forge.roaster.model.FieldHolder
hasField, hasFieldMethods inherited from interface org.jboss.forge.roaster.model.source.FieldHolderSource
addField, addField, getField, getFields, removeFieldMethods inherited from interface org.jboss.forge.roaster.model.InterfaceCapable
getInterfaces, hasInterface, hasInterface, hasInterfaceMethods inherited from interface org.jboss.forge.roaster.model.source.MemberHolderSource
getMembersMethods inherited from interface org.jboss.forge.roaster.model.MethodHolder
hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignatureMethods inherited from interface org.jboss.forge.roaster.model.source.MethodHolderSource
addMethod, addMethod, addMethod, addMethod, getMethod, getMethod, getMethod, getMethods, removeMethodMethods inherited from interface org.jboss.forge.roaster.model.PropertyHolder
hasProperty, hasProperty
-
Method Details
-
addProperty
Add a newPropertydeclaration to thisPropertyHolderSourceinstance. -
addProperty
Add a newPropertydeclaration to thisPropertyHolderSourceinstance. -
addProperty
Add a newPropertydeclaration to thisPropertyHolderSourceinstance. -
removeProperty
Remove the givenPropertyfrom thisPropertyHolderSourceinstance, if it exists; otherwise, do nothing. -
getProperties
List<PropertySource<O>> getProperties()Description copied from interface:PropertyHolderGet a list of allPropertiesdeclared by thisPropertyHolder, or return an empty list if noPropertiesare declared.- Specified by:
getPropertiesin interfacePropertyHolder<O extends JavaSource<O>>
-
getProperties
Description copied from interface:PropertyHolderGet a list of allPropertiesdeclared by thisPropertyHolderwith the given type, or return an empty list if no matchingPropertiesare declared.- Specified by:
getPropertiesin interfacePropertyHolder<O extends JavaSource<O>>
-
getProperty
Description copied from interface:PropertyHolderGet thePropertywith the given name and return it, otherwise, return null.- Specified by:
getPropertyin interfacePropertyHolder<O extends JavaSource<O>>
-