| Package | Description |
|---|---|
| org.jboss.forge.roaster.model.source | |
| org.jboss.forge.roaster.model.util |
| Modifier and Type | Method and Description |
|---|---|
FieldSource<O> |
FieldHolderSource.addField()
Add a new Java
Field to this O instance. |
FieldSource<O> |
FieldHolderSource.addField(String declaration)
|
FieldSource<O> |
PropertySource.createField()
Create the storing field.
|
FieldSource<O> |
PropertySource.getField()
Override.
|
FieldSource<O> |
FieldHolderSource.getField(String name)
Get the
Field with the given name and return it, otherwise, return null. |
FieldSource<O> |
FieldSource.setLiteralInitializer(String value) |
FieldSource<O> |
FieldSource.setStringInitializer(String value) |
FieldSource<O> |
FieldSource.setType(Class<?> clazz)
|
FieldSource<O> |
FieldSource.setType(JavaType<?> entity)
Set the type of this
Field to the given JavaSource> type. |
FieldSource<O> |
FieldSource.setType(String type)
Set the type of this
Field to the given type. |
| Modifier and Type | Method and Description |
|---|---|
List<FieldSource<O>> |
FieldHolderSource.getFields()
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Refactory.createGetterAndSetter(JavaClassSource clazz,
FieldSource<JavaClassSource> field)
Generates a getXXX and setXXX method for the supplied field
|
static void |
Refactory.createHashCodeAndEquals(JavaClassSource clazz,
FieldSource<?>... fields)
Create a hashCode and equals implementation for the given class and fields.
|
static void |
Refactory.createToStringFromFields(JavaClassSource clazz,
FieldSource<JavaClassSource>... fields)
Create a toString implementation using the supplied fields
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Refactory.createToStringFromFields(JavaClassSource clazz,
List<FieldSource<JavaClassSource>> fields)
Create a toString implementation using the supplied fields
|
Copyright © 2014 JBoss by Red Hat. All rights reserved.