|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClasspathOperations
Classpath-related operations
| Method Summary | |
|---|---|
void |
createClass(org.springframework.roo.model.JavaType name,
boolean rooAnnotations,
org.springframework.roo.project.LogicalPath path,
org.springframework.roo.model.JavaType superclass,
org.springframework.roo.model.JavaType implementsType,
boolean createAbstract,
boolean permitReservedWords)
Creates a new Java class source file in any project path. |
void |
createConstructor(org.springframework.roo.model.JavaType name,
Set<String> fields)
Creates a new constructor in the specified class with the fields provided. |
void |
createEnum(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
Creates a new Java enum source file in any project path. |
void |
createInterface(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
Creates a new Java interface source file in any project path. |
void |
enumConstant(org.springframework.roo.model.JavaType name,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean permitReservedWords)
Inserts a new enum constant into an enum. |
void |
focus(org.springframework.roo.model.JavaType type)
Changes the focus to the given type. |
boolean |
isProjectAvailable()
|
| Method Detail |
|---|
void createClass(org.springframework.roo.model.JavaType name,
boolean rooAnnotations,
org.springframework.roo.project.LogicalPath path,
org.springframework.roo.model.JavaType superclass,
org.springframework.roo.model.JavaType implementsType,
boolean createAbstract,
boolean permitReservedWords)
name - the name of the class to createrooAnnotations - whether the generated class should have common Roo
annotationspath - the source directory in which to create the classsuperclass - the superclass (defaults to Object)implementsType - the interface to implementcreateAbstract - whether the generated class should be marked as
abstractpermitReservedWords - whether reserved words are ignored by Roo
void createConstructor(org.springframework.roo.model.JavaType name,
Set<String> fields)
If the set of fields is null, a public no-arg constructor will be created if not already present. If fields is not null but empty or if all of the supplied fields do not exist in the class, the method returns silently.
name - the name of the class (required).fields - the fields to include in the constructor.
void createEnum(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
name - the name of the enum to createpath - the source directory in which to create the enumpermitReservedWords - whether reserved words are ignored by Roo
void createInterface(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
name - the name of the interface to createpath - the source directory in which to create the interfacepermitReservedWords - whether reserved words are ignored by Roo
void enumConstant(org.springframework.roo.model.JavaType name,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean permitReservedWords)
name - the enum class to receive this fieldfieldName - the name of the constantpermitReservedWords - whether reserved words are ignored by Roovoid focus(org.springframework.roo.model.JavaType type)
type - the type to focus on (required)boolean isProjectAvailable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||