public interface ConfigAspect
aspects package.
Processing of aspects is performed in three phases:
Config aspects can communicate with each other by attaching attributes to the model.
Attributes are usually synthesized during the merging phase. If one aspect depends on another's
attributes in the merging phase, the dependency must be specified using the
mergeDependencies() method.
| Modifier and Type | Method and Description |
|---|---|
void |
endLinting()
Marks end of style checking.
|
void |
endMerging()
Marks end of merging.
|
void |
endNormalization(com.google.api.Service.Builder builder)
Marks end of normalization.
|
java.lang.String |
getAspectName()
Returns the string identifying the aspect in diagnosis.
|
java.lang.String |
getDocumentation(ProtoElement element)
The configuration aspect documentation for the proto element.
|
java.lang.String |
getDocumentationTitle(ProtoElement element)
The title of the configuration aspect documentation for given proto element.
|
java.util.Set<java.lang.String> |
getLintRuleNames()
Returns the set of all style rule names related to this aspect.
|
void |
lint(ProtoElement element)
Style checks the given element.
|
void |
merge(ProtoElement element)
Merges the config aspect with the given proto element.
|
java.util.List<java.lang.Class<? extends ConfigAspect>> |
mergeDependencies()
Returns the types of aspects which must be run before this aspect during the merging phase.
|
void |
normalize(ProtoElement element,
com.google.api.Service.Builder builder)
Normalizes the service config w.r.t.
|
void |
startLinting()
Marks the begin of style checking.
|
void |
startMerging()
Marks start of merging.
|
void |
startNormalization(com.google.api.Service.Builder builder)
Marks start of normalization.
|
java.lang.String getAspectName()
java.util.Set<java.lang.String> getLintRuleNames()
java.util.List<java.lang.Class<? extends ConfigAspect>> mergeDependencies()
void startMerging()
void merge(ProtoElement element)
Element.putAttribute(com.google.inject.Key, Object).void endMerging()
void startLinting()
void lint(ProtoElement element)
void endLinting()
void startNormalization(com.google.api.Service.Builder builder)
void normalize(ProtoElement element, com.google.api.Service.Builder builder)
void endNormalization(com.google.api.Service.Builder builder)
@Nullable java.lang.String getDocumentationTitle(ProtoElement element)
@Nullable java.lang.String getDocumentation(ProtoElement element)