public static class GrammarResource.LinkingTrigger extends java.lang.Object implements IDerivedStateComputer
GrammarResource
.Constructor and Description |
---|
GrammarResource.LinkingTrigger() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void installDerivedState(DerivedStateAwareResource resource, boolean preLinkingPhase)
IDerivedStateComputer
installDerivedState
in interface IDerivedStateComputer
resource
- the resource to install derived state onpreLinkingPhase
- 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.public void discardDerivedState(DerivedStateAwareResource resource)
IDerivedStateComputer
IDerivedStateComputer.installDerivedState(DerivedStateAwareResource, boolean)
discardDerivedState
in interface IDerivedStateComputer