O - owning JavaSource typepublic interface PropertyHolderSource<O extends JavaSource<O>> extends PropertyHolder<O>, MethodHolderSource<O>, FieldHolderSource<O>
JavaSource that may contain PropertySource definitions.| Modifier and Type | Method and Description |
|---|---|
PropertySource<O> |
addProperty(Class<?> type,
String name)
Add a new
Property declaration to this O instance. |
PropertySource<O> |
addProperty(JavaType<?> type,
String name)
Add a new
Property declaration to this O instance. |
PropertySource<O> |
addProperty(String type,
String name)
Add a new
Property declaration to this O instance. |
List<PropertySource<O>> |
getProperties()
Get a list of all
Properties declared by this O, or return an empty list if no
Properties are declared. |
PropertySource<O> |
getProperty(String name)
Get the
Property with the given name and return it, otherwise, return null. |
PropertyHolderSource<O> |
removeProperty(Property<O> property)
Remove the given
Property from this O instance, if it exists; otherwise, do nothing. |
hasProperty, hasPropertygetInterfaces, hasInterface, hasInterface, hasInterfaceaddMethod, addMethod, addMethod, addMethod, getMethod, getMethod, getMethod, getMethods, removeMethodhasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignatureaddField, addField, getField, getFields, removeFieldhasField, hasFieldgetMembersPropertySource<O> addProperty(String type, String name)
Property declaration to this O instance.PropertySource<O> addProperty(Class<?> type, String name)
Property declaration to this O instance.PropertySource<O> addProperty(JavaType<?> type, String name)
Property declaration to this O instance.PropertyHolderSource<O> removeProperty(Property<O> property)
Property from this O instance, if it exists; otherwise, do nothing.List<PropertySource<O>> getProperties()
PropertyHolderProperties declared by this O, or return an empty list if no
Properties are declared.getProperties in interface PropertyHolder<O extends JavaSource<O>>PropertySource<O> getProperty(String name)
PropertyHolderProperty with the given name and return it, otherwise, return null.getProperty in interface PropertyHolder<O extends JavaSource<O>>Copyright © 2016 JBoss by Red Hat. All rights reserved.