public interface FieldHolderSource<O extends JavaSource<O>> extends FieldHolder<O>, MemberHolderSource<O>
JavaSource that may contain field definitions.| Modifier and Type | Method and Description |
|---|---|
FieldSource<O> |
addField()
Add a new Java
Field to this O instance. |
FieldSource<O> |
addField(String declaration)
|
FieldSource<O> |
getField(String name)
Get the
Field with the given name and return it, otherwise, return null. |
List<FieldSource<O>> |
getFields()
|
O |
removeField(Field<O> field)
Remove the given
Field from this O instance, if it exists; otherwise, do nothing. |
hasField, hasFieldgetMembersFieldSource<O> addField()
Field to this O instance. This field will be a stub until further modified.FieldSource<O> addField(String declaration)
O removeField(Field<O> field)
Field from this O instance, if it exists; otherwise, do nothing.FieldSource<O> getField(String name)
Field with the given name and return it, otherwise, return null.getField in interface FieldHolder<O extends JavaSource<O>>List<FieldSource<O>> getFields()
getFields in interface FieldHolder<O extends JavaSource<O>>Copyright © 2014 JBoss by Red Hat. All rights reserved.