All Classes and Interfaces

Class
Description
Check shorthand rule declarations that define positional values, such as padding and margin, and eliminate duplicate values if possible.
An abstract class that is designed to be extended by classes that provide a command line interface to the CSS parser.
Base parser implementation that delegates management of the underlying JavaCC parser to the subclass.
 
A BasicErrorManager that makes its errors and warnings accessible to clients.
A handler for at rules.
A compiler pass that automatically detects certain properties that need additional browser specific property declarations, and adds them.
A basic error manager that sorts all errors reported to it and generate a sorted report when the BasicErrorManager.generateReport() method is called.
Compiler pass that BiDi flips all the flippable nodes.
An evaluator for boolean expressions.
A utility for the AutoExpandBrowserPrefix pass, which provides a list of rules that govern automatic addition of browser specific property declarations.
A utility for the AutoExpandBrowserPrefix pass, which provides a list of rules that govern automatic addition of browser specific property declarations.
This interface describes a character stream that maintains line and column number positions of the characters.
CheckDependencyNodes ensures that @provide nodes appear before @require nodes.
A compiler pass that checks for missing @require lines for def constant references and mixins.
Interface to annotate CSS nodes with target CSS chunk id.
ClosureCommandLineCompiler is the command-line compiler for Closure Stylesheets.
 
Class to write/delete characters used by CodePrinter subclasses to print out code.
An abstract code-printer for CssTree instances that provides read/write access to the output buffer and performs common tasks during code generation, like creating sourcemaps.
A pass that collects the constant definitions inside the tree.
Compiler pass that collects all mixin definitions and afterwards provides a mapping of mixin definition names to CssMixinDefinitionNode instances.
A compiler pass to help find missing @require lines for def constant references and mixins.
Compiler pass that optimizes color values.
A compact-printer for CssTree instances.
A compact-printer for CssTree instances.
A container for GSS constant definitions, since a constant could be defined multiple times in the tree, this class has two set of interfaces that can be used to get either all definitions of a constant or only last definition of a constant.
A compiler pass that transforms each well-formed @component or @abstract_component CssUnknownAtRuleNode into a CssComponentNode.
A compiler pass that replaces each @if, @elseif, and @else CssUnknownAtRuleNode with appropriate conditional nodes (CssConditionalBlockNode and CssConditionalRuleNode).
A compiler pass that transforms each upper-cased CssLiteralNode to a CssConstantReferenceNode.
A compiler pass that transforms each well-formed @def CssUnknownAtRuleNode to a CssDefinitionNode.
A compiler pass that replaces each @for with a CssForLoopRuleNode.
A compiler pass that transforms matching CssUnknownAtRuleNode instances into mixins or mixin definitions.
A compiler pass that transforms standard CssUnknownAtRuleNode instances to more specific at-rule nodes, or deletes them.
Compiler pass which duplicates @keyframes rules creating browser specific prefixed form.
An abstract representation of a list of nodes that are enclosed inside braces.
A node corresponding to an at-rule such as @if or @media.
The Types of at-rules we (should/could) know about.
A CssRefinerNode implementation that represents an attribute selector.
Determines how the given value has to match the value of the attribute so that the attribute is selected.
A CssAbstractBlockNode that contains only rulesets and @-rules.
A node representing a boolean expression to evaluate.
Boolean expression node types.
 
Compiler pass that does CSS class renaming given a renaming map.
A CssRefinerNode implementation that represents a selector for a class.
Specifies the kind or absence of a component scoping prefix.
A node representing a combinator of selectors in the AST.
Contains the list of all possible CSS combinators.
Node corresponding to a comment.
 
 
Indicates how we want to construct the prefix strings for this component.
A node that contains a list of value nodes that together represent one logical value.
Recognized operators.
A node representing a (complex) conditional block.
A node representing a conditional rule such as @if or @else.
A node holding a reference to a constant or an argument of a mixin definition.
A node representing a custom GSS function call.
Copy-on-Write proxy for CssCustomFunctionNode used to avoid copying of function call subtrees in ReplaceConstantReferences pass.
A CssAbstractBlockNode that contains only declarations, @-rules, and conditional blocks.
A node representing a CSS declaration in the abstract syntax tree.
A node representing a GSS definition.
CssFontFaceNode corresponds to a @font-face declaration in CSS.
A node representing a @for loop rule.
A list of nodes that are arguments of a function.
A node representing a function.
Contains the list of recognized CSS functions.
Node corresponding to a hex color.
A CssRefinerNode implementation that represents a selector for an id.
A list of nodes that contains only import rules.
A node representing an @import rule.
A node representing a keyframe style rule.
A node representing an @-webkit-keyframes rule.
A list of nodes that contains only keys (for keyframes).
A node representing a key (for keyframes) in the AST.
A node that holds a CSS literal.
A node that is a reference to a for loop variable.
A CSS node that holds a mathematical expression.
A node representing an @media rule.
A node representing a mixin definition.
A node representing a mixin.
A node of the abstract syntax tree.
Represents a list of nodes.
A CSS node containing a numeric value such as height, width, length, or percentage values.
A node representing an @page rule.
A node representing a page selector @-rule that can be used inside an @page rule.
A handler for parse events in the spirit of SAC and SAX.
Builds a boolean expression.
Builds an expression.
Builds an import.
Builds a media rule.
Node representing the priority of a declaration.
Types of priority
A node representing a CSS property, such as background or padding.
A list of values for a property in a declaration.
CssProvideNode corresponds to a @provide declaration in GSS.
A CssRefinerNode implementation that represents a pseudo-class.
Determines if the pseudo-class is a function and if so which one.
A CssRefinerNode implementation that represents a pseudo-element.
A list of nodes that are refiners of a selector.
A node representing a refiner of a selector in the AST.
Contains the list of all possible CSS refiners.
CssRequireNode corresponds to a @require declaration in GSS.
The root of a node.
A node representing a style rule.
A list of nodes that contains only selectors.
A node representing a selector in the AST.
The specifity of a selector is used to select among rules with the same importance and origin.
 
Node corresponding to a string value.
CSS syntax permits strings to be expressed either using single-quotes or double-quotes.
A mutable abstract syntax tree that corresponds to a CSS input file.
 
Visitor interface for CSS abstract syntax trees.
A node that represent a unicode range.
An unknown or generic at-rule node.
A CSS node that holds a value of some sort.
DefaultCommandLineCompiler provides the CSS parser from command line interface to users.
An error message handler.
DefaultExitCodeHandler is a default implementation of ExitCodeHandler that uses System.exit(int).
Provides the default set of functions that are bundled with Closure Stylesheets.
Class to collect and generate source map(v3) for Gss compiler.
Visits everything and does nothing.
Printer for definition nodes, which outputs GSS definitions so that they can be re-parsed later.
Dispatches to multiple CssTreeVisitors.
Compiler pass that reports an error if a ruleset has two of the same declarations that are not marked as alternate.
DummyErrorManager is a stateless error manager suitable for use in the Null Object pattern.
A compiler pass that eliminates the conditional blocks for which the boolean expression does not evaluate to true.
A compiler pass that eliminates the empty ruleset nodes.
A compiler pass that eliminates useless units from 0.
Compiler pass that removes useless ruleset nodes from the AST.
A visitor that maps nodes to their visit ordering.
The error manager is in charge of storing, organizing and displaying errors.
 
Evaluates integer constants provided typically through command line.
ExitCodeHandler handles a request to exit with a specified exit code.
Compiler pass that replaces font and font-family declaration subtrees so that the tree structure resembles the (rather idiosyncratic) grammar of the corresponding CSS properties.
Properties whose values may be specified in a Font declaration.
Specifies how the input tree should be interpreted.
GSS parser error description.
A String template, together with values for the template holes.
Encapsulates a custom function callable from GSS stylesheet files.
Exception class to be thrown by Gss functions.
Provides maps of custom GSS functions for use with command-line compilers.
Container for common GSS functions.
Implementation of the addHsbToCssColor GSS function.
The "add()" function adds a list of numeric values.
Implementation of the adjustBrightness GSS function.
Base implementation of the color blending GSS function.
Abstract base class providing HSL color space manipulation functions.
Implementation of the blendColorsHsb GSS function.
Implementation of the blendColorsRgb GSS function.
Implementation of the concat(…) GssFunction.
Decrease the lightness of a color.
Decrease the saturation of the specified color.
A GssFunction that returns the quotient of its arguments.
Convert the color to a grayscale (desaturation with amount of 100).
Increase the lightness of a color.
The "makeContrastingColor" function generates a contrasting color with the same hue as the input color.
Implementation of the makeMutedColor GSS function.
Takes an input color and sets its alpha component without affecting the RGB components.
A GssFunction that returns the max value from its list of arguments.
A GssFunction that returns the min value from its list of arguments.
A GssFunction that returns the product of its arguments.
Increase the saturation of the specified color.
Allows the equivalent of the ternary operator in GSS, using three @def statements as inputs.
Increase or decrease the hue of a color.
The "sub()" function subtracts a list of numeric values.
A wrapper around the JavaCC generated GSS parser.
A parser that recognizes GSS files and builds the new AST.
Token literal values and constants.
Token Manager.
 
Interface to collect and generate source map for CssNode in Gss compiler.
Compiler pass that throws an error for any CssConstantReferenceNode that do not have a corresponding CssDefinitionNode.
Compiler pass that handles remaining CssUnknownAtRuleNode instances by optionally reporting them as errors and optionally removing them.
 
IdentitySubstitutionMap is a trivial implementation of SubstitutionMap that returns the key as the value for the requested key.
Provides inputs and options to Closure Stylesheets.
The input orientation.
The optimization strategy.
The output format.
The output orientation.
The source map generation levels.
Aids in the creation of inputs for the compiler.
Gives access to a node's location in the original source code.
A pass for finding an approximation to a minimum-size SourceCodeLocation interval that contains a given node.
Pass which marks which ChunkAware nodes belong to which chunk.
Compiler pass that traverses the tree and marks as default the value nodes in a definition that has the corresponding annotation.
Compiler pass that traverses the tree and marks as non flippable the nodes that should not be BiDi flipped.
Compiler pass that marks the ruleset nodes that should be removed from the tree.
Compiler pass that marks ruleset nodes that should be removed from the tree, within the confines of a single chunk.
Compiler pass that merges adjacent ruleset nodes that have the same selector.
Compiler pass that merges adjacent ruleset nodes that have the same selector.
MinimalSubstitutionMap is a SubstitutionMap that renames CSS classes to the shortest string possible.
MultipleMappingSubstitutionMap is a special type of SubstitutionMap that can create multiple mappings for a single lookup.
Contains both the value and mappings returned by MultipleMappingSubstitutionMap.getValueWithMappings(String).
 
Null class implements GssSourceMapGenerator.
Defines the values for the --output-renaming-map-format flag in Closure Stylesheets.
This exception is thrown when parse errors are encountered.
PassRunner runs applies a sequence of CssCompilerPasses to a CssTree.
Utility methods that can be useful for compiler passes.
A SubstitutionMap implementation that prefixes the renamed CSS class names (provided by a delegate substitution map).
A pretty-printer for CssTree instances.
A pretty-printer for CssTree instances.
An error manager that prints errors to the print stream provided.
 
Compiler pass which ensures that @keyframes rules are only allowed if they are enabled.
Compiler pass which ensures that refiners are correctly formated because not every invalid format is rejected by the parser.
An object that represents a CSS property.
The idea behind the Proxiable interface is to improve performance of compiler passes by eliminating unnecessary copying of AST subtrees.
A decorator for a SubstitutionMap that records which values it maps.
A-la-carte builder.
A compiler pass that moves all comments of each CssDefinitionNode's children to the CssDefinitionNode itself.
Compiler pass that removes declaration nodes that have all the property values marked as default.
Compiler pass that removes empty values and their containing declaration nodes if they become empty.
A CssCompilerPass that removes all vendor-specific properties, except for one Vendor that is specified in the constructor.
Compiler pass that replaces the constant references with the right values.
Compiler pass that replaces mixins with the corresponding mixin definitions and replaces the variables in the definitions with the values given by the mixin.
This compiler pass replaces CssCustomFunctionNode instances with the list of nodes returned by the GssFunction.
This compiler pass evaluates CssCustomFunctionNode instances only when they have no references as arguments.
Build up an s-expression corresponding to the AST for debugging purposes.
Build up an s-expression corresponding to the AST for debugging purposes.
This class uses SplittingSubstitutionMap to split css class names to their parts and then SimpleSubstitutionMap to append an underscore to each part.
Provides a SimpleSplittingSubstitutionMap for use via the command-line compiler.
A SubstitutionMap that trivially renames its CSS classes by adding an underscore.
Any compiler pass which derives from this is able to skip processing rules that contain specific property names.
This is a wrapper for a file that will be compiled.
Represents a line of source code, together with an associated "indicator" line.
A location in source code.
This describes a point in a string.
Aids in the creation of source code locations.
Compiler pass that splits ruleset nodes into multiple ruleset nodes by selector and declaration.
The CSS class substitution map which splits CSS class names on the "-" (dash) character and processes them separately using a delegate substitution map.
This compiler pass enforces that only correct CSS 2.1 is used.
This compiler pass enforces that only correct CSS level 3 is used.
Base class for compiler passes enforcing a specific CSS level.
Efficient String based CharStream implementation.
An interface for a one-to-one string mapping function.
A substitution map that can be reconsitituted from saved mappings.
Provides substitution maps for use with command-line compilers.
Printer for templates, which outputs GSS with holes to be filled for references.
Printer for templates, which outputs GSS with holes to be filled for references.
Describes the input token stream.
Token Manager Error.
A visitor with a pair of operations (enter and leave) that apply to every node type.
Adapter methods that transform UniformVisitors into CssTreeVisitors.
A compiler pass that unrolls loops.
Compiler pass that merges rulesets aggressively.
A compiler pass that validates values of properties.
A browser vendor that provides non-standard CSS properties that can be identified by a special prefix.
CSS Compiler pass that checks that all properties in the stylesheet are either on the built-in recognized property list, or were whitelisted explicitly.