| Package | Description |
|---|---|
| org.jboss.forge.roaster.model.util |
| 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)
Deprecated.
Use
Refactory#createHashCodeAndEquals(JavaClass, Field instead, since this method relies
on the existence of the id 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)
Create a toString implementation using all the fields in this class
|
static void |
Refactory.createToStringFromFields(JavaClassSource clazz,
FieldSource<JavaClassSource>... fields)
Create a toString implementation using the supplied fields
|
static void |
Refactory.createToStringFromFields(JavaClassSource clazz,
List<FieldSource<JavaClassSource>> fields)
Create a toString implementation using the supplied fields
|
| 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.createToStringFromFields(JavaClassSource clazz,
List<FieldSource<JavaClassSource>> fields)
Create a toString implementation using the supplied fields
|
Copyright © 2014 JBoss by Red Hat. All rights reserved.