public class ContextConfigAspect extends RuleBasedConfigAspect<com.google.api.ContextRule,com.google.api.ContextRule>
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToRuleBuilder(com.google.api.Service.Builder serviceBuilder,
java.lang.String selector,
com.google.api.ContextRule attribute)
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 ContextConfigAspect |
create(Model model)
Creates new context config aspect.
|
protected com.google.api.ContextRule |
evaluate(ProtoElement element,
com.google.api.ContextRule rule,
boolean isFromIdl)
Evaluates the rule w.r.t.
|
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.
|
endMerging, fromIdlLayer, merge, normalize, startNormalizationasDiagCollector, endLinting, endNormalization, error, getAspectName, getDocumentation, getDocumentationTitle, getLintRuleNames, getLocationInConfig, getLocationOfRepeatedFieldInConfig, getModel, lint, lintWarning, registerLintRule, registerLintRuleName, startLinting, startMerging, warningpublic static ContextConfigAspect 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.ContextRule,com.google.api.ContextRule>protected com.google.api.ContextRule evaluate(ProtoElement element, com.google.api.ContextRule rule, boolean isFromIdl)
RuleBasedConfigAspectevaluate in class RuleBasedConfigAspect<com.google.api.ContextRule,com.google.api.ContextRule>protected void clearRuleBuilder(com.google.api.Service.Builder builder)
RuleBasedConfigAspectclearRuleBuilder in class RuleBasedConfigAspect<com.google.api.ContextRule,com.google.api.ContextRule>protected void addToRuleBuilder(com.google.api.Service.Builder serviceBuilder,
java.lang.String selector,
com.google.api.ContextRule attribute)
RuleBasedConfigAspectaddToRuleBuilder in class RuleBasedConfigAspect<com.google.api.ContextRule,com.google.api.ContextRule>