| Package | Description |
|---|---|
| org.jboss.forge.parser.java | |
| org.jboss.forge.parser.java.util |
| Modifier and Type | Method and Description |
|---|---|
Field<O> |
FieldHolder.addField()
Add a new Java
Field to this O instance. |
Field<O> |
FieldHolder.addField(String declaration)
|
Field<O> |
FieldHolder.getField(String name)
Get the
Field with the given name and return it, otherwise, return null. |
Field<O> |
Field.setLiteralInitializer(String value) |
Field<O> |
Field.setName(String name) |
Field<O> |
Field.setStringInitializer(String value) |
Field<O> |
Field.setType(Class<?> clazz)
|
Field<O> |
Field.setType(JavaSource<?> entity)
Set the type of this
Field to the given JavaSource> type. |
Field<O> |
Field.setType(String type)
Set the type of this
Field to the given type. |
| Modifier and Type | Method and Description |
|---|---|
List<Field<O>> |
FieldHolder.getFields()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FieldHolder.hasField(Field<O> field)
Return whether or not this
O declares the given Field instance. |
O |
FieldHolder.removeField(Field<O> field)
Remove the given
Field from this O instance, if it exists; otherwise, do nothing. |
| Modifier and Type | Method and Description |
|---|---|
static void |
Refactory.createGetterAndSetter(JavaClass clazz,
Field<JavaClass> field) |
static void |
Refactory.createToStringFromFields(JavaClass clazz,
Field<JavaClass>... fields) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Refactory.createToStringFromFields(JavaClass clazz,
List<Field<JavaClass>> fields) |
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.