public class Resolver extends java.lang.Object implements Processor
Resolved stage.
The resolver does a proper context check on the model constructed from a protocol descriptor. There is not assumption that the protocol compiler would have run before us, allowing tools building the model from descriptors which are inconsistent, and getting proper error messages instead of crashes.
| Constructor and Description |
|---|
Resolver() |
| Modifier and Type | Method and Description |
|---|---|
com.google.inject.Key<?> |
establishes()
The stage this processor establishes if operation successfully finishes.
|
com.google.common.collect.ImmutableList<com.google.inject.Key<?>> |
requires()
The list of stages this processor needs for its operations.
|
boolean |
run(Model model)
Runs this processor.
|
public com.google.common.collect.ImmutableList<com.google.inject.Key<?>> requires()
ProcessorModel. A stage may or may not be associated with actual data of the type of the
parameter of the key.public com.google.inject.Key<?> establishes()
Processorestablishes in interface Processorpublic boolean run(Model model)
ProcessorProcessor.requires() stages are
established before this method is called via Model.establishStage(Key). The method
should return true if processing successfully finished and the given Processor.establishes() key
has been attached to the model. Any errors, warnings, and hints during processing should be
attached to the model via Model.getDiagCollector().