org.eclipse.xtext.resource
Interface IDerivedStateComputer

All Known Implementing Classes:
GrammarResource.LinkingTrigger, IXtendJvmAssociations.Impl, JvmModelAssociator

public interface IDerivedStateComputer

Since:
2.1
Author:
Sven Efftinge - Initial contribution and API

Method Summary
 void discardDerivedState(DerivedStateAwareResource resource)
          is called when the resource is updated.
 void installDerivedState(DerivedStateAwareResource resource, boolean preLinkingPhase)
          callback to do modifications when and before getContents is called the first time on a resource.
 

Method Detail

installDerivedState

void installDerivedState(DerivedStateAwareResource resource,
                         boolean preLinkingPhase)
callback to do modifications when and before getContents is called the first time on a resource.

Parameters:
resource - the resource to install derived state on
preLinkingPhase - whether the call is done in a pre-linking phase. During this phase clients may not do linking which relies on indexed information, because the index might not be fully computed yet.

discardDerivedState

void discardDerivedState(DerivedStateAwareResource resource)
is called when the resource is updated. Clients should revert all the changes they did during installDerivedState(DerivedStateAwareResource, boolean)