public class Normalizer extends java.lang.Object implements Processor
Normalized stage.
After Normalized stage, all wildcards in configuration
rules have been expanded, and proto elements (service, method, message, etc.)
will be propagated to individual elements in //tech/api/proto/service.proto.| Constructor and Description |
|---|
Normalizer() |
| 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().