public interface TypeManagementService
| Modifier and Type | Method and Description |
|---|---|
void |
addEnumConstant(String physicalTypeIdentifier,
org.springframework.roo.model.JavaSymbolName constantName)
Adds a new enum constant to an existing class.
|
void |
addField(FieldMetadata field)
Adds a new field to an existing class.
|
void |
addField(FieldMetadata field,
boolean evict)
Adds a new field to an existing class.
|
void |
createOrUpdateTypeOnDisk(ClassOrInterfaceTypeDetails cid)
Creates a physical type with the contents based on the
ClassOrInterfaceTypeDetails passed in at the location denoted by
the passed in path. |
void |
generateClassFile(ClassOrInterfaceTypeDetails cid)
Deprecated.
|
void addEnumConstant(String physicalTypeIdentifier, org.springframework.roo.model.JavaSymbolName constantName)
physicalTypeIdentifier - to add (required)constantName - the name of the constant (required)void addField(FieldMetadata field)
An exception is thrown if the class does not exist, cannot be modified or a field with the requested name is already declared.
field - the field to add (required)void addField(FieldMetadata field, boolean evict)
An exception is thrown if the class does not exist, cannot be modified or a field with the requested name is already declared.
field - the field to add (required)whether - the physical type where the field is going to be added should
be obtained from scratch.void createOrUpdateTypeOnDisk(ClassOrInterfaceTypeDetails cid)
ClassOrInterfaceTypeDetails passed in at the location denoted by
the passed in path. This method expects the passed in file location to be
correct.cid - ClassOrInterfaceTypeDetails to base the file contents
on (required)@Deprecated void generateClassFile(ClassOrInterfaceTypeDetails cid)
An exception is thrown if the class already exists.
cid - the ClassOrInterfaceTypeDetails to create (required)Copyright © 2009–2017. All rights reserved.