css-sanitizer
Classes to parse and sanitize CSS
Loading...
Searching...
No Matches
Wikimedia\CSS\Grammar\Juxtaposition Class Reference

Matcher that groups other matchers (juxtaposition) More...

+ Inheritance diagram for Wikimedia\CSS\Grammar\Juxtaposition:
+ Collaboration diagram for Wikimedia\CSS\Grammar\Juxtaposition:

Public Member Functions

 __construct (array $matchers, $commas=false)
 
- Public Member Functions inherited from Wikimedia\CSS\Grammar\Matcher
 capture ( $captureName)
 Return a copy of this matcher that will capture its matches.
 
 matchAgainst (ComponentValueList $values, array $options=[])
 Match against a list of ComponentValues.
 
 getDefaultOptions ()
 Fetch the default options for this Matcher.
 
 setDefaultOptions (array $options)
 Set the default options for this Matcher.
 

Protected Attributes

 $matchers
 
 $commas
 
- Protected Attributes inherited from Wikimedia\CSS\Grammar\Matcher
 $captureName = null
 
 $defaultOptions
 

Additional Inherited Members

- Static Public Member Functions inherited from Wikimedia\CSS\Grammar\Matcher
static create (... $args)
 Create an instance.
 
- Protected Member Functions inherited from Wikimedia\CSS\Grammar\Matcher
 next (ComponentValueList $values, $start, array $options)
 Find the next ComponentValue in the input, possibly skipping whitespace.
 
 makeMatch (ComponentValueList $list, $start, $end, ?GrammarMatch $submatch=null, array $stack=[])
 Create a GrammarMatch.
 
 generateMatches (ComponentValueList $values, $start, array $options)
 Match against a list of ComponentValues.
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\CSS\Grammar\Juxtaposition::__construct ( array $matchers,
$commas = false )
Parameters
Matcher[]$matchers
bool$commasWhether matches are comma-separated

The documentation for this class was generated from the following file: