public interface FieldHolder<O extends JavaSource<O>> extends MemberHolder<O,Member>
| Modifier and Type | Method and Description |
|---|---|
Field<O> |
addField()
Add a new Java
Field to this O instance. |
Field<O> |
addField(String declaration)
|
Field<O> |
getField(String name)
Get the
Field with the given name and return it, otherwise, return null. |
List<Field<O>> |
getFields()
|
boolean |
hasField(Field<O> field)
Return whether or not this
O declares the given Field instance. |
boolean |
hasField(String name)
Return whether or not this
O declares a Field with the given name. |
O |
removeField(Field<O> field)
Remove the given
Field from this O instance, if it exists; otherwise, do nothing. |
getMembersField<O> addField()
Field to this O instance. This field will be a stub until further modified.boolean hasField(String name)
O declares a Field with the given name.boolean hasField(Field<O> field)
O declares the given Field instance.Field<O> getField(String name)
Field with the given name and return it, otherwise, return null.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.