|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
org.aspectj.org.eclipse.jdt.internal.core.CreateElementInCUOperation
org.aspectj.org.eclipse.jdt.internal.core.CreateTypeMemberOperation
org.aspectj.org.eclipse.jdt.internal.core.CreateTypeOperation
public class CreateTypeOperation
This operation creates a class or interface.
Required Attributes:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation |
|---|
JavaModelOperation.IPostAction |
| Field Summary |
|---|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.CreateTypeMemberOperation |
|---|
alteredName, createdNode, source |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.CreateElementInCUOperation |
|---|
anchorElement, creationOccurred, cuAST, INSERT_AFTER, INSERT_BEFORE, INSERT_LAST, insertionPolicy |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation |
|---|
actions, actionsEnd, actionsStart, APPEND, attributes, elementsToProcess, force, HAS_MODIFIED_RESOURCE_ATTR, isNested, KEEP_EXISTING, NO_ELEMENTS, OPERATION_STACKS, parentElements, POST_ACTION_VERBOSE, progressMonitor, REMOVEALL_APPEND, resultElements, TRUE |
| Constructor Summary | |
|---|---|
CreateTypeOperation(IJavaElement parentElement,
java.lang.String source,
boolean force)
When executed, this operation will create a type unit in the given parent element (a compilation unit, type) |
|
| Method Summary | |
|---|---|
protected ASTNode |
generateElementAST(ASTRewrite rewriter,
ICompilationUnit cu)
|
protected IJavaElement |
generateResultHandle()
Creates and returns the handle for the element this operation created. |
java.lang.String |
getMainTaskName()
Returns the name of the main task of this operation for progress reporting. |
protected IType |
getType()
Returns the IType the member is to be created in. |
protected SimpleName |
rename(ASTNode node,
SimpleName newName)
|
IJavaModelStatus |
verify()
Possible failures: NO_ELEMENTS_TO_PROCESS - the parent element supplied to the operation is null. |
protected IJavaModelStatus |
verifyNameCollision()
Verify for a name collision in the destination container. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.CreateTypeMemberOperation |
|---|
generateSyntaxIncorrectAST, getChildPropertyDescriptor, setAlteredName |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.CreateElementInCUOperation |
|---|
checkCanceled, createAfter, createBefore, executeOperation, generateNewCompilationUnitAST, generateResultHandles, getCompilationUnit, getMainAmountOfWork, getSchedulingRule, initializeDefaultPosition, insertASTNode, parse, setRelativePosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CreateTypeOperation(IJavaElement parentElement,
java.lang.String source,
boolean force)
| Method Detail |
|---|
protected ASTNode generateElementAST(ASTRewrite rewriter,
ICompilationUnit cu)
throws JavaModelException
generateElementAST in class CreateTypeMemberOperationJavaModelExceptionprotected IJavaElement generateResultHandle()
CreateElementInCUOperation
generateResultHandle in class CreateElementInCUOperationCreateElementInCUOperation.generateResultHandle()public java.lang.String getMainTaskName()
CreateElementInCUOperation
getMainTaskName in class CreateElementInCUOperationCreateElementInCUOperation.getMainTaskName()protected IType getType()
IType the member is to be created in.
getType in class CreateTypeMemberOperationprotected IJavaModelStatus verifyNameCollision()
CreateTypeMemberOperation
verifyNameCollision in class CreateTypeMemberOperationCreateTypeMemberOperation.verifyNameCollision()public IJavaModelStatus verify()
CreateTypeMemberOperationnull.
null or has serious syntax errors.
verify in class CreateTypeMemberOperationIJavaModelStatus,
JavaConventions
protected SimpleName rename(ASTNode node,
SimpleName newName)
rename in class CreateTypeMemberOperation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||