Klasse CreateMethodOperation
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.CreateMethodOperation
- Alle implementierten Schnittstellen:
org.eclipse.core.resources.IWorkspaceRunnable,org.eclipse.core.runtime.ICoreRunnable,org.eclipse.core.runtime.IProgressMonitor
This operation creates an instance method.
Required Attributes:
- Containing type
- The source code for the method. 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
FelderVon Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.CreateTypeMemberOperation
alteredName, createdNode, sourceVon Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.CreateElementInCUOperation
anchorElement, creationOccurred, cuAST, INSERT_AFTER, INSERT_BEFORE, INSERT_LAST, insertionPolicyVon 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, TRUEVon Schnittstelle geerbte Felder org.eclipse.core.runtime.IProgressMonitor
UNKNOWN -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreateMethodOperation(IType parentElement, String source, boolean force) When executed, this operation will create a method in the given type with the specified source. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected String[]Returns the type signatures of the parameter types of the currentMethodDeclarationprotected ASTNodegenerateElementAST(ASTRewrite rewriter, ICompilationUnit cu) protected IJavaElementCreates and returns the handle for the element this operation created.Returns the name of the main task of this operation for progress reporting.protected SimpleNamerename(ASTNode node, SimpleName newName) protected IJavaModelStatusVerify for a name collision in the destination container.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.CreateTypeMemberOperation
generateSyntaxIncorrectAST, getChildPropertyDescriptor, getType, setAlteredName, verifyVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.CreateElementInCUOperation
checkCanceled, createAfter, createBefore, executeOperation, generateNewCompilationUnitAST, generateResultHandles, getCompilationUnit, getMainAmountOfWork, getSchedulingRule, initializeDefaultPosition, insertASTNode, parse, setRelativePositionVon 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, workedVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.eclipse.core.runtime.IProgressMonitor
clearBlocked, setBlocked, slice
-
Felddetails
-
parameterTypes
-
-
Konstruktordetails
-
CreateMethodOperation
When executed, this operation will create a method in the given type with the specified source.
-
-
Methodendetails
-
convertASTMethodTypesToSignatures
Returns the type signatures of the parameter types of the currentMethodDeclaration -
generateElementAST
protected ASTNode generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) throws JavaModelException - Setzt außer Kraft:
generateElementASTin KlasseCreateTypeMemberOperation- Löst aus:
JavaModelException
-
generateResultHandle
Beschreibung aus Klasse kopiert:CreateElementInCUOperationCreates and returns the handle for the element this operation created.- Angegeben von:
generateResultHandlein KlasseCreateElementInCUOperation- Siehe auch:
-
getMainTaskName
Beschreibung aus Klasse kopiert:CreateElementInCUOperationReturns the name of the main task of this operation for progress reporting.- Angegeben von:
getMainTaskNamein KlasseCreateElementInCUOperation- Siehe auch:
-
rename
- Angegeben von:
renamein KlasseCreateTypeMemberOperation
-
verifyNameCollision
Beschreibung aus Klasse kopiert:CreateTypeMemberOperationVerify for a name collision in the destination container.- Setzt außer Kraft:
verifyNameCollisionin KlasseCreateTypeMemberOperation- Siehe auch:
-