Klasse CreateTypeOperation
java.lang.Object
org.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
- Alle implementierten Schnittstellen:
org.eclipse.core.resources.IWorkspaceRunnable
,org.eclipse.core.runtime.ICoreRunnable
,org.eclipse.core.runtime.IProgressMonitor
This operation creates a class or interface.
Required Attributes:
- Parent element - must be a compilation unit, or type.
- The source code for the type. No verification of the source is performed.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
JavaModelOperation.IPostAction
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.CreateTypeMemberOperation
alteredName, createdNode, source
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.CreateElementInCUOperation
anchorElement, creationOccurred, cuAST, INSERT_AFTER, INSERT_BEFORE, INSERT_LAST, insertionPolicy
Von Klasse geerbte Felder 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
Von Schnittstelle geerbte Felder org.eclipse.core.runtime.IProgressMonitor
UNKNOWN
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreateTypeOperation
(IJavaElement parentElement, String source, boolean force) When executed, this operation will create a type unit in the given parent element (a compilation unit, type) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected ASTNode
generateElementAST
(ASTRewrite rewriter, ICompilationUnit cu) protected IJavaElement
Creates and returns the handle for the element this operation created.Returns the name of the main task of this operation for progress reporting.protected IType
getType()
Returns theIType
the member is to be created in.protected SimpleName
rename
(ASTNode node, SimpleName newName) verify()
Possible failures: NO_ELEMENTS_TO_PROCESS - the parent element supplied to the operation isnull
.protected IJavaModelStatus
Verify for a name collision in the destination container.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.CreateTypeMemberOperation
generateSyntaxIncorrectAST, getChildPropertyDescriptor, setAlteredName
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.CreateElementInCUOperation
checkCanceled, createAfter, createBefore, executeOperation, generateNewCompilationUnitAST, generateResultHandles, getCompilationUnit, getMainAmountOfWork, getSchedulingRule, initializeDefaultPosition, insertASTNode, parse, setRelativePosition
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
addAction, addDelta, addReconcileDelta, applyTextEdit, beginTask, canModifyRoots, commonVerify, copyResources, createFile, createFolder, deleteEmptyPackageFragment, deleteResource, deleteResources, done, equalsOneOf, executeNestedOperation, firstActionWithID, getAttribute, getCompilationUnitFor, getCurrentOperationStack, getDocument, getElementToProcess, getJavaModel, getLatestASTLevel, getNestedFolders, getParentElement, getParentElements, getResultElements, getSubProgressMonitor, hasModifiedResource, internalWorked, isCanceled, isReadOnly, isTopLevelOperation, moveResources, newJavaElementDelta, popOperation, postAction, prefixesOneOf, pushOperation, removeAllPostAction, removeReconcileDelta, run, runOperation, runPostActions, setAttribute, setCanceled, setNested, setTaskName, subTask, worked
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.eclipse.core.runtime.IProgressMonitor
clearBlocked, setBlocked, slice
-
Konstruktordetails
-
CreateTypeOperation
When executed, this operation will create a type unit in the given parent element (a compilation unit, type)
-
-
Methodendetails
-
generateElementAST
protected ASTNode generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) throws JavaModelException - Setzt außer Kraft:
generateElementAST
in KlasseCreateTypeMemberOperation
- Löst aus:
JavaModelException
-
generateResultHandle
Beschreibung aus Klasse kopiert:CreateElementInCUOperation
Creates and returns the handle for the element this operation created.- Angegeben von:
generateResultHandle
in KlasseCreateElementInCUOperation
- Siehe auch:
-
getMainTaskName
Beschreibung aus Klasse kopiert:CreateElementInCUOperation
Returns the name of the main task of this operation for progress reporting.- Angegeben von:
getMainTaskName
in KlasseCreateElementInCUOperation
- Siehe auch:
-
getType
Returns theIType
the member is to be created in.- Setzt außer Kraft:
getType
in KlasseCreateTypeMemberOperation
-
verifyNameCollision
Beschreibung aus Klasse kopiert:CreateTypeMemberOperation
Verify for a name collision in the destination container.- Setzt außer Kraft:
verifyNameCollision
in KlasseCreateTypeMemberOperation
- Siehe auch:
-
verify
Beschreibung aus Klasse kopiert:CreateTypeMemberOperation
Possible failures:- NO_ELEMENTS_TO_PROCESS - the parent element supplied to the operation is
null
. - INVALID_CONTENTS - The source is
null
or has serious syntax errors. - NAME_COLLISION - A name collision occurred in the destination
- Setzt außer Kraft:
verify
in KlasseCreateTypeMemberOperation
- Siehe auch:
- NO_ELEMENTS_TO_PROCESS - the parent element supplied to the operation is
-
rename
- Angegeben von:
rename
in KlasseCreateTypeMemberOperation
-