A B C D E F G H I K L M N O P Q R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(RuleVisitor) - Method in class dev.amp.validator.css.AtRule
-
Visit a rule.
- accept(RuleVisitor) - Method in class dev.amp.validator.css.Declaration
-
Process a Declaration with a visitor
- accept(RuleVisitor) - Method in class dev.amp.validator.css.QualifiedRule
-
process a qualified rule through a visitor
- accept(RuleVisitor) - Method in class dev.amp.validator.css.Rule
- accept(RuleVisitor) - Method in class dev.amp.validator.css.Stylesheet
-
Process the rules of a stylesheet.
- accept(SelectorVisitor) - Method in class dev.amp.validator.selector.AttrSelector
-
visits a selector
- accept(SelectorVisitor) - Method in class dev.amp.validator.selector.ClassSelector
-
visits a selector
- accept(SelectorVisitor) - Method in class dev.amp.validator.selector.Combinator
- accept(SelectorVisitor) - Method in class dev.amp.validator.selector.IdSelector
-
visits a selector
- accept(SelectorVisitor) - Method in class dev.amp.validator.selector.PseudoSelector
-
visits a selector
- accept(SelectorVisitor) - Method in class dev.amp.validator.selector.Selector
- accept(SelectorVisitor) - Method in class dev.amp.validator.selector.SelectorsGroup
-
visits a selector
- accept(SelectorVisitor) - Method in class dev.amp.validator.selector.SimpleSelectorSequence
- accept(SelectorVisitor) - Method in class dev.amp.validator.selector.TypeSelector
- ACTIONS_IDENTIFIERS - Static variable in class dev.amp.validator.utils.TagSpecUtils
-
List identifiers for ACTIONS format.
- add(SrcsetSourceDef) - Method in class dev.amp.validator.SrcsetParsingResult
-
Add source set def to the list.
- addBuiltError(ValidatorProtos.ValidationError, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.Context
- addError(ValidatorProtos.ValidationError.Code, int, int, List<String>, String, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.Context
-
Add an error field to validationResult with severity ERROR.
- addError(ValidatorProtos.ValidationError.Code, Locator, List<String>, String, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.Context
-
Add an error field to validationResult with severity ERROR.
- addInlineStyleByteSize(int) - Method in class dev.amp.validator.Context
-
Records how much of the document is used towards inline style.
- addStyleTagByteSize(int) - Method in class dev.amp.validator.Context
-
Records how much of the document is used towards <style amp-custom>.
- addWarning(ValidatorProtos.ValidationError.Code, Locator, List<String>, String, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.Context
-
Add an error field to validationResult with severity WARNING.
- ADJACENT_SIBLING - dev.amp.validator.selector.Combinator.CombinatorType
-
ADJACENT_SIBLING
- allowedDeclarationsString(ValidatorProtos.CssSpec) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Returns a string of the allowed Declarations.
- allowedDescendantsList() - Method in class dev.amp.validator.TagStack
-
Returns the list of DescendantConstraints.
- allTagSpecs() - Method in class dev.amp.validator.TagSpecDispatch
-
Returns the tag specs.
- ALWAYS - dev.amp.validator.RecordValidated
-
ALWAYS
- AMP_IDENTIFIERS - Static variable in class dev.amp.validator.utils.TagSpecUtils
-
List identifiers for AMP format.
- AMP4ADS_IDENTIFIERS - Static variable in class dev.amp.validator.utils.TagSpecUtils
-
List identifiers for AMP4ADS format.
- Amp4AdsVisitor - Class in dev.amp.validator.visitor
-
A visitor class extension to handle amp4ads validation of css tokens.
- Amp4AdsVisitor(List<ErrorToken>) - Constructor for class dev.amp.validator.visitor.Amp4AdsVisitor
-
Constructor.
- AMP4EMAIL_IDENTIFIERS - Static variable in class dev.amp.validator.utils.TagSpecUtils
-
List identifiers for AMP4EMAIL format.
- AMPHtmlHandler - Class in dev.amp.validator
-
Validation handler which accepts callbacks from HTML parser.
- AMPHtmlHandler(AMPValidatorManager, ValidatorProtos.HtmlFormat.Code, ExitCondition, int, int) - Constructor for class dev.amp.validator.AMPHtmlHandler
-
Creates an AMPHtmlHandler.
- AMPHtmlParser - Class in dev.amp.validator.parser
-
The AMP HTML parser class.
- AMPHtmlParser() - Constructor for class dev.amp.validator.parser.AMPHtmlParser
-
Constructor.
- AMPValidatorLoader - Class in dev.amp.validator
-
This class load the validator main and extension proto ascii files.
- AMPValidatorLoader() - Constructor for class dev.amp.validator.AMPValidatorLoader
- AMPValidatorManager - Class in dev.amp.validator
-
This class manages the rules.
- AMPValidatorManager() - Constructor for class dev.amp.validator.AMPValidatorManager
-
Constructor of AMP validator manager class.
- asciiMatch(Token, String) - Static method in class dev.amp.validator.utils.CssSpecUtils
- AT_KEYWORD - dev.amp.validator.css.TokenType
-
AT_KEYWORD
- AT_RULE - dev.amp.validator.css.TokenType
-
QUALIFIED_RULE
- AtRule - Class in dev.amp.validator.css
-
Object model for @rules of css content.
- AtRule(String) - Constructor for class dev.amp.validator.css.AtRule
-
Constructor.
- ATTR_SELECTOR - dev.amp.validator.css.TokenType
-
ATTR_SELECTOR
- AttributeSpecUtils - Class in dev.amp.validator.utils
-
Methods to handle attribute spec validation.
- attrs() - Method in class dev.amp.validator.ParsedHtmlTag
-
Returns an array of attributes.
- attrsByKey() - Method in class dev.amp.validator.ParsedHtmlTag
-
Returns an object mapping attribute name to attribute value.
- attrsCanSatisfyExtension() - Method in class dev.amp.validator.ParsedTagSpec
- AttrSelector - Class in dev.amp.validator.selector
-
An attribute selector matches document nodes based on their attributes.
- AttrSelector(String, String, String, String) - Constructor for class dev.amp.validator.selector.AttrSelector
- attrValueHasPartialsTemplateSyntax(String) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Returns true if |value| contains a mustache partials template syntax.
- attrValueHasTemplateSyntax(String) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Returns true if |value| contains mustache template syntax.
- attrValueHasUnescapedTemplateSyntax(String) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Returns true if |value| contains a mustache unescaped template syntax.
B
- back() - Method in class dev.amp.validator.TagStack
-
Alias to the last element on the tag stack.
- betterValidationResultThan(ValidatorProtos.ValidationResult.Builder, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns true iff resultA is a better result than resultB.
- betterValidationStatusThan(ValidatorProtos.ValidationResult.Status, ValidatorProtos.ValidationResult.Status) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns true iff statusA is a better status than statusB.
- byteLength(String) - Static method in class dev.amp.validator.utils.ByteUtils
-
Computes the byte length, rather than character length, of a utf8 string.
- ByteUtils - Class in dev.amp.validator.utils
-
Byte utility methods.
C
- calculateHeight(ValidatorProtos.AmpLayout, ValidatorProtos.AmpLayout.Layout, CssLength) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Calculates the effective height from input layout and input height.
- calculateHeightForTag(ValidatorProtos.AmpLayout.Layout, CssLength, String) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Calculates the effective height from the input layout, input height and tag.
- calculateLayout(ValidatorProtos.AmpLayout.Layout, CssLength, CssLength, String, String) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Calculates the layout; this depends on the width / height calculation above.
- calculateWidth(ValidatorProtos.AmpLayout, ValidatorProtos.AmpLayout.Layout, CssLength) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Calculates the effective width from the input layout and input width.
- calculateWidthForTag(ValidatorProtos.AmpLayout.Layout, CssLength, String) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Calculates the effective width from the input layout, input width and tag.
- Canonicalizer - Class in dev.amp.validator.css
-
Process and validate a css document.
- Canonicalizer(Map<String, CssSpecUtils.BlockType>, CssSpecUtils.BlockType) - Constructor for class dev.amp.validator.css.Canonicalizer
-
Constructor for canonicalizer.
- cdata(String) - Method in class dev.amp.validator.AMPHtmlHandler
-
Callback for cdata.
- cdataMatcher() - Method in class dev.amp.validator.TagStack
-
Returns the cdata matcher for the tag currently on the stack.
- cdataMatcher(Locator) - Method in class dev.amp.validator.ParsedTagSpec
-
If tag has a cdata spec, returns a CdataMatcher, else null.
- CdataMatcher - Class in dev.amp.validator
-
CdataMatcher maintains a constraint to check which an opening tag introduces: a tag's cdata matches constraints set by it's cdata spec.
- CdataMatcher(ParsedTagSpec, Locator) - Constructor for class dev.amp.validator.CdataMatcher
-
Constructor.
- CDC - dev.amp.validator.css.TokenType
-
CDC
- CDO - dev.amp.validator.css.TokenType
-
CDO
- characters(char[], int, int) - Method in class dev.amp.validator.AMPHtmlHandler
-
Processing character data inside an element.
- CHILD - dev.amp.validator.selector.Combinator.CombinatorType
-
CHILD
- childTagMatcher() - Method in class dev.amp.validator.ParsedTagSpec
-
If tag has a child_tag spec, returns a ChildTagMatcher, else null.
- ChildTagMatcher - Class in dev.amp.validator
-
The child tag matcher evaluates ChildTagSpec.
- ChildTagMatcher(ValidatorProtos.TagSpec) - Constructor for class dev.amp.validator.ChildTagMatcher
-
Constructor.
- CLASS_SELECTOR - dev.amp.validator.css.TokenType
-
CLASS_SELECTOR
- ClassSelector - Class in dev.amp.validator.selector
-
A class selector of the form '.value' is a shorthand notation for an attribute match of the form '[class~=value]'.
- ClassSelector(String) - Constructor for class dev.amp.validator.selector.ClassSelector
- cleanup() - Method in class dev.amp.validator.ParsedAttrSpec
-
Clean up reference, improve gc performance.
- cleanup() - Method in class dev.amp.validator.ParsedAttrSpecs
-
Clean up reference, improve gc performance.
- cleanup() - Method in class dev.amp.validator.ParsedHtmlTag
-
Method to nullify object values.
- cleanup() - Method in class dev.amp.validator.ParsedReferencePoints
-
Clean up reference, improve gc performance.
- cleanup() - Method in class dev.amp.validator.ParsedTagSpec
-
Clean up reference, improve gc performance.
- cleanup() - Method in class dev.amp.validator.ParsedUrlSpec
-
Clean up reference, improve gc performance.
- cleanup() - Method in class dev.amp.validator.ParsedValueProperties
-
Clean up reference, improve gc performance.
- cleanup() - Method in class dev.amp.validator.ReferencePointMatcher
-
Clean up reference, improve gc performance.
- cleanup() - Method in class dev.amp.validator.TagStackEntry
-
Clean up reference, improve gc performance.
- CLOSE_CURLY - dev.amp.validator.css.TokenType
-
CLOSE_CURLY
- CLOSE_PAREN - dev.amp.validator.css.TokenType
-
CLOSE_PAREN
- CLOSE_SQUARE - dev.amp.validator.css.TokenType
-
CLOSE_SQUARE
- COLON - dev.amp.validator.css.TokenType
-
COLON
- com.steadystate.css.parser - package com.steadystate.css.parser
-
AMP validator.
- Combinator - Class in dev.amp.validator.selector
-
Models a combinator, as described in http://www.w3.org/TR/css3-selectors/#combinators.
- Combinator(Combinator.CombinatorType, Selector, SimpleSelectorSequence) - Constructor for class dev.amp.validator.selector.Combinator
- COMBINATOR - dev.amp.validator.css.TokenType
-
COMBINATOR
- Combinator.CombinatorType - Enum in dev.amp.validator.selector
-
Types of Combinators
- combinatorTypeForToken(Token) - Static method in class dev.amp.validator.utils.SelectorUtils
-
The CombinatorType for a given token; helper function used when constructing a Combinator instance.
- COMMA - dev.amp.validator.css.TokenType
-
COMMA
- compressEnd() - Method in class com.steadystate.css.parser.ListableTokenManager
-
Compress the tail tokens with the input token to produce a single token, by stepping backwards WHITESPACE tokens until an IDENT token is detected.
- computeCssParsingConfig() - Static method in class dev.amp.validator.css.CssParsingConfig
-
Generates a CssParsingConfig from a CssSpec.
- consume() - Method in class dev.amp.validator.css.TokenStream
-
Function to advance the stream by a token
- consumeAComponentValue(TokenStream, List<Token>, int) - Static method in class dev.amp.validator.css.Canonicalizer
-
Consumes one or more tokens from a tokenStream, appending them to a tokenList.
- consumeAFunction(TokenStream, List<Token>, int) - Static method in class dev.amp.validator.css.Canonicalizer
-
Appends a function's contents to a tokenList, consuming from the stream all those tokens that it adds to the tokenList, including the function token and end grouping token.
- containsUrl() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns true if this tagSpec contains a value_url field.
- Context - Class in dev.amp.validator
-
The Context keeps track of the line / column that the validator is in, as well as the mandatory tag specs that have already been validated.
- Context(ParsedValidatorRules, int) - Constructor for class dev.amp.validator.Context
-
Constructor.
- copyPosTo(Token, Token) - Static method in class dev.amp.validator.css.CssTokenUtil
-
Copies the line / col values of |this| to |other|.
- countDocCssBytes() - Method in class dev.amp.validator.TagStack
-
Returns true if this within lt;style amp-custom gt;.
- createErrorTokenAt(Token, ValidatorProtos.ValidationError.Code, List<String>) - Static method in class dev.amp.validator.visitor.KeyframesVisitor
-
Fills an ErrorToken with the provided position, code, and params.
- createParseErrorTokenAt(Token, ValidatorProtos.ValidationError.Code, List<String>) - Static method in class dev.amp.validator.visitor.Amp4AdsVisitor
-
Fills an ErrorToken with the provided position, code, and params.
- CssErrorHandler - Class in dev.amp.validator.css
-
Error handler for css errors
- CssErrorHandler() - Constructor for class dev.amp.validator.css.CssErrorHandler
- CssLength - Class in dev.amp.validator
-
Parses a width or height layout attribute, for the determining the layout of AMP tags.
- CssLength(String, boolean, boolean) - Constructor for class dev.amp.validator.CssLength
-
Constructor.
- CssParser - Class in dev.amp.validator.css
-
A utility to parse css text into a list of tokens.
- CssParser(String, int, int, List<ErrorToken>) - Constructor for class dev.amp.validator.css.CssParser
-
Constructor.
- CssParsingConfig - Class in dev.amp.validator.css
-
This class holds the CSS parsing configuration.
- CssParsingConfig(Map<String, CssSpecUtils.BlockType>, CssSpecUtils.BlockType) - Constructor for class dev.amp.validator.css.CssParsingConfig
-
Constructor for CssParsingConfig.
- CssSpecUtils - Class in dev.amp.validator.utils
-
Methods to handle Css Spec processing.
- CssSpecUtils.BlockType - Enum in dev.amp.validator.utils
-
Enum describing how to parse the rules inside a CSS AT Rule.
- CssTokenUtil - Class in dev.amp.validator.css
-
General utility methods to map token types to token kinds from cssparser library.
- CssValidationException - Exception in dev.amp.validator.css
-
Css validation exception.
- CssValidationException(String) - Constructor for exception dev.amp.validator.css.CssValidationException
-
Constructor.
- CssValidationException(String, Throwable) - Constructor for exception dev.amp.validator.css.CssValidationException
-
Constructor.
- current() - Method in class dev.amp.validator.css.TokenStream
-
Returns the token at the current position in the token stream.
D
- DASH_MATCH - dev.amp.validator.css.TokenType
-
DASH_MATCH
- Declaration - Class in dev.amp.validator.css
-
Object model for a declaration used to define css.
- Declaration(String) - Constructor for class dev.amp.validator.css.Declaration
-
Constructor of Declaration
- DECLARATION - dev.amp.validator.css.TokenType
-
DECLARATION
- DELIM - dev.amp.validator.css.TokenType
-
DELIM
- DESCENDANT - dev.amp.validator.selector.Combinator.CombinatorType
-
DESCENDANT
- DescendantConstraints - Class in dev.amp.validator
-
Instances of this class specify which tag names (|allowedTags|) are allowed as descendent tags of a particular tag (|tagName|).
- DescendantConstraints(String, List<String>) - Constructor for class dev.amp.validator.DescendantConstraints
-
Constructor.
- dev.amp.validator - package dev.amp.validator
-
AMP validator.
- dev.amp.validator.css - package dev.amp.validator.css
-
AMP validator.
- dev.amp.validator.exception - package dev.amp.validator.exception
-
AMP validator exception package.
- dev.amp.validator.parser - package dev.amp.validator.parser
-
AMP validator.
- dev.amp.validator.selector - package dev.amp.validator.selector
-
AMP validator.
- dev.amp.validator.utils - package dev.amp.validator.utils
-
AMP validator.
- dev.amp.validator.visitor - package dev.amp.validator.visitor
-
AMP validator exception package.
- disabledBy() - Method in class dev.amp.validator.css.ParsedDocCssSpec
- disabledBy() - Method in class dev.amp.validator.ParsedDocSpec
-
get the disabledBy from this spec
- disallowedRelativeUrl(Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in interface dev.amp.validator.UrlErrorAdapter
-
Adding disallowed relative url error.
- disallowedRelativeUrl(Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.UrlErrorInAttrAdapter
-
Adding disallowed relative url error.
- disallowedRelativeUrl(Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.UrlErrorInStylesheetAdapter
-
Adding disallowed relative url error.
- dispatchForTagName(String) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns a TagSpecDispatch for a give tag name.
- DispatchKeyUtils - Class in dev.amp.validator.utils
-
Dispatch key utility methods.
E
- emitMissingExtensionErrors() - Method in class dev.amp.validator.AMPHtmlHandler
-
While parsing the document HEAD, we may accumulate errors which depend on seeing later extension script tags.
- empty() - Method in class dev.amp.validator.ParsedReferencePoints
-
Return true if the parent tag spec's reference point size is empty.
- empty() - Method in class dev.amp.validator.TagSpecDispatch
-
Returns true if dispatch key is not null and tag specs is not empty.
- enabledBy() - Method in class dev.amp.validator.css.ParsedDocCssSpec
- enabledBy() - Method in class dev.amp.validator.ParsedDocSpec
-
get the enabledBy from this spec
- endDocument() - Method in class dev.amp.validator.AMPHtmlHandler
-
Processing the end of the document.
- endElement(String, String, String) - Method in class dev.amp.validator.AMPHtmlHandler
-
Processing the end of an element.
- EOF_TOKEN - dev.amp.validator.css.TokenType
-
EOF_TOKEN
- EOFToken - Class in dev.amp.validator.css
-
Token representation of end of file.
- EOFToken() - Constructor for class dev.amp.validator.css.EOFToken
- error(CSSParseException) - Method in class dev.amp.validator.css.CssErrorHandler
-
Error handler for error
- ERROR - dev.amp.validator.css.TokenType
-
ERROR
- ErrorCodeMetadata - Class in dev.amp.validator
-
Error code meta data data holder.
- ErrorCodeMetadata() - Constructor for class dev.amp.validator.ErrorCodeMetadata
-
Default constructor.
- ErrorToken - Class in dev.amp.validator.css
-
Error tokens carry an error code and parameters, which can be formatted into an error message via the format strings in validator.protoascii.
- ErrorToken(ValidatorProtos.ValidationError.Code, List<String>) - Constructor for class dev.amp.validator.css.ErrorToken
-
Constructor
- excludes() - Method in class dev.amp.validator.ParsedTagSpec
-
A TagSpec may specify that another tag is excluded.
- EXIT_ON_FIRST_ERROR - dev.amp.validator.ExitCondition
-
Exit on first error.
- ExitCondition - Enum in dev.amp.validator
-
Exit condition enumeration types.
- ExitOnFirstErrorException - Exception in dev.amp.validator.exception
-
Exception thrown when the first error occurs.
- ExitOnFirstErrorException() - Constructor for exception dev.amp.validator.exception.ExitOnFirstErrorException
-
Constructor.
- exitParentTag(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ReferencePointMatcher
-
This method gets invoked when we're done with processing all the child tags, so now we can determine whether any reference points remain unsatisfied or duplicate.
- exitTag(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ChildTagMatcher
-
Exit tag.
- exitTag(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.TagStack
-
Upon exiting a tag, validation for the current child tag matcher is triggered, e.g.
- EXTENSION_SCRIPT_NAMES - Static variable in class dev.amp.validator.utils.ExtensionsUtils
-
list of extension script names
- ExtensionMissingError - Class in dev.amp.validator
-
Extension missing error data.
- ExtensionMissingError(String, ValidatorProtos.ValidationError) - Constructor for class dev.amp.validator.ExtensionMissingError
-
Default constructor.
- ExtensionsContext - Class in dev.amp.validator
-
The extensions context keys track of the extensions that the validator has seen, as well as which have been used, which are required to be used, etc.
- ExtensionsContext() - Constructor for class dev.amp.validator.ExtensionsContext
-
A constructor.
- ExtensionsUtils - Class in dev.amp.validator.utils
-
Utils to handle extension validation
- ExtensionsUtils.ScriptReleaseVersion - Enum in dev.amp.validator.utils
- extractAFunction(TokenStream, List<ErrorToken>) - Static method in class dev.amp.validator.utils.SelectorUtils
-
Returns a function's contents in tokenList, including the leading FunctionToken, but excluding the trailing CloseParen token and appended with an EOFToken instead.
- extractImportantDeclarations(Stylesheet, List<Declaration>) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Extracts the declarations marked `!important` within within the provided stylesheet, emitting them into `important`.
- extractUrls(Stylesheet, List<ParsedCssUrl>, List<ErrorToken>) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Extracts the URLs within the provided stylesheet, emitting them into parsedUrls and errors into errors.
- extractUrlsFromDeclaration(Declaration, List<ParsedCssUrl>, List<ErrorToken>) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Same as the stylesheet variant above, but operates on a single declaration at a time.
F
- fatalError(CSSParseException) - Method in class dev.amp.validator.css.CssErrorHandler
-
Error handler for fatal error
- findOrCreatePattern(Map<String, Pattern>, String, boolean) - Method in class dev.amp.validator.ParsedValidatorRules
-
Find the regex pattern from the map.
- firstIdent() - Method in class dev.amp.validator.css.Declaration
-
For a declaration, if the first non-whitespace token is an identifier, returns its string value.
- firstSeenUrlTagName() - Method in class dev.amp.validator.Context
-
The TagSpecName of the first seen URL.
- forEachChild(Consumer<Selector>) - Method in class dev.amp.validator.selector.AttrSelector
- forEachChild(Consumer<Selector>) - Method in class dev.amp.validator.selector.ClassSelector
- forEachChild(Consumer<Selector>) - Method in class dev.amp.validator.selector.Combinator
- forEachChild(Consumer<Selector>) - Method in class dev.amp.validator.selector.IdSelector
- forEachChild(Consumer<Selector>) - Method in class dev.amp.validator.selector.PseudoSelector
- forEachChild(Consumer<Selector>) - Method in class dev.amp.validator.selector.Selector
- forEachChild(Consumer<Selector>) - Method in class dev.amp.validator.selector.SelectorsGroup
-
method to run lambda on all elements
- forEachChild(Consumer<Selector>) - Method in class dev.amp.validator.selector.SimpleSelectorSequence
- forEachChild(Consumer<Selector>) - Method in class dev.amp.validator.selector.TypeSelector
- FULL_PARSING - dev.amp.validator.ExitCondition
-
Full parsing.
- FUNCTION_TOKEN - dev.amp.validator.css.TokenType
-
FUNCTION_TOKEN
G
- GENERAL_SIBLING - dev.amp.validator.selector.Combinator.CombinatorType
-
GENERAL_SIBLING
- getAllowedTags() - Method in class dev.amp.validator.DescendantConstraints
-
Returns the allowed tags.
- getAlsoRequiresTagWarning() - Method in class dev.amp.validator.ParsedTagSpec
-
A TagSpec may specify other tags to be required as well, when that tag is used.
- getAmpLayoutAttrs() - Method in class dev.amp.validator.AMPValidatorManager
-
Returns the $AMP_LAYOUT_ATTRS attr spec list.
- getAmpLayoutAttrs() - Method in class dev.amp.validator.ParsedAttrSpecs
-
Returns the AmpLayout attr list.
- getAmpScriptPath() - Method in class dev.amp.validator.ParsedHtmlTag
-
Returns the script tag path of the 'src' attribute.
- getAtRuleScope() - Method in class dev.amp.validator.css.ParsedCssUrl
-
Getter for rule scope
- getAtRuleSpec() - Method in class dev.amp.validator.css.CssParsingConfig
-
Getter for underlying AtRule spec.
- getAttrList(String) - Method in class dev.amp.validator.AMPValidatorManager
-
Return a list of AttrList given an attribute list name.
- getAttrListByName(String) - Method in class dev.amp.validator.ParsedAttrSpecs
-
Returns the attr list by name.
- getAttrListMap() - Method in class dev.amp.validator.AMPValidatorManager
-
Returns the attr list map.
- getAttrName() - Method in class dev.amp.validator.ParsedAttrSpec
-
Returns unique name for this attr spec.
- getAttrName() - Method in class dev.amp.validator.selector.AttrSelector
-
get token type
- getAttrsByName() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns the map of attrs by name.
- getBestMatchTagSpec() - Method in class dev.amp.validator.ValidateTagResult
-
Return best match tag spec.
- getByTagSpecId(int) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns the ParsedTagSpec given the tag spec id.
- getByTagSpecId(String) - Method in class dev.amp.validator.ParsedValidatorRules
-
Return the ParsedTagSpec given the reference point spec name.
- getCdataMatcher() - Method in class dev.amp.validator.TagStackEntry
-
Getting the Cdata matcher.
- getChildTagMatcher() - Method in class dev.amp.validator.TagStackEntry
-
Getting the child tag matcher.
- getCode() - Method in class dev.amp.validator.css.ErrorToken
-
Getter for error code
- getCol() - Method in class dev.amp.validator.css.Token
-
Returns value column of token.
- getCombinedDisallowedCdataRegex(int) - Method in class dev.amp.validator.AMPValidatorManager
-
Returns a combined disallowed listed regex.
- getCombinedDisallowedCdataRegex(int) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns a combined disallowed regex.
- getCss() - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns the list of Css length spec.
- getCssDeclarationByName() - Method in class dev.amp.validator.css.ParsedDocCssSpec
-
getter for cssDeclarationByName
- getCssDeclarationByName() - Method in class dev.amp.validator.ParsedAttrSpec
-
Returns the CssDeclaration map.
- getCssDeclarationByName(String) - Method in class dev.amp.validator.css.ParsedDocCssSpec
-
Returns the CssDeclaration rules for a matching css declaration name, if is found, else null.
- getCssDeclarationSvgByName(String) - Method in class dev.amp.validator.css.ParsedDocCssSpec
- getCurLexState() - Method in class com.steadystate.css.parser.ListableTokenManager
-
accessor for current lex state, which informs whether the parser is within a comment
- getDeclarations() - Method in class dev.amp.validator.css.QualifiedRule
-
Getter for declarations
- getDefaultSpec() - Method in class dev.amp.validator.css.CssParsingConfig
-
Getter for underlying default spec default spec.
- getDescendantTagLists() - Method in class dev.amp.validator.AMPValidatorManager
-
Returns the descendant tag lists.
- getDescendantTagLists() - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns the descendant tag lists.
- getDispatchKeyByTagSpecId(int) - Method in class dev.amp.validator.AMPValidatorManager
-
Returns dispatch key given tag spec id.
- getDispatchKeyForTagSpecOrNone(ValidatorProtos.TagSpec) - Static method in class dev.amp.validator.utils.DispatchKeyUtils
-
For a provided tag spec, generates its dispatch key.
- getDispatchKeys() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns an array (typically empty) of all unique dispatch keys for this tagspec.
- getDoc() - Method in class dev.amp.validator.ParsedValidatorRules
-
Getter for parsed doc
- getDocByteSize() - Method in class dev.amp.validator.Context
-
Returns the document size from the document locator.
- getElements() - Method in class dev.amp.validator.selector.SelectorsGroup
-
getter for elements
- getErrorCode() - Method in class dev.amp.validator.SrcsetParsingResult
-
Returns the error code.
- getErrors() - Method in class dev.amp.validator.css.CssParser
-
Returns the token errors.
- getErrorToken() - Method in exception dev.amp.validator.selector.SelectorException
- getExtensionName() - Method in class dev.amp.validator.ParsedHtmlTag
-
Returns the extension name.
- getExtensionName() - Method in class dev.amp.validator.ScriptTag
-
Getter for Extension Name
- getExtensionNameAttribute(ValidatorProtos.ExtensionSpec) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Determines the name of the attribute where you find the name of this sort of extension.
- getExtensions() - Method in class dev.amp.validator.Context
- getExtensionVersion() - Method in class dev.amp.validator.ParsedHtmlTag
-
Returns the extension version.
- getExtensionVersion() - Method in class dev.amp.validator.ScriptTag
-
Getter for Extension Version
- getFontUrlSpec() - Method in class dev.amp.validator.css.ParsedDocCssSpec
-
return this doc css fontUrlSpec
- getFormat() - Method in class dev.amp.validator.ErrorCodeMetadata
-
Getting the format.
- getFullMatchCaseiRegex(String) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns full match case insensitive regex pattern.
- getFullMatchRegex(String) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns full match regex pattern.
- getGlobalAttrs() - Method in class dev.amp.validator.AMPValidatorManager
-
Returns the $GLOBAL_ATTRS attr spec list.
- getGlobalAttrs() - Method in class dev.amp.validator.ParsedAttrSpecs
-
Returns the global attr list.
- getHasDescendantConstraintLists() - Method in class dev.amp.validator.TagStackEntry
-
Getting the descendant constraint list.
- getId() - Method in class dev.amp.validator.ParsedTagSpec
-
Return the parsed tag id.
- getImageUrlSpec() - Method in class dev.amp.validator.css.ParsedDocCssSpec
- getImplicitAttrspecs() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns the implicit attr specs.
- getImportant() - Method in class dev.amp.validator.css.Declaration
-
Getter for important value
- getInlineStyleByteSize() - Method in class dev.amp.validator.Context
-
Returns the size of inline styles.
- getInlineStyleCssBytes() - Method in class dev.amp.validator.ValidateTagResult
-
Getter for inlineStyleCssBytes
- getLastChildErrorLineCol() - Method in class dev.amp.validator.TagStackEntry
-
Getting the last child error line col.
- getLastChildTagName() - Method in class dev.amp.validator.TagStackEntry
-
Getting the last child tag name.
- getLastChildUrl() - Method in class dev.amp.validator.TagStackEntry
-
Getting the last child url.
- getLayoutAwaitingSizeClass() - Static method in class dev.amp.validator.utils.TagSpecUtils
- getLayoutClass(ValidatorProtos.AmpLayout.Layout) - Static method in class dev.amp.validator.utils.TagSpecUtils
- getLayoutSizeDefinedClass() - Static method in class dev.amp.validator.utils.TagSpecUtils
- getLine() - Method in class dev.amp.validator.css.Token
-
Getter for Token's line.
- getLineCol() - Method in class dev.amp.validator.CdataMatcher
- getLineCol() - Method in class dev.amp.validator.Context
-
Returns a line/col pair.
- getLineCol() - Method in class dev.amp.validator.ReferencePointMatcher
-
Returns a pair of line/col.
- getListTagSpecByName(ValidatorProtos.HtmlFormat.Code, String) - Method in class dev.amp.validator.AMPValidatorManager
-
Return a list of TagSpec given a tag name.
- getMandatoryAlternativesSatisfied() - Method in class dev.amp.validator.Context
-
The mandatory alternatives that we've satisfied.
- getMandatoryAnyofs() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns the set of mandatoryAnyofs.
- getMandatoryAttrIds() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns the set of mandatoryAttrs.
- getMandatoryOneofs() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns the set of mandatoryOneofs.
- getMandatoryValuePropertyNames() - Method in class dev.amp.validator.ParsedValueProperties
-
Returns a list of mandatory property names.
- getMaybeError() - Method in class dev.amp.validator.ExtensionMissingError
-
Returns the ValidationError of ExtensionMissingError.
- getMirror(Token) - Static method in class dev.amp.validator.css.CssTokenUtil
-
Returns a mirroring character for a token with a reflective match
- getMissingExtension() - Method in class dev.amp.validator.ExtensionMissingError
-
Returns the missing extension generating the ExtensionMissingError.
- getName() - Method in class dev.amp.validator.css.AtRule
-
Getter of name.
- getName() - Method in class dev.amp.validator.css.Declaration
-
Getter for contents of name of declaration
- getName() - Method in class dev.amp.validator.selector.PseudoSelector
-
getter for name
- getNextToken() - Method in class com.steadystate.css.parser.ListableTokenManager
-
Store the token in a list of tokens.
- getNumChildren() - Method in class dev.amp.validator.TagStackEntry
-
Returning the number children count.
- getNumeral() - Method in class dev.amp.validator.CssLength
-
Returns a isNumeral.
- getOnlyChildErrorLineCol() - Method in class dev.amp.validator.TagStackEntry
-
Getting the only child error line col.
- getOnlyChildTagName() - Method in class dev.amp.validator.TagStackEntry
-
Getting the only child tag name.
- getParams() - Method in class dev.amp.validator.css.ErrorToken
-
Getter for error params
- getParsedAttrSpec(String, String, String, ValidatorProtos.AttrSpec) - Method in class dev.amp.validator.ParsedAttrSpecs
-
Returns the ParsedAttrSpec.
- getParsedAttrSpecs() - Method in class dev.amp.validator.ParsedValidatorRules
- getParsedTokens() - Method in class com.steadystate.css.parser.ListableTokenManager
-
Getter for the list of tokens.
- getPartialMatchCaseiRegex(String) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns the partial match case insensitive match regex pattern.
- getPath() - Method in class dev.amp.validator.ScriptTag
-
Getter for path
- getPrelude() - Method in class dev.amp.validator.css.AtRule
-
Getter for prelude.
- getPrelude() - Method in class dev.amp.validator.css.QualifiedRule
-
Getter for the prelude
- getReferencePoint() - Method in class dev.amp.validator.TagStackEntry
-
Getting the parsed tag spec of the reference point.
- getReferencePointMatcher() - Method in class dev.amp.validator.TagStackEntry
-
Getting the reference point matcher.
- getReferencePointName(ValidatorProtos.ReferencePoint) - Method in class dev.amp.validator.ParsedValidatorRules
-
Computes the name for a given reference point.
- getReferencePoints() - Method in class dev.amp.validator.ParsedTagSpec
- getReleaseVersion() - Method in class dev.amp.validator.ScriptTag
-
Getter for release version
- getRules() - Method in class dev.amp.validator.AMPValidatorManager
-
Returns the validation rules.
- getRules() - Method in class dev.amp.validator.Context
-
Returns the ParsedValidatorRules.
- getRules() - Method in class dev.amp.validator.css.QualifiedRule
-
Setter for rules
- getScriptReleaseVersion() - Method in class dev.amp.validator.Context
-
getter for scriptReleaseVersion
- getScriptReleaseVersion() - Method in class dev.amp.validator.ParsedHtmlTag
-
Returns the script release version, otherwise ScriptReleaseVersion.UNKNOWN.
- getScriptSpecUrl() - Method in class dev.amp.validator.AMPValidatorManager
-
Returns the script spec url.
- getScriptSpecUrl() - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns the script spec url.
- getSpec() - Method in class dev.amp.validator.css.ParsedDocCssSpec
- getSpec() - Method in class dev.amp.validator.ParsedAttrSpec
-
Returns the AttrSpec.
- getSpec() - Method in class dev.amp.validator.ParsedTagSpec
-
Getting the TagSpec.
- getSpec() - Method in class dev.amp.validator.ParsedUrlSpec
-
Returns the UrlSpec.
- getSpecificity() - Method in class dev.amp.validator.ErrorCodeMetadata
-
Getting the specificity.
- getSrcsetImages() - Method in class dev.amp.validator.SrcsetParsingResult
-
Returns the srcset images.
- getSrcsetImagesSize() - Method in class dev.amp.validator.SrcsetParsingResult
-
Returns the size of srcset images.
- getStylesSpecUrl() - Method in class dev.amp.validator.AMPValidatorManager
-
Returns the styles spec url.
- getStylesSpecUrl() - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns a styles spec url.
- getStyleTagByteSize() - Method in class dev.amp.validator.Context
-
Returns the size of style amp-custom.
- getTagDescriptiveName(ValidatorProtos.TagSpec) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
For creating error messages, we either find the descriptiveName in the tag spec or fall back to the tagName.
- getTagName() - Method in class dev.amp.validator.DescendantConstraints
-
Returns the tag name.
- getTagName() - Method in class dev.amp.validator.TagStackEntry
-
Getting the tag name.
- getTagSpec() - Method in class dev.amp.validator.CdataMatcher
- getTagSpec() - Method in class dev.amp.validator.TagStackEntry
-
Getting the ParsedTagSpec instance.
- getTagSpec(ValidatorProtos.HtmlFormat.Code, String) - Method in class dev.amp.validator.AMPValidatorManager
-
Return a list of TagSpec given a tag name.
- getTagSpecIdByReferencePointTagSpecName(String) - Method in class dev.amp.validator.AMPValidatorManager
-
Returns the specId for given the tag spec name of the reference point.
- getTagSpecIdByReferencePointTagSpecName(String) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns the tag spec id by reference point tag spec name.
- getTagSpecIdBySpecName(String) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns the spec id by spec name.
- getTagSpecName(ValidatorProtos.TagSpec) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
For creating error messages, we either find the specName in the tag spec or fall back to the tagName.
- getTagspecsValidated() - Method in class dev.amp.validator.Context
-
Returns the tag spec ids that have been validated.
- getTagSpecUrl(ValidatorProtos.TagSpec) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
For creating error URLs, we either find the specUrl in the tag spec or fall back to the extension spec URL if available.
- getTagStack() - Method in class dev.amp.validator.Context
-
Returns the tag stack.
- getTemplateSpecUrl() - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns a template spec url.
- getTokenType() - Method in class dev.amp.validator.css.AtRule
-
Return type of token.
- getTokenType() - Method in class dev.amp.validator.css.Declaration
-
Getter for token type
- getTokenType() - Method in class dev.amp.validator.css.EOFToken
-
Return type of token
- getTokenType() - Method in class dev.amp.validator.css.ErrorToken
-
Getter for token type.
- getTokenType() - Method in class dev.amp.validator.css.ParsedCssUrl
-
return the token type
- getTokenType() - Method in class dev.amp.validator.css.QualifiedRule
-
return the token type of the qualified rule
- getTokenType() - Method in class dev.amp.validator.css.Stylesheet
-
Getter for token type returns stylesheet.
- getTokenType() - Method in class dev.amp.validator.css.Token
-
Overwrite from children class to get token type
- getTokenType() - Method in class dev.amp.validator.selector.AttrSelector
-
get token type
- getTokenType() - Method in class dev.amp.validator.selector.ClassSelector
-
get token type
- getTokenType() - Method in class dev.amp.validator.selector.Combinator
- getTokenType() - Method in class dev.amp.validator.selector.IdSelector
-
get token type
- getTokenType() - Method in class dev.amp.validator.selector.PseudoSelector
-
get token type
- getTokenType() - Method in class dev.amp.validator.selector.SelectorsGroup
- getTokenType() - Method in class dev.amp.validator.selector.SimpleSelectorSequence
- getTokenType() - Method in class dev.amp.validator.selector.TypeSelector
-
Getter for token type returns stylesheet.
- getTokenType(Token) - Static method in class dev.amp.validator.css.CssTokenUtil
-
Overloaded method to return a TokenType, given a CSS3 Token
- getTypeIdentifiers() - Method in class dev.amp.validator.Context
-
Returns the type identifiers in this document.
- getUnit() - Method in class dev.amp.validator.CssLength
-
Returns a isUnit.
- getUrl() - Method in class dev.amp.validator.SrcsetSourceDef
-
Returns the url.
- getUtf8Url() - Method in class dev.amp.validator.css.ParsedCssUrl
-
Getter for url
- getValidationResult() - Method in class dev.amp.validator.ValidateTagResult
-
Getting the validation result.
- getValue() - Method in class dev.amp.validator.css.Declaration
-
Getter for contents of declaration
- getValue() - Method in class dev.amp.validator.css.Token
-
Returns value of token.
- getValue(String, int) - Method in class dev.amp.validator.ParsedHtmlTag
-
Need to replace the value with an empty string if attr name is equal to the value.
- getValuePropertiesOrNull() - Method in class dev.amp.validator.ParsedAttrSpec
-
Returns the ParsedValueProperties.
- getValuePropertyByName() - Method in class dev.amp.validator.ParsedValueProperties
-
Returns the a map of PropertySpec.
- getValueUrlSpec() - Method in class dev.amp.validator.ParsedAttrSpec
-
Returns the ParsedUrlSpec.
- getWidthOrPixelDensity() - Method in class dev.amp.validator.SrcsetSourceDef
-
Returns the width or pixel density.
H
- hasAncestor(String) - Method in class dev.amp.validator.TagStack
-
Returns true if the current tag has ancestor with the given tag name or specName.
- hasAncestorMarker(ValidatorProtos.AncestorMarker.Marker) - Method in class dev.amp.validator.TagStack
-
Returns true if the current tag has an ancestor which set the given marker.
- hasAttrWithName(String) - Method in class dev.amp.validator.ParsedTagSpec
-
Returns if attrsByName contains the mapping keyed name.
- hasDispatchKeys() - Method in class dev.amp.validator.TagSpecDispatch
-
Returns true if tag spec key by dispatch not null.
- hasDuplicateAttrs() - Method in class dev.amp.validator.ParsedHtmlTag
-
Returns a duplicate attribute name if the tag contains two attributes named the same, but with different attribute values.
- HASH - dev.amp.validator.css.TokenType
-
HASH
- hasReferencePoints() - Method in class dev.amp.validator.ParsedTagSpec
-
Return true if reference points not empty.
- hasSeenUrl() - Method in class dev.amp.validator.Context
-
Returns true iff the current context has observed a tag which contains an URL.
- hasTagSpec(ValidatorProtos.HtmlFormat.Code, String) - Method in class dev.amp.validator.AMPValidatorManager
-
Return true if tag spec name exists.
- hasTagSpecs() - Method in class dev.amp.validator.TagSpecDispatch
-
Return true if tag specs not empty.
- hasTagspecsValidated(int) - Method in class dev.amp.validator.Context
-
Returns the boolean value of true if exists.
- hasValidAmpScriptPath() - Method in class dev.amp.validator.ParsedHtmlTag
-
Tests if this tag is a script with a valid AMP script path.
- hasValidPath() - Method in class dev.amp.validator.ScriptTag
-
Getter for hasValidPath
I
- id() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns the parsed tag spec id.
- ID_SELECTOR - dev.amp.validator.css.TokenType
-
ID_SELECTOR
- IDENT - dev.amp.validator.css.TokenType
-
IDENT
- IdSelector - Class in dev.amp.validator.selector
-
An attribute selector matches document nodes based on their attributes.
- IdSelector(String) - Constructor for class dev.amp.validator.selector.IdSelector
- IF_PASSING - dev.amp.validator.RecordValidated
-
IF_PASSING
- ImportantPropertyVisitor - Class in dev.amp.validator.visitor
- ImportantPropertyVisitor(List<Declaration>) - Constructor for class dev.amp.validator.visitor.ImportantPropertyVisitor
-
walk through list of declarations
- INCLUDE_MATCH - dev.amp.validator.css.TokenType
-
INCLUDE_MATCH
- incrementNumChildren() - Method in class dev.amp.validator.TagStackEntry
-
Increment the number children count.
- InvalidDeclVisitor - Class in dev.amp.validator.visitor
- InvalidDeclVisitor(ParsedDocCssSpec, Context, String, ValidatorProtos.ValidationResult.Builder) - Constructor for class dev.amp.validator.visitor.InvalidDeclVisitor
-
Visitor for "important" css element
- InvalidRuleVisitor - Class in dev.amp.validator.visitor
-
Extension of RuleVisitor used to handle an invalid css rule.
- InvalidRuleVisitor(ValidatorProtos.TagSpec, ValidatorProtos.CssSpec, Context, ValidatorProtos.ValidationResult.Builder) - Constructor for class dev.amp.validator.visitor.InvalidRuleVisitor
-
Initialize an InvalidRuleVisitor.
- invalidUrl(Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in interface dev.amp.validator.UrlErrorAdapter
-
Adding invalid url validation error.
- invalidUrl(Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.UrlErrorInAttrAdapter
-
Adding invalid url validation error.
- invalidUrl(Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.UrlErrorInStylesheetAdapter
-
Adding invalid url validation error.
- invalidUrlProtocol(Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in interface dev.amp.validator.UrlErrorAdapter
-
Adding invalid url protocol error.
- invalidUrlProtocol(Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.UrlErrorInAttrAdapter
-
Adding invalid url protocol error.
- invalidUrlProtocol(Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.UrlErrorInStylesheetAdapter
-
Adding invalid url protocol error.
- isAllowedProtocol(String) - Method in class dev.amp.validator.ParsedUrlSpec
-
Returns true if the protocol is found.
- isAmpCacheDomain(String) - Method in class dev.amp.validator.ParsedHtmlTag
-
Tests if this is an AMP Cache domain.
- isAmpDomain() - Method in class dev.amp.validator.ParsedHtmlTag
-
Tests if this tag is a script with a src of an AMP domain.
- isAmpDomain() - Method in class dev.amp.validator.ScriptTag
-
Getter for Amp Domain
- isAmpRuntimeScript() - Method in class dev.amp.validator.ParsedHtmlTag
-
Tests if this is the AMP runtime script tag.
- isAtRuleValid(ValidatorProtos.CssSpec, String) - Method in class dev.amp.validator.visitor.InvalidRuleVisitor
-
Returns true if the given AT rule is considered valid.
- isAuto() - Method in class dev.amp.validator.CssLength
-
Returns isAuto.
- isClass() - Method in class dev.amp.validator.selector.PseudoSelector
-
if is a class
- isDataUrl(String) - Static method in class dev.amp.validator.utils.UrlUtils
-
Returns true iff the passed in URL is a data: protocol URL.
- isDeclarationValid(ValidatorProtos.CssSpec, String) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Returns true if the given Declaration is considered valid.
- isDelim(Token, String) - Static method in class dev.amp.validator.utils.SelectorUtils
-
Helper function for determining whether the provided token is a specific delimiter.
- isDocCssSpecCorrectHtmlFormat(ValidatorProtos.DocCssSpec) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns true if `spec` is usable for the HTML format these rules are built for.
- isDocSpecCorrectHtmlFormat(ValidatorProtos.DocSpec) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns true if `spec` is usable for the HTML format these rules are built for.
- isDocSpecValidForTypeIdentifiers(ParsedDocSpec) - Method in class dev.amp.validator.Context
-
Returns true iff `spec` should be used for the type identifiers recorded in this context, as seen in the document so far.
- isEmpty() - Method in class dev.amp.validator.ParsedHtmlTag
-
Returns true if tag name length is zero.
- isErrorSubset(List<ValidatorProtos.ValidationError>, List<ValidatorProtos.ValidationError>) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns true iff the error codes in errorsB are a subset of the error codes in errorsA.
- isExtensionLoaded(String) - Method in class dev.amp.validator.ExtensionsContext
-
Returns false if the named extension has not yet been loaded.
- isExtensionScript() - Method in class dev.amp.validator.ParsedHtmlTag
-
Tests if this is an extension script tag.
- isFluid() - Method in class dev.amp.validator.CssLength
-
Returns a isFluid.
- isLayoutAwaitingSize(ValidatorProtos.AmpLayout.Layout) - Static method in class dev.amp.validator.utils.TagSpecUtils
- isLayoutSizeDefined(ValidatorProtos.AmpLayout.Layout) - Static method in class dev.amp.validator.utils.TagSpecUtils
- isReferencePoint() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns a boolean whether the this tagSpec has reference point.
- isRuntime() - Method in class dev.amp.validator.ScriptTag
-
Getter for isRuntime
- isScriptTypeJsonChild() - Method in class dev.amp.validator.TagStack
-
Returns true if this within script type=application/json.
- isSet() - Method in class dev.amp.validator.CssLength
-
Returns isSet.
- isSimpleSelectorSequenceStart(Token) - Static method in class dev.amp.validator.utils.SelectorUtils
-
Whether or not the provided token could be the start of a simple selector sequence.
- isSuccess() - Method in class dev.amp.validator.SrcsetParsingResult
-
Returns success flag.
- isTransformed() - Method in class dev.amp.validator.Context
-
Returns true iff "transformed" is a type identifier in this document.
- isTypeIdentifier(String) - Method in class dev.amp.validator.ParsedValidatorRules
-
Checks if maybeTypeIdentifier is contained in rules' typeIdentifiers.
- isTypeJson() - Method in class dev.amp.validator.ParsedTagSpec
-
Returns true if this tagSpec contains an attribute of name "type" and value "application/json".
- isUsedForTypeIdentifiers(List<String>) - Method in class dev.amp.validator.ParsedAttrSpec
-
Returns true if this AttrSpec should be used for the given type identifiers based on the AttrSpec's disabled_by or enabled_by fields.
- isUsedForTypeIdentifiers(List<String>) - Method in class dev.amp.validator.ParsedTagSpec
-
Returns true if this TagSpec should be used for the given type identifiers based on the TagSpec's disabled_by or enabled_by fields.
- isUsedForTypeIdentifiers(List<String>, List<String>, List<String>) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Returns true if this spec should be used for the given type identifiers based on the spec's disabled_by or enabled_by fields.
- isValid() - Method in class dev.amp.validator.CssLength
-
Returns isValid.
- iterate() - Method in class dev.amp.validator.ParsedReferencePoints
-
Return the reference points list.
K
- KeyframesVisitor - Class in dev.amp.validator.visitor
-
A visitor for keyframes at rule.
- KeyframesVisitor(List<ErrorToken>) - Constructor for class dev.amp.validator.visitor.KeyframesVisitor
-
Constructor.
L
- leaveAtRule(AtRule) - Method in class dev.amp.validator.visitor.Amp4AdsVisitor
-
Leave an atRule.
- leaveAtRule(AtRule) - Method in class dev.amp.validator.visitor.KeyframesVisitor
-
Leave an atRule.
- leaveAtRule(AtRule) - Method in interface dev.amp.validator.visitor.RuleVisitor
-
Leave an AtRule.
- leaveAtRule(AtRule) - Method in class dev.amp.validator.visitor.UrlFunctionVisitor
-
Leave an AtRule.
- leaveDeclaration(Declaration) - Method in interface dev.amp.validator.visitor.RuleVisitor
-
Leave a declaration.
- leaveQualifiedRule(QualifiedRule) - Method in interface dev.amp.validator.visitor.RuleVisitor
-
Leave a qualified rule.
- leaveStylesheet(Stylesheet) - Method in interface dev.amp.validator.visitor.RuleVisitor
-
Leave a Stylesheet.
- ListableTokenManager - Class in com.steadystate.css.parser
-
A class to extend the default css parser's manager in order to override the next token method to populate a list of tokens.
- ListableTokenManager(CharStream) - Constructor for class com.steadystate.css.parser.ListableTokenManager
-
Constructor to initialize the list of tokens.
- load(String) - Method in class dev.amp.validator.AMPValidatorLoader
-
Loading the rules.
- loadRule() - Method in class dev.amp.validator.AMPValidatorManager
-
Loading AMP validator main and extensions rules.
- loadRule(String) - Method in class dev.amp.validator.AMPValidatorManager
-
Loading AMP validator main and extensions rules.
- lowerName() - Method in class dev.amp.validator.ParsedHtmlTag
-
Lower-case tag name.
- LTS - dev.amp.validator.utils.ExtensionsUtils.ScriptReleaseVersion
-
LTS
M
- makeDispatchKey(ValidatorProtos.AttrSpec.DispatchKeyType, String, String, String) - Static method in class dev.amp.validator.utils.DispatchKeyUtils
-
DispatchKey represents a tuple of either 1-3 strings: - attribute name - attribute value (optional) - mandatory parent html tag (optional) A Dispatch key can be generated from some validator TagSpecs.
- markUrlSeenFromMatchingTagSpec(ParsedTagSpec) - Method in class dev.amp.validator.Context
-
Records that a Tag was seen which contains an URL.
- match(String, Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.CdataMatcher
-
Matches the provided cdata against what this CdataMatcher expects.
- matchChildTagName(ParsedHtmlTag, Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ChildTagMatcher
-
Matching child tag name.
- matchChildTagName(ParsedHtmlTag, Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.TagStack
-
This method is called as we're visiting a tag; so the matcher we need here is the one provided/specified for the tag parent.
- matchCss(String, ValidatorProtos.CssSpec, Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.CdataMatcher
-
Matches the provided cdata against a CSS specification.
- matchingDispatchKey(String, String, String) - Method in class dev.amp.validator.TagSpecDispatch
-
Looks up a dispatch key as previously registered, returning the corresponding tagSpecIds which are ordered by their specificity of match (e.g.
- matchingDocCssSpec() - Method in class dev.amp.validator.Context
-
Returns the first (there should be at most one) DocCssSpec which matches both the html format and type identifiers recorded so far in this context.
- matchingDocSpec() - Method in class dev.amp.validator.Context
-
Returns the first (there should be at most one) DocSpec which matches both the html format and type identifiers recorded so far in this context.
- MaxParseNodesException - Exception in dev.amp.validator.exception
-
Exception thrown when max (HTML) nodes are encountered.
- MaxParseNodesException() - Constructor for exception dev.amp.validator.exception.MaxParseNodesException
-
Constructor.
- maxSpecificity(List<ValidatorProtos.ValidationError>) - Method in class dev.amp.validator.ParsedValidatorRules
-
A helper function which allows us to compare two candidate results in validateTag to report the results which have the most specific errors.
- maybeEmitCssLengthSpecErrors(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Emits errors for css size limitations across entire document.
- maybeEmitDocSizeErrors(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Emits errors for doc size limitations across entire document.
- maybeEmitGlobalTagValidationErrors(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Emits any validation errors which require a global view (mandatory tags, tags required by other tags, mandatory alternatives).
- maybeEmitMandatoryAlternativesSatisfiedErrors(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Emits errors for tags that are specified as mandatory alternatives.
- maybeEmitMandatoryTagValidationErrors(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Emits errors for tags that are specified to be mandatory.
- maybeEmitRequiresOrExcludesValidationErrors(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Emits errors for tags that specify that another tag is also required or a condition is required to be satisfied.
- maybeEmitValueSetMismatchErrors(Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Emits errors when there is a ValueSetRequirement with no matching ValueSetProvision in the document.
- MediaQueryVisitor - Class in dev.amp.validator.visitor
-
A Vistor class to touch media queries.
- MediaQueryVisitor(List<Token>, List<Token>, List<ErrorToken>) - Constructor for class dev.amp.validator.visitor.MediaQueryVisitor
-
Constructor for media query visitor
- missingExtensionErrors() - Method in class dev.amp.validator.ExtensionsContext
-
Returns a list of errors accrued while processing the head for tags requiring an extension which was not found.
- missingUrl(Context, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in interface dev.amp.validator.UrlErrorAdapter
-
Adding missing url validation error.
- missingUrl(Context, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.UrlErrorInAttrAdapter
-
Adding missing url validation error.
- missingUrl(Context, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.UrlErrorInStylesheetAdapter
-
Adding missing url validation error.
- MODULE_NOMODULE - dev.amp.validator.utils.ExtensionsUtils.ScriptReleaseVersion
-
MODULE_NOMODULE
- MODULE_NOMODULE_LTS - dev.amp.validator.utils.ExtensionsUtils.ScriptReleaseVersion
-
MODULE_NOMODULE
N
- NEVER - dev.amp.validator.RecordValidated
-
NEVER
- next() - Method in class dev.amp.validator.css.TokenStream
-
Returns the token at the next position in the token stream.
- NUMBER - dev.amp.validator.css.TokenType
-
NUMBER
O
- OPEN_CURLY - dev.amp.validator.css.TokenType
-
OPEN_CURLY
- OPEN_PAREN - dev.amp.validator.css.TokenType
-
OPEN_PAREN
- OPEN_SQUARE - dev.amp.validator.css.TokenType
-
OPEN_SQUARE
P
- parentChildCount() - Method in class dev.amp.validator.TagStack
-
The number of children that have been discovered up to now by traversing the stack.
- parentHasChildWithLastChildRule() - Method in class dev.amp.validator.TagStack
- parentHasChildWithNoSiblingRule() - Method in class dev.amp.validator.TagStack
- parentLastChildErrorLineCol() - Method in class dev.amp.validator.TagStack
-
Returns the Locator of the tag that set the 'last child' rule.
- parentLastChildTagName() - Method in class dev.amp.validator.TagStack
- parentLastChildUrl() - Method in class dev.amp.validator.TagStack
- parentOnlyChildErrorLineCol() - Method in class dev.amp.validator.TagStack
-
Returns the parent only child error line col.
- parentOnlyChildTagName() - Method in class dev.amp.validator.TagStack
- parentReferencePointMatcher() - Method in class dev.amp.validator.TagStack
-
Returns the parent stack entry reference point matcher.
- parentSpecUrl() - Method in class dev.amp.validator.ParsedReferencePoints
-
Returns the parent's tag spec url.
- parentStackEntry() - Method in class dev.amp.validator.TagStack
-
The parent of the current stack entry.
- parentTagName() - Method in class dev.amp.validator.TagStack
-
The name of the parent of the current tag.
- parentTagSpecName() - Method in class dev.amp.validator.ParsedReferencePoints
-
Returns the parent's tag spec name.
- parentTagSpecName() - Method in class dev.amp.validator.TagStack
-
The spec_name of the parent of the current tag if one exists, otherwise the tag_name.
- parse(String, ValidatorProtos.HtmlFormat.Code, ExitCondition) - Method in class dev.amp.validator.parser.AMPHtmlParser
-
Parse the input html document and returns validation result.
- parse(String, ValidatorProtos.HtmlFormat.Code, ExitCondition, int) - Method in class dev.amp.validator.parser.AMPHtmlParser
-
Parse the input html document and returns validation result.
- PARSE_AS_DECLARATIONS - dev.amp.validator.utils.CssSpecUtils.BlockType
-
Parse this simple block as a list of declarations
- PARSE_AS_IGNORE - dev.amp.validator.utils.CssSpecUtils.BlockType
-
Ignore this simple block, do not parse.
- PARSE_AS_RULES - dev.amp.validator.utils.CssSpecUtils.BlockType
-
Parse this simple block as a list of rules (Either Qualified Rules or AT Rules)
- parseADeclaration(TokenStream, List<Declaration>, List<ErrorToken>) - Method in class dev.amp.validator.css.Canonicalizer
-
Adds one element to either declarations or errors.
- parseAListOfDeclarations(List<Token>, List<ErrorToken>) - Method in class dev.amp.validator.css.Canonicalizer
-
returns a list of Declarations from css content
- parseAListOfRules(List<Token>, boolean, List<ErrorToken>) - Method in class dev.amp.validator.css.Canonicalizer
-
Parses and returns a list of rules, such as at the top level of a stylesheet.
- parseAnAttrSelector(TokenStream) - Static method in class dev.amp.validator.utils.SelectorUtils
-
tokenStream.current() must be the open square token.
- parseASelector(TokenStream) - Static method in class dev.amp.validator.utils.SelectorUtils
-
The selector production from http://www.w3.org/TR/css3-selectors/#grammar Returns an ErrorToken if no selector is found.
- parseASelectorsGroup(TokenStream) - Static method in class dev.amp.validator.visitor.SelectorVisitor
-
The selectors_group production from http://www.w3.org/TR/css3-selectors/#grammar.
- parseASimpleSelectorSequence(TokenStream) - Static method in class dev.amp.validator.utils.SelectorUtils
-
tokenStream.current must be the first token of the sequence.
- parseAStylesheet(List<Token>, Map<String, CssSpecUtils.BlockType>, CssSpecUtils.BlockType, List<ErrorToken>) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Returns a Stylesheet object with nested parse_css.Rules.
- parseATypeSelector(TokenStream) - Static method in class dev.amp.validator.utils.SelectorUtils
-
tokenStream.current() is the first token of the type selector.
- PARSED_CSS_URL - dev.amp.validator.css.TokenType
-
PARSED_CSS_URL
- ParsedAttrSpec - Class in dev.amp.validator
-
This wrapper class provides access to an AttrSpec and an attribute id which is unique within its context (e.g., it's unique within the ParsedTagSpec).
- ParsedAttrSpec(ValidatorProtos.AttrSpec, String) - Constructor for class dev.amp.validator.ParsedAttrSpec
-
Constructor.
- ParsedAttrSpecs - Class in dev.amp.validator
-
TagSpecs specify attributes that are valid for a particular tag.
- ParsedAttrSpecs(AMPValidatorManager) - Constructor for class dev.amp.validator.ParsedAttrSpecs
-
Constructor.
- ParsedCssUrl - Class in dev.amp.validator.css
-
Used by parse_css.ExtractUrls to return urls it has seen.
- ParsedCssUrl() - Constructor for class dev.amp.validator.css.ParsedCssUrl
-
Constructor for empty css url
- ParsedDocCssSpec - Class in dev.amp.validator.css
-
Wrapper around DocCssSpec.
- ParsedDocCssSpec(ValidatorProtos.DocCssSpec, List<ValidatorProtos.DeclarationList>) - Constructor for class dev.amp.validator.css.ParsedDocCssSpec
-
constructor
- ParsedDocSpec - Class in dev.amp.validator
-
Wrapper around DocSpec.
- ParsedDocSpec(ValidatorProtos.DocSpec) - Constructor for class dev.amp.validator.ParsedDocSpec
- ParsedHtmlTag - Class in dev.amp.validator
-
The AMP HTML ParsedHtmlTag class.
- ParsedHtmlTag(String, Attributes) - Constructor for class dev.amp.validator.ParsedHtmlTag
-
Constructor.
- ParsedReferencePoints - Class in dev.amp.validator
-
Holds the reference points for a particular parent tag spec, including their resolved TagSpec ids.
- ParsedReferencePoints(ValidatorProtos.TagSpec) - Constructor for class dev.amp.validator.ParsedReferencePoints
-
Constructor.
- ParsedTagSpec - Class in dev.amp.validator
-
This class provides access to a TagSpec and a tag id which is unique within its context, the ParsedValidatorRules.
- ParsedTagSpec(ParsedAttrSpecs, RecordValidated, ValidatorProtos.TagSpec, int) - Constructor for class dev.amp.validator.ParsedTagSpec
-
Constructor.
- ParsedUrlSpec - Class in dev.amp.validator
-
ParsedUrlSpec is used for both ParsedAttrSpec and ParsedCdataSpec, to check URLs.
- ParsedUrlSpec(ValidatorProtos.UrlSpec) - Constructor for class dev.amp.validator.ParsedUrlSpec
-
Constructor.
- ParsedValidatorRules - Class in dev.amp.validator
-
This wrapper class provides access to the validation rules.
- ParsedValidatorRules(ValidatorProtos.HtmlFormat.Code, AMPValidatorManager) - Constructor for class dev.amp.validator.ParsedValidatorRules
-
Constructor.
- ParsedValueProperties - Class in dev.amp.validator
-
This class creates a map of property specs key by name.
- ParsedValueProperties(ValidatorProtos.PropertySpecList) - Constructor for class dev.amp.validator.ParsedValueProperties
-
Constructor.
- parseInlineStyle(List<Token>, List<ErrorToken>) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Parse inline style content into Declaration objects.
- parseLayout(String) - Static method in class dev.amp.validator.utils.TagSpecUtils
- parseMediaQueries(Stylesheet, List<Token>, List<Token>, List<ErrorToken>) - Static method in class dev.amp.validator.visitor.MediaQueryVisitor
-
Parses media queries within the provided stylesheet, emitting the set of discovered media types and media features, as well as errors if parsing failed.
- ParserException - Exception in dev.amp.validator.parser
-
/** Exception class for parsing.
- ParserException() - Constructor for exception dev.amp.validator.parser.ParserException
-
Constructs a new exception with
nullas its detail message. - ParserException(String) - Constructor for exception dev.amp.validator.parser.ParserException
-
Constructs a new exception with the specified detail message.
- ParserException(String, Throwable) - Constructor for exception dev.amp.validator.parser.ParserException
-
Constructs a new exception with the specified detail message and cause.
- parseSrcset(String) - Static method in class dev.amp.validator.utils.ParseSrcSetUtils
-
Parses the text representation of srcset into array of SrcsetSourceDef.
- ParseSrcSetUtils - Class in dev.amp.validator.utils
-
Utility class to parse the text representation of srcset.
- parseUrlFunction(List<Token>, int, ParsedCssUrl) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Parses a CSS function token named 'url', including the string and closing paren.
- parseUrlToken(List<Token>, int, ParsedCssUrl) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Parses a CSS URL token; typically takes the form "url(http://foo)".
- populateError(ValidatorProtos.ValidationError.Severity, ValidatorProtos.ValidationError.Code, int, int, List<String>, String) - Static method in class dev.amp.validator.utils.ValidationErrorUtils
-
Construct a ValidationError object from the given argument list.
- populateError(ValidatorProtos.ValidationError.Severity, ValidatorProtos.ValidationError.Code, Locator, List<String>, String) - Static method in class dev.amp.validator.utils.ValidationErrorUtils
-
Construct a ValidationError object from the given argument list.
- PREFIX_MATCH - dev.amp.validator.css.TokenType
-
PREFIX_MATCH
- PSEUDO_SELECTOR - dev.amp.validator.css.TokenType
-
PSEUDO_SELECTOR
- PseudoSelector - Class in dev.amp.validator.selector
-
A pseudo selector can match either pseudo classes or pseudo elements.
- PseudoSelector(boolean, String, List<Token>) - Constructor for class dev.amp.validator.selector.PseudoSelector
-
Constructor.
Q
- QUALIFIED_RULE - dev.amp.validator.css.TokenType
-
QUALIFIED_RULE
- QualifiedRule - Class in dev.amp.validator.css
-
The abstract superclass for all tokens.
- QualifiedRule() - Constructor for class dev.amp.validator.css.QualifiedRule
-
Constructor to initialize empty qualified rule
R
- reconsume() - Method in class dev.amp.validator.css.TokenStream
-
Rewinds to the previous position in the input.
- recordFutureErrorsIfMissing(ParsedTagSpec, Locator) - Method in class dev.amp.validator.ExtensionsContext
-
Record a possible error to report once we have collected all extensions in the document.
- recordMatch(ParsedTagSpec) - Method in class dev.amp.validator.ReferencePointMatcher
-
Record the parsed tag spec id.
- recordTypeIdentifier(String) - Method in class dev.amp.validator.Context
-
Record the type identifier in this document.
- recordUsedExtensions(List<String>) - Method in class dev.amp.validator.ExtensionsContext
-
Records extensions that are used within the document.
- RecordValidated - Enum in dev.amp.validator
-
Record validated enumeration types.
- referencePointMatcher(ParsedValidatorRules, Locator) - Method in class dev.amp.validator.ParsedTagSpec
-
If tag has a reference_point spec, returns a ReferencePointMatcher, else null.
- ReferencePointMatcher - Class in dev.amp.validator
-
A tag may initialize this ReferencePointMatcher with its reference points.
- ReferencePointMatcher(ParsedValidatorRules, ParsedReferencePoints, Locator) - Constructor for class dev.amp.validator.ReferencePointMatcher
-
Constructor.
- registerDispatchKey(String, int) - Method in class dev.amp.validator.TagSpecDispatch
-
Registers a new dispatch key to match a tagspec id
- registerTagSpec(int) - Method in class dev.amp.validator.TagSpecDispatch
-
Registers a new non dispatch key tagspec id.
- requires() - Method in class dev.amp.validator.ParsedTagSpec
-
A TagSpec may specify generic conditions which are required if the tag is present.
- Rule - Class in dev.amp.validator.css
-
Abstract class modeling a css rule.
- Rule() - Constructor for class dev.amp.validator.css.Rule
-
Default constructor
- ruleName() - Method in class dev.amp.validator.css.QualifiedRule
-
concatenate a qualified rule name
- RuleVisitor - Interface in dev.amp.validator.visitor
-
A visitor model implementation for rules to implement.
S
- satisfiesCondition(String) - Method in class dev.amp.validator.Context
- satisfyMandatoryAlternativesFromTagSpec(ParsedTagSpec) - Method in class dev.amp.validator.Context
-
Record that this document contains a tag which is a member of a list of mandatory alternatives.
- ScriptTag - Class in dev.amp.validator
-
Class to define script tags.
- ScriptTag(String, Attributes) - Constructor for class dev.amp.validator.ScriptTag
-
Constructor for ScriptTag
- Selector - Class in dev.amp.validator.selector
-
Abstract super class for CSS Selectors.
- Selector() - Constructor for class dev.amp.validator.selector.Selector
- SelectorException - Exception in dev.amp.validator.selector
-
Selector validation exception.
- SelectorException(ErrorToken) - Constructor for exception dev.amp.validator.selector.SelectorException
-
Constructor.
- SelectorException(String) - Constructor for exception dev.amp.validator.selector.SelectorException
-
Constructor.
- SELECTORS_GROUP - dev.amp.validator.css.TokenType
-
SELECTORS_GROUP
- SelectorsGroup - Class in dev.amp.validator.selector
-
Abstract super class for CSS Selectors.
- SelectorsGroup(ArrayDeque<Selector>) - Constructor for class dev.amp.validator.selector.SelectorsGroup
- SelectorSpecVisitor - Class in dev.amp.validator.visitor
-
A visitor for selector.
- SelectorSpecVisitor(ValidatorProtos.SelectorSpec, List<ErrorToken>) - Constructor for class dev.amp.validator.visitor.SelectorSpecVisitor
- SelectorUtils - Class in dev.amp.validator.utils
-
Methods to handle selector validation.
- SelectorVisitor - Class in dev.amp.validator.visitor
-
A super class for making visitors (by overriding the types of interest).
- SelectorVisitor(List<ErrorToken>) - Constructor for class dev.amp.validator.visitor.SelectorVisitor
- SEMICOLON - dev.amp.validator.css.TokenType
-
SEMICOLON
- setAtRuleScope(String) - Method in class dev.amp.validator.css.ParsedCssUrl
-
setter for rule scope
- setBestMatchTagSpec(ParsedTagSpec) - Method in class dev.amp.validator.ValidateTagResult
-
Setting the best match tag spec.
- setCdataMatcher(CdataMatcher) - Method in class dev.amp.validator.TagStack
-
Sets the cdata matcher for the tag currently on the stack.
- setCdataMatcher(CdataMatcher) - Method in class dev.amp.validator.TagStackEntry
-
Setting the Cdata matcher.
- setChildTagMatcher(ChildTagMatcher) - Method in class dev.amp.validator.TagStack
-
Sets the child tag matcher for the tag currently on the stack.
- setChildTagMatcher(ChildTagMatcher) - Method in class dev.amp.validator.TagStackEntry
-
Setting the child tag matcher.
- setCol(int) - Method in class dev.amp.validator.css.Token
-
Setter for Token's column.
- setDeclarations(List<Declaration>) - Method in class dev.amp.validator.css.AtRule
-
Setter for declarations.
- setDeclarations(List<Declaration>) - Method in class dev.amp.validator.css.QualifiedRule
-
Setter for declarations
- setDefaultSpec(CssSpecUtils.BlockType) - Method in class dev.amp.validator.css.CssParsingConfig
-
Setter for underlying default spec blocktype spec.
- setDescendantConstraintList(ParsedTagSpec, ParsedValidatorRules) - Method in class dev.amp.validator.TagStack
-
Setting the descendant constraint list.
- setDocumentLocator(Locator) - Method in class dev.amp.validator.AMPHtmlHandler
-
Receive a Locator object for document events.
- setEOF(EOFToken) - Method in class dev.amp.validator.css.Stylesheet
-
Setter for eof token of stylesheet
- setErrorCode(ValidatorProtos.ValidationError.Code) - Method in class dev.amp.validator.SrcsetParsingResult
-
Setting the error code.
- setFormat(String) - Method in class dev.amp.validator.ErrorCodeMetadata
-
Setting the format.
- setHasDescendantConstraintLists(boolean) - Method in class dev.amp.validator.TagStackEntry
-
Setting the descendant constraint lists value.
- setImportant(boolean) - Method in class dev.amp.validator.css.Declaration
- setInlineStyleCssBytes(int) - Method in class dev.amp.validator.ValidateTagResult
-
Setter for inlineStyleCssBytes
- setLastChildErrorLineCol(Locator) - Method in class dev.amp.validator.TagStackEntry
-
Setting the last child error line col.
- setLastChildTagName(String) - Method in class dev.amp.validator.TagStackEntry
-
Setting the last child tag name.
- setLastChildUrl(String) - Method in class dev.amp.validator.TagStackEntry
-
Setting the last child url.
- setLine(int) - Method in class dev.amp.validator.css.Token
-
Setter for line value.
- setLineCol(Locator) - Method in class dev.amp.validator.Context
-
Setting the LineCol.
- setOnlyChildErrorLineCol(Locator) - Method in class dev.amp.validator.TagStackEntry
-
Setting the only child error line col.
- setOnlyChildTagName(String) - Method in class dev.amp.validator.TagStackEntry
-
Setting the only child tag name.
- setReferencePoint(ParsedTagSpec) - Method in class dev.amp.validator.TagStackEntry
-
Setting the parsed tag spec of the reference point.
- setReferencePointMatcher(ReferencePointMatcher) - Method in class dev.amp.validator.TagStack
-
Sets the reference point matcher for the tag currently on the stack.
- setReferencePointMatcher(ReferencePointMatcher) - Method in class dev.amp.validator.TagStackEntry
-
Setting the reference point matcher.
- setRules(List<Rule>) - Method in class dev.amp.validator.css.AtRule
-
Setter for rules.
- setRules(List<Rule>) - Method in class dev.amp.validator.css.QualifiedRule
-
Setter for rules
- setRules(List<Rule>) - Method in class dev.amp.validator.css.Stylesheet
-
Setter for rules tokens
- setSpecificity(int) - Method in class dev.amp.validator.ErrorCodeMetadata
-
Setting the specificity.
- setSrcsetImages(List<SrcsetSourceDef>) - Method in class dev.amp.validator.SrcsetParsingResult
-
Setting the srcset images.
- setSuccess(boolean) - Method in class dev.amp.validator.SrcsetParsingResult
-
Setting the success flag.
- setTagSpec(ParsedTagSpec) - Method in class dev.amp.validator.TagStackEntry
-
Setting the parsed tag spec.
- setUtf8Url(String) - Method in class dev.amp.validator.css.ParsedCssUrl
-
setter for url
- setValidationResult(ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ValidateTagResult
-
Setting the validation result.
- shouldRecordTagspecValidated() - Method in class dev.amp.validator.ParsedTagSpec
-
Whether or not the tag should be recorded via Context.recordTagspecValidated_ if it was validated successfully.
- shouldRecordTagspecValidated(ValidatorProtos.TagSpec, int, Map<Object, Boolean>) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
We only track (that is, add them to Context.RecordTagspecValidated) validated tagspecs as necessary.
- SIMPLE_SELECTOR_SEQUENCE - dev.amp.validator.css.TokenType
-
SIMPLE_SELECTOR_SEQUENCE
- SimpleSelectorSequence - Class in dev.amp.validator.selector
-
Models a simple selector sequence, e.g.
- SimpleSelectorSequence(TypeSelector, List<Selector>) - Constructor for class dev.amp.validator.selector.SimpleSelectorSequence
- size() - Method in class dev.amp.validator.ParsedReferencePoints
-
Returns the parent tag spec's reference points size.
- spec() - Method in class dev.amp.validator.ParsedDocSpec
-
getter for doc spec
- specificity(ValidatorProtos.ValidationError.Code) - Method in class dev.amp.validator.ParsedValidatorRules
-
Returns the error code specificity.
- SrcsetParsingResult - Class in dev.amp.validator
-
This class contains the result of srcset parsing.
- SrcsetParsingResult() - Constructor for class dev.amp.validator.SrcsetParsingResult
-
Default constructor.
- SrcsetSourceDef - Class in dev.amp.validator
-
This class contains a single source within a srcset.
- SrcsetSourceDef(String, String) - Constructor for class dev.amp.validator.SrcsetSourceDef
-
Constructor.
- STANDARD - dev.amp.validator.utils.ExtensionsUtils.ScriptReleaseVersion
-
STANDARD
- startDocument() - Method in class dev.amp.validator.AMPHtmlHandler
-
Processing the beginning of the document.
- startElement(String, String, String, Attributes) - Method in class dev.amp.validator.AMPHtmlHandler
-
Processing the start of an element.
- STRING - dev.amp.validator.css.TokenType
-
STRING
- stripMinMax(String) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Strips 'min-' or 'max-' from the start of a media feature identifier, if present.
- stripVendorPrefix(String) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Strips vendor prefixes from identifiers, e.g.
- Stylesheet - Class in dev.amp.validator.css
-
Stylesheet object model.
- Stylesheet() - Constructor for class dev.amp.validator.css.Stylesheet
-
Constructor for empty stylesheet
- STYLESHEET - dev.amp.validator.css.TokenType
-
STYLESHEET
- SUBSTRING_MATCH - dev.amp.validator.css.TokenType
-
SUBSTRING_MATCH
- SUFFIX_MATCH - dev.amp.validator.css.TokenType
-
SUFFIX_MATCH
T
- TagSpecDispatch - Class in dev.amp.validator
-
This class stores the dispatch rules for all TagSpecs with the same tag name.
- TagSpecDispatch() - Constructor for class dev.amp.validator.TagSpecDispatch
-
Constructor.
- TagSpecUtils - Class in dev.amp.validator.utils
-
Tag spec utility methods.
- TagStack - Class in dev.amp.validator
-
This class keeps track of the tag names and ChildTagMatchers as we enter / exit tags in the document.
- TagStack() - Constructor for class dev.amp.validator.TagStack
-
Constructor.
- TagStackEntry - Class in dev.amp.validator
-
This class is the unit definition of the TagStack collection.
- TagStackEntry(String) - Constructor for class dev.amp.validator.TagStackEntry
-
Constructor.
- TagValidationException - Exception in dev.amp.validator.exception
-
Tag validation exception.
- TagValidationException(String) - Constructor for exception dev.amp.validator.exception.TagValidationException
-
Constructor.
- TagValidationException(String, Throwable) - Constructor for exception dev.amp.validator.exception.TagValidationException
-
Constructor.
- tellParentImTheLastChild(String, String, Locator) - Method in class dev.amp.validator.TagStack
-
Tells the parent of the current stack entry that its last child must be me (the current stack entry).
- tellParentNoSiblingsAllowed(String, Locator) - Method in class dev.amp.validator.TagStack
-
Tells the parent of the current stack entry that it can only have 1 child and that child must be me (the current stack entry).
- toCSSParseException(TokenMgrError) - Method in class dev.amp.validator.css.CssParser
- toCSSParseException(String, ParseException) - Method in class dev.amp.validator.css.CssParser
-
Override to handle specific validation errors encountered during tokenization.
- Token - Class in dev.amp.validator.css
-
The abstract superclass for all tokens.
- Token() - Constructor for class dev.amp.validator.css.Token
-
Constructor for Token object, sets default location values
- tokenAt(int) - Method in class dev.amp.validator.css.TokenStream
-
Returns the token at an absolute position in the token stream.
- tokenize() - Method in class dev.amp.validator.css.CssParser
-
Generates a list of cssparser Tokens extracted from cssText.
- TokenStream - Class in dev.amp.validator.css
-
Class to manage a list of tokens as a stream with accessors to iterate through stream.
- TokenStream(List<Token>) - Constructor for class dev.amp.validator.css.TokenStream
-
Constructor to initialize stream with underlying token list.
- TokenType - Enum in dev.amp.validator.css
-
Token enumeration types.
- toString() - Method in class dev.amp.validator.css.Token
- toString() - Method in class dev.amp.validator.selector.ClassSelector
-
generates a string representation
- toString() - Method in class dev.amp.validator.selector.IdSelector
-
generates a string representation
- toString() - Method in class dev.amp.validator.selector.TypeSelector
-
Serializes the selector to a string (in this case CSS syntax that could be used to recreate it).
- TYPE_SELECTOR - dev.amp.validator.css.TokenType
-
TYPE_SELECTOR
- TypeSelector - Class in dev.amp.validator.selector
-
This node models type selectors and universal selectors.
- TypeSelector(String, String) - Constructor for class dev.amp.validator.selector.TypeSelector
-
Choices for namespacePrefix: - 'a specific namespace prefix' means 'just that specific namespace'.
U
- UNKNOWN - dev.amp.validator.css.TokenType
-
UNKNOWN
- UNKNOWN - dev.amp.validator.utils.ExtensionsUtils.ScriptReleaseVersion
-
UNKNOWN
- unusedExtensionsRequired() - Method in class dev.amp.validator.ExtensionsContext
-
Returns a list of unused extensions which produce validation errors when unused.
- updateFromTagResult(ValidateTagResult) - Method in class dev.amp.validator.ExtensionsContext
-
Update ExtensionContext state when we encounter an amp extension or tag using an extension.
- updateFromTagResults(ParsedHtmlTag, ValidateTagResult, ValidateTagResult) - Method in class dev.amp.validator.Context
-
Given the tagResult from validating a single tag, update the overall result as well as the Context state to affect later validation.
- updateFromTagResults(ParsedHtmlTag, ValidateTagResult, ValidateTagResult, ParsedValidatorRules, Locator) - Method in class dev.amp.validator.TagStack
-
Update tagstack state after validating an encountered tag.
- updateStackEntryFromTagResult(ValidateTagResult, ParsedValidatorRules, Locator) - Method in class dev.amp.validator.TagStack
-
Given a ValidateTagResult, update the tag stack entry at the top of the tag stack to add any constraints from the spec.
- upperName() - Method in class dev.amp.validator.ParsedHtmlTag
-
Upper-case tag name.
- URL - dev.amp.validator.css.TokenType
-
URL
- UrlErrorAdapter - Interface in dev.amp.validator
-
An url error adaptor interface.
- UrlErrorInAttrAdapter - Class in dev.amp.validator
-
URL error in attribute adaptor.
- UrlErrorInAttrAdapter(String) - Constructor for class dev.amp.validator.UrlErrorInAttrAdapter
-
Constructor.
- UrlErrorInStylesheetAdapter - Class in dev.amp.validator
-
URL error in stylesheet adapter.
- UrlErrorInStylesheetAdapter(int, int) - Constructor for class dev.amp.validator.UrlErrorInStylesheetAdapter
-
Constructor.
- UrlFunctionVisitor - Class in dev.amp.validator.visitor
-
Helper class for implementing extractUrls.
- UrlFunctionVisitor(List<ParsedCssUrl>, List<ErrorToken>) - Constructor for class dev.amp.validator.visitor.UrlFunctionVisitor
- UrlUtils - Class in dev.amp.validator.utils
-
Functions to extract information from urls.
V
- validateAmp4AdsCss(Stylesheet, List<ErrorToken>) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
validate a css document against amp4ads specs
- validateAmpScriptSrcAttr(ParsedHtmlTag, String, ValidatorProtos.TagSpec, Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.ExtensionsUtils
-
Validates the 'src' attribute for AMP JavaScript (Runtime and Extensions) script tags.
- validateAncestorTags(ParsedTagSpec, Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Validates if the tag ancestors satisfied the spec.
- validateAttrCss(ParsedAttrSpec, Context, ValidatorProtos.TagSpec, String, String, ValidateTagResult) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
Helper method for ValidateAttributes.
- validateAttrDeclaration(ParsedAttrSpec, Context, String, String, String, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Helper method for ValidateAttributes.
- validateAttributes(ParsedTagSpec, ParsedTagSpec, Context, ParsedHtmlTag, ValidateTagResult) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Validates whether the attributes set on |encountered_tag| conform to this tag specification.
- validateAttrInExtension(ValidatorProtos.TagSpec, String, String) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Validates whether an encountered attribute is validated by an ExtensionSpec.
- validateAttrNotFoundInSpec(ParsedTagSpec, Context, String, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Helper method for validateAttributes, for when an attribute is encountered which is not specified by the validator.protoascii specification.
- validateAttrRequiredExtensions(ParsedAttrSpec, Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
If this attribute requires an extension and we have processed all extensions, report an error if that extension has not been loaded.
- validateAttrValueBelowTemplateTag(ParsedTagSpec, Context, String, String, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Specific checks for attribute values descending from a template tag.
- validateAttrValueProperties(ParsedValueProperties, Context, String, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Helper method for validateNonTemplateAttrValueAgainstSpec.
- validateAttrValueUrl(ParsedAttrSpec, Context, String, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Helper method for validateNonTemplateAttrValueAgainstSpec.
- validateDescendantTags(ParsedHtmlTag, ParsedTagSpec, Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Validates that this tag is an allowed descendant tag type.
- validateHtmlTag(ParsedHtmlTag, Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Validates the HTML tag for type identifiers.
- validateKeyframesCss(Stylesheet, List<ErrorToken>) - Static method in class dev.amp.validator.utils.CssSpecUtils
-
validate the keyframes of css content
- validateLastChildTags(Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Validates if the 'last child' rule exists.
- validateLayout(ParsedTagSpec, Context, ParsedHtmlTag, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
Validates the layout for the given tag.
- validateNonTemplateAttrValueAgainstSpec(ParsedAttrSpec, Context, String, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
-
This is the main validation procedure for attributes, operating with a ParsedAttrSpec instance.
- validateNoSiblingsAllowedTags(ParsedTagSpec, Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Validates if the 'no siblings allowed' rule exists.
- validateParentTag(ParsedTagSpec, Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Validates whether the parent tag satisfied the spec (e.g., some tags can only appear in head).
- validateRequiredExtensions(ParsedTagSpec, Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
If this tag requires an extension and we have processed all extensions, report an error if that extension has not been loaded.
- validateSsrLayout(ValidatorProtos.TagSpec, ParsedHtmlTag, ValidatorProtos.AmpLayout.Layout, CssLength, CssLength, String, String, Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Helper method for validateLayout.
- validateTag(Context, ParsedHtmlTag, ParsedTagSpec) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Validates the provided |tagName| with respect to the tag specifications in the validator's rules, returning a ValidationResult with errors for this tag and a PASS or FAIL status.
- validateTag(ParsedHtmlTag, Context) - Method in class dev.amp.validator.ReferencePointMatcher
-
This method gets invoked when matching a child tag of the parent that is specifying / requiring the reference points.
- validateTagAgainstSpec(ParsedTagSpec, ParsedTagSpec, Context, ParsedHtmlTag) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Validates the provided |tagName| with respect to a single tag specification.
- ValidateTagResult - Class in dev.amp.validator
-
This class contains the validation result and the best match tag spec.
- ValidateTagResult(ValidatorProtos.ValidationResult.Builder, ParsedTagSpec) - Constructor for class dev.amp.validator.ValidateTagResult
-
Constructor.
- validateTypeIdentifiers(Attributes, List<String>, Context, ValidatorProtos.ValidationResult.Builder) - Method in class dev.amp.validator.ParsedValidatorRules
-
Validates type identifiers within a set of attributes, adding ValidationErrors as necessary, and sets type identifiers on ValidationResult.typeIdentifier.
- validateUniqueness(ParsedTagSpec, Context, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.TagSpecUtils
-
Check for duplicates of tags that should be unique, reporting errors for the second instance of each unique tag.
- validateUrlAndProtocol(ParsedUrlSpec, UrlErrorAdapter, Context, String, ValidatorProtos.TagSpec, ValidatorProtos.ValidationResult.Builder) - Static method in class dev.amp.validator.utils.AttributeSpecUtils
- ValidationErrorUtils - Class in dev.amp.validator.utils
-
Validation error utility methods.
- validationResult() - Method in class dev.amp.validator.AMPHtmlHandler
-
Returns the validation result.
- ValidatorException - Exception in dev.amp.validator.exception
-
Validator exception.
- ValidatorException(String) - Constructor for exception dev.amp.validator.exception.ValidatorException
-
Constructor.
- ValidatorException(String, Throwable) - Constructor for exception dev.amp.validator.exception.ValidatorException
-
Constructor.
- valueOf(String) - Static method in enum dev.amp.validator.css.TokenType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum dev.amp.validator.ExitCondition
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum dev.amp.validator.RecordValidated
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum dev.amp.validator.selector.Combinator.CombinatorType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum dev.amp.validator.utils.CssSpecUtils.BlockType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum dev.amp.validator.utils.ExtensionsUtils.ScriptReleaseVersion
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum dev.amp.validator.css.TokenType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum dev.amp.validator.ExitCondition
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum dev.amp.validator.RecordValidated
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum dev.amp.validator.selector.Combinator.CombinatorType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum dev.amp.validator.utils.CssSpecUtils.BlockType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum dev.amp.validator.utils.ExtensionsUtils.ScriptReleaseVersion
-
Returns an array containing the constants of this enum type, in the order they are declared.
- valueSetsProvided() - Method in class dev.amp.validator.Context
-
Returns all the value set provisions so far, as a set of derived keys, as computed by keyFromValueSetProvision_().
- valueSetsRequired() - Method in class dev.amp.validator.Context
-
Returns all the value set requirements so far, keyed by derived keys, as computed by getValueSetProvisionKey().
- visitAtRule(AtRule) - Method in class dev.amp.validator.visitor.Amp4AdsVisitor
-
Visit a rule.
- visitAtRule(AtRule) - Method in class dev.amp.validator.visitor.InvalidRuleVisitor
-
Visit an atRule
- visitAtRule(AtRule) - Method in class dev.amp.validator.visitor.KeyframesVisitor
-
Visit an atRule.
- visitAtRule(AtRule) - Method in class dev.amp.validator.visitor.MediaQueryVisitor
-
Visit an AtRule.
- visitAtRule(AtRule) - Method in interface dev.amp.validator.visitor.RuleVisitor
-
Visit an AtRule.
- visitAtRule(AtRule) - Method in class dev.amp.validator.visitor.UrlFunctionVisitor
-
Visit an AtRule.
- visitAttrSelector(AttrSelector) - Method in class dev.amp.validator.visitor.SelectorSpecVisitor
-
visitor for attr selector
- visitAttrSelector(AttrSelector) - Method in class dev.amp.validator.visitor.SelectorVisitor
- visitClassSelector(ClassSelector) - Method in class dev.amp.validator.visitor.SelectorSpecVisitor
- visitClassSelector(ClassSelector) - Method in class dev.amp.validator.visitor.SelectorVisitor
- visitCombinator(Combinator) - Method in class dev.amp.validator.visitor.SelectorSpecVisitor
- visitCombinator(Combinator) - Method in class dev.amp.validator.visitor.SelectorVisitor
- visitDeclaration(Declaration) - Method in class dev.amp.validator.visitor.Amp4AdsVisitor
-
Visit a declaration.
- visitDeclaration(Declaration) - Method in class dev.amp.validator.visitor.ImportantPropertyVisitor
-
visits a declaration
- visitDeclaration(Declaration) - Method in class dev.amp.validator.visitor.InvalidDeclVisitor
-
visitDeclaration implementation
- visitDeclaration(Declaration) - Method in class dev.amp.validator.visitor.InvalidRuleVisitor
-
Touches a Declaration
- visitDeclaration(Declaration) - Method in interface dev.amp.validator.visitor.RuleVisitor
-
Visit a declaration.
- visitDeclaration(Declaration) - Method in class dev.amp.validator.visitor.UrlFunctionVisitor
-
Visit a declaration rule.
- visitIdSelector(IdSelector) - Method in class dev.amp.validator.visitor.SelectorSpecVisitor
- visitIdSelector(IdSelector) - Method in class dev.amp.validator.visitor.SelectorVisitor
- visitPseudoSelector(PseudoSelector) - Method in class dev.amp.validator.visitor.SelectorSpecVisitor
-
visitor for pseudo selector
- visitPseudoSelector(PseudoSelector) - Method in class dev.amp.validator.visitor.SelectorVisitor
- visitQualifiedRule(QualifiedRule) - Method in class dev.amp.validator.visitor.Amp4AdsVisitor
-
Visit a qualified rule.
- visitQualifiedRule(QualifiedRule) - Method in class dev.amp.validator.visitor.KeyframesVisitor
-
visit a qualified rule
- visitQualifiedRule(QualifiedRule) - Method in interface dev.amp.validator.visitor.RuleVisitor
-
Visit a QualifiedRule.
- visitQualifiedRule(QualifiedRule) - Method in class dev.amp.validator.visitor.SelectorVisitor
- visitQualifiedRule(QualifiedRule) - Method in class dev.amp.validator.visitor.UrlFunctionVisitor
-
Visit a qualified rule.
- visitSelectorsGroup(Selector) - Method in class dev.amp.validator.visitor.SelectorSpecVisitor
- visitSelectorsGroup(Selector) - Method in class dev.amp.validator.visitor.SelectorVisitor
- visitSimpleSelectorSequence(SimpleSelectorSequence) - Method in class dev.amp.validator.visitor.SelectorSpecVisitor
- visitSimpleSelectorSequence(SimpleSelectorSequence) - Method in class dev.amp.validator.visitor.SelectorVisitor
- visitStylesheet(Stylesheet) - Method in interface dev.amp.validator.visitor.RuleVisitor
-
Visit a Stylesheet.
- visitTypeSelector(TypeSelector) - Method in class dev.amp.validator.visitor.SelectorSpecVisitor
- visitTypeSelector(TypeSelector) - Method in class dev.amp.validator.visitor.SelectorVisitor
W
- warning(CSSParseException) - Method in class dev.amp.validator.css.CssErrorHandler
-
Error handler for warning
- WHITESPACE - dev.amp.validator.css.TokenType
-
WHITESPACE
All Classes All Packages