Uses of Interface
org.jboss.forge.roaster.model.source.FieldSource
Packages that use FieldSource
-
Uses of FieldSource in org.jboss.forge.roaster.model.source
Methods in org.jboss.forge.roaster.model.source that return FieldSourceModifier and TypeMethodDescriptionFieldHolderSource.addField()Add a new JavaFieldto thisFieldHolderSourceinstance.Add a newFielddeclaration to thisFieldHolderSourceinstance, using the givenStringas the declaration.PropertySource.createField()Create the storing field.Get theFieldwith the given name and return it, otherwise, return null.PropertySource.getField()Override.FieldSource.setLiteralInitializer(String value) FieldSource.setStringInitializer(String value) FieldSource.setTransient(boolean value) Set the type of thisFieldto the given type.Set the type of thisFieldto the givenJavaSource<?>type.FieldSource.setVolatile(boolean value) Methods in org.jboss.forge.roaster.model.source that return types with arguments of type FieldSourceModifier and TypeMethodDescriptionList<FieldSource<O>>FieldHolderSource.getFields()Get a list of allFields declared by thisFieldHolderSource, or return an empty list if noFields are declared. -
Uses of FieldSource in org.jboss.forge.roaster.model.util
Methods in org.jboss.forge.roaster.model.util with parameters of type FieldSourceModifier and TypeMethodDescriptionstatic voidRefactory.createEquals(JavaClassSource clazz, FieldSource<?>... fields) Create an equals implementation for the given class and fields.static voidRefactory.createGetterAndSetter(JavaClassSource clazz, FieldSource<JavaClassSource> field) Generates a getXXX and setXXX method for the supplied fieldstatic voidRefactory.createHashCode(JavaClassSource clazz, FieldSource<?>... fields) Create a hashCode implementation for the given class and fields.static voidRefactory.createHashCodeAndEquals(JavaClassSource clazz, FieldSource<?>... fields) Create a hashCode and equals implementation for the given class and fields.static voidRefactory.createToStringFromFields(JavaClassSource clazz, FieldSource<JavaClassSource>... fields) Create a toString implementation using the supplied fieldsMethod parameters in org.jboss.forge.roaster.model.util with type arguments of type FieldSourceModifier and TypeMethodDescriptionstatic voidRefactory.createToStringFromFields(JavaClassSource clazz, List<FieldSource<JavaClassSource>> fields) Create a toString implementation using the supplied fields