| 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.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)
Generates a getXXX and setXXX method for the supplied field
|
static void |
Refactory.createHashCodeAndEquals(JavaClass clazz,
Field<?>... fields)
Create a hashCode and equals implementation for the given class and fields.
|
static void |
Refactory.createToStringFromFields(JavaClass clazz,
Field<JavaClass>... fields)
Create a toString implementation using the supplied fields
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Refactory.createToStringFromFields(JavaClass clazz,
List<Field<JavaClass>> fields)
Create a toString implementation using the supplied fields
|
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.