Klasse ReconcileWorkingCopyOperation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
org.aspectj.org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation
- Alle implementierten Schnittstellen:
org.eclipse.core.resources.IWorkspaceRunnable,org.eclipse.core.runtime.ICoreRunnable,org.eclipse.core.runtime.IProgressMonitor
Reconcile a working copy and signal the changes through a delta.
High level summmary of what a reconcile does:
- populates the model with the new working copy contents
- fires a fine grained delta (flag F_FINE_GRAINED) describing the difference between the previous content and the new content (which method was added/removed, which field was changed, etc.)
- computes problems and reports them to the IProblemRequestor (begingReporting(), n x acceptProblem(...), endReporting()) iff (working copy is not consistent with its buffer || forceProblemDetection is set) Ungültige Eingabe: "&"Ungültige Eingabe: "&" problem requestor is active
- produces a DOM AST (either JLS_2, JLS_3 or NO_AST) that is resolved if flag is set
- notifies compilation participants of the reconcile allowing them to participate in this operation and report problems
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
JavaModelOperation.IPostAction -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungintstatic booleanintbooleanbooleanVon 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
KonstruktorenKonstruktorBeschreibungReconcileWorkingCopyOperation(IJavaElement workingCopy, int astLevel, int reconcileFlags, WorkingCopyOwner workingCopyOwner) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidPerforms the operation specific behavior.protected CompilationUnitReturns the working copy this operation is working on.booleanReturnstrueif this operation performs no resource modifications, otherwisefalse.makeConsistent(CompilationUnit workingCopy) protected IJavaModelStatusverify()Returns a status indicating if there is any known reason this operation will fail.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
addAction, addDelta, addReconcileDelta, applyTextEdit, beginTask, canModifyRoots, checkCanceled, commonVerify, copyResources, createFile, createFolder, deleteEmptyPackageFragment, deleteResource, deleteResources, done, equalsOneOf, executeNestedOperation, firstActionWithID, getAttribute, getCompilationUnitFor, getCurrentOperationStack, getDocument, getElementToProcess, getJavaModel, getLatestASTLevel, getNestedFolders, getParentElement, getParentElements, getResultElements, getSchedulingRule, getSubProgressMonitor, hasModifiedResource, internalWorked, isCanceled, 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
-
PERF
public static boolean PERF -
astLevel
public int astLevel -
resolveBindings
public boolean resolveBindings -
problems
-
reconcileFlags
public int reconcileFlags -
ast
-
deltaBuilder
-
requestorIsActive
public boolean requestorIsActive
-
-
Konstruktordetails
-
ReconcileWorkingCopyOperation
public ReconcileWorkingCopyOperation(IJavaElement workingCopy, int astLevel, int reconcileFlags, WorkingCopyOwner workingCopyOwner)
-
-
Methodendetails
-
executeOperation
Beschreibung aus Klasse kopiert:JavaModelOperationPerforms the operation specific behavior. Subclasses must override.- Angegeben von:
executeOperationin KlasseJavaModelOperation- Löst aus:
JavaModelException- if setting the source of the original compilation unit fails
-
getWorkingCopy
Returns the working copy this operation is working on. -
isReadOnly
public boolean isReadOnly()Beschreibung aus Klasse kopiert:JavaModelOperationReturnstrueif this operation performs no resource modifications, otherwisefalse. Subclasses must override.- Setzt außer Kraft:
isReadOnlyin KlasseJavaModelOperation
-
makeConsistent
- Löst aus:
JavaModelException
-
verify
Beschreibung aus Klasse kopiert:JavaModelOperationReturns a status indicating if there is any known reason this operation will fail. Operations are verified before they are run. Subclasses must override if they have any conditions to verify before this operation executes.- Setzt außer Kraft:
verifyin KlasseJavaModelOperation- Siehe auch:
-