@Service public class ClasspathOperationsImpl extends Object implements ClasspathOperations
ClasspathOperations.| Constructor and Description |
|---|
ClasspathOperationsImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
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.
|
protected void |
deactivate(org.osgi.service.component.ComponentContext context) |
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() |
protected void activate(org.osgi.service.component.ComponentContext context)
protected void deactivate(org.osgi.service.component.ComponentContext context)
public 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)
ClasspathOperationscreateClass in interface ClasspathOperationsname - 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 Roopublic void createConstructor(org.springframework.roo.model.JavaType name,
Set<String> fields)
ClasspathOperationsIf 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.
createConstructor in interface ClasspathOperationsname - the name of the class (required).fields - the fields to include in the constructor.public void createEnum(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
ClasspathOperationscreateEnum in interface ClasspathOperationsname - the name of the enum to createpath - the source directory in which to create the enumpermitReservedWords - whether reserved words are ignored by Roopublic void createInterface(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
ClasspathOperationscreateInterface in interface ClasspathOperationsname - the name of the interface to createpath - the source directory in which to create the interfacepermitReservedWords - whether reserved words are ignored by Roopublic void enumConstant(org.springframework.roo.model.JavaType name,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean permitReservedWords)
ClasspathOperationsenumConstant in interface ClasspathOperationsname - the enum class to receive this fieldfieldName - the name of the constantpermitReservedWords - whether reserved words are ignored by Roopublic void focus(org.springframework.roo.model.JavaType type)
ClasspathOperationsfocus in interface ClasspathOperationstype - the type to focus on (required)public boolean isProjectAvailable()
isProjectAvailable in interface ClasspathOperationsCopyright © 2009–2016. All rights reserved.