public class DocumentationConfigAspect extends RuleBasedConfigAspect<com.google.api.DocumentationRule,ElementDocumentationAttribute>
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToRuleBuilder(com.google.api.Service.Builder builder,
java.lang.String selector,
ElementDocumentationAttribute attr)
Adds a rule back to the rule builder, specialized for the given selector.
|
protected void |
clearRuleBuilder(com.google.api.Service.Builder builder)
Clears the rule builder during normalization.
|
static DocumentationConfigAspect |
create(Model model) |
protected ElementDocumentationAttribute |
evaluate(ProtoElement element,
com.google.api.DocumentationRule rule,
boolean isFromIdl)
Evaluates the rule w.r.t.
|
protected com.google.api.DocumentationRule |
fromIdlLayer(ProtoElement element)
Attempts to synthesize the rule from the IDL, e.g.
|
protected boolean |
isApplicable(ProtoElement element)
Predicate determining whether a rule of the aspect is applicable to the element.
|
java.util.List<java.lang.Class<? extends ConfigAspect>> |
mergeDependencies()
Returns an empty list since this aspect does not depend on any other aspects.
|
void |
startMerging()
Default implementation of starting merge; does nothing.
|
void |
startNormalization(com.google.api.Service.Builder builder)
Default implementation of starting normalization; does nothing.
|
endMerging, merge, normalizeasDiagCollector, endLinting, endNormalization, error, getAspectName, getDocumentation, getDocumentationTitle, getLintRuleNames, getLocationInConfig, getLocationOfRepeatedFieldInConfig, getModel, lint, lintWarning, registerLintRule, registerLintRuleName, startLinting, warningpublic static DocumentationConfigAspect create(Model model)
public java.util.List<java.lang.Class<? extends ConfigAspect>> mergeDependencies()
protected boolean isApplicable(ProtoElement element)
RuleBasedConfigAspectisApplicable in class RuleBasedConfigAspect<com.google.api.DocumentationRule,ElementDocumentationAttribute>public void startMerging()
ConfigAspectBasestartMerging in interface ConfigAspectstartMerging in class ConfigAspectBase@Nullable protected com.google.api.DocumentationRule fromIdlLayer(ProtoElement element)
RuleBasedConfigAspectfromIdlLayer in class RuleBasedConfigAspect<com.google.api.DocumentationRule,ElementDocumentationAttribute>protected ElementDocumentationAttribute evaluate(ProtoElement element, com.google.api.DocumentationRule rule, boolean isFromIdl)
RuleBasedConfigAspectevaluate in class RuleBasedConfigAspect<com.google.api.DocumentationRule,ElementDocumentationAttribute>public void startNormalization(com.google.api.Service.Builder builder)
ConfigAspectBasestartNormalization in interface ConfigAspectstartNormalization in class RuleBasedConfigAspect<com.google.api.DocumentationRule,ElementDocumentationAttribute>protected void clearRuleBuilder(com.google.api.Service.Builder builder)
RuleBasedConfigAspectclearRuleBuilder in class RuleBasedConfigAspect<com.google.api.DocumentationRule,ElementDocumentationAttribute>protected void addToRuleBuilder(com.google.api.Service.Builder builder,
java.lang.String selector,
ElementDocumentationAttribute attr)
RuleBasedConfigAspectaddToRuleBuilder in class RuleBasedConfigAspect<com.google.api.DocumentationRule,ElementDocumentationAttribute>