Package | Description |
---|---|
com.salesforce.omakase.ast |
Contains general AST (Abstract Syntax Tree) units, such as Rule and top-level AST interfaces, such as Syntax, Commentable and
Refinable.
|
com.salesforce.omakase.ast.atrule |
Contains at-rule AST members.
|
com.salesforce.omakase.ast.collection |
Contains interfaces and classes for collections of Syntax units.
|
com.salesforce.omakase.ast.declaration |
Contains declaration AST members.
|
com.salesforce.omakase.ast.extended |
Contains customized, extended syntax objects that are not part of the standard CSS spec.
|
com.salesforce.omakase.ast.selector |
Contains selector AST members.
|
com.salesforce.omakase.error |
Contains the error manager and base exceptions.
|
com.salesforce.omakase.parser |
Parsers that read source code and broadcast AST objects.
|
com.salesforce.omakase.plugin |
Interfaces for plugging new features into the parsing process (rework, validation, etc...).
|
com.salesforce.omakase.util |
Utilities and helpers.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Refinable
Designates that an
Syntax unit is refinable to a more specified or detailed representation. |
interface |
Statement
|
interface |
StatementIterable
Contains a list of
Statement s. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSyntax
Base class for
Syntax units. |
class |
RawFunction
Represents a function value before refinement.
|
class |
RawSyntax
Represents raw, non-validated content.
|
class |
Rule
Represents a CSS Rule.
|
class |
Stylesheet
The root-level
Syntax object. |
Modifier and Type | Method and Description |
---|---|
protected <T extends Syntax> |
AbstractSyntax.copiedFrom(T original)
This should be called on all copied units.
|
Modifier and Type | Method and Description |
---|---|
Syntax |
Syntax.comment(Comment comment)
Adds the given
Comment to this unit. |
Syntax |
AbstractSyntax.comment(Comment comment) |
Syntax |
Syntax.comment(String comment)
Adds the given comment to this unit.
|
Syntax |
AbstractSyntax.comment(String comment) |
Syntax |
Syntax.comments(Collection<String> comments)
Adds the given comments to this unit.
|
Syntax |
AbstractSyntax.comments(Collection<String> comments) |
Syntax |
Syntax.comments(Syntax copyFrom)
Copies all comments from the given syntax unit.
|
Syntax |
AbstractSyntax.comments(Syntax copyFrom) |
Syntax |
Syntax.copy()
Performs a deep copy of the instance.
|
abstract Syntax |
AbstractSyntax.copy()
For implementations: do not copy comments or orphaned comments, instead be sure to call
AbstractSyntax.copiedFrom(Syntax) on the
new copy. |
Syntax |
Syntax.orphanedComments(Collection<String> comments)
Adds orphaned comments (comments that appears after or at the end of the unit).
|
Syntax |
AbstractSyntax.orphanedComments(Collection<String> comments) |
Syntax |
Syntax.orphanedComments(Syntax copyFrom)
Copies all orphaned comments from the given syntax unit.
|
Syntax |
AbstractSyntax.orphanedComments(Syntax copyFrom) |
Modifier and Type | Method and Description |
---|---|
Syntax |
Syntax.comments(Syntax copyFrom)
Copies all comments from the given syntax unit.
|
Syntax |
AbstractSyntax.comments(Syntax copyFrom) |
Syntax |
Syntax.orphanedComments(Syntax copyFrom)
Copies all orphaned comments from the given syntax unit.
|
Syntax |
AbstractSyntax.orphanedComments(Syntax copyFrom) |
Modifier and Type | Interface and Description |
---|---|
interface |
AtRuleBlock
The block of an
AtRule . |
interface |
AtRuleExpression
The expression of an
AtRule . |
interface |
AtRuleMember
Either an
AtRuleExpression or an AtRuleBlock . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAtRuleMember
Base class for
AtRuleMember s. |
class |
AtRule
Represents one of the CSS at-rules, such as
@media , @charset , @keyframes , etc... |
class |
FontDescriptor
Represents one of the
FontFaceBlock font-descriptors (src, font-weight, font-style, etc...). |
class |
FontFaceBlock
Represents the block of a font-face at-rule.
|
class |
GenericAtRuleBlock
A generic wrapper containing a list of statements.
|
class |
GenericAtRuleExpression
A generic
AtRuleExpression value. |
class |
MediaQuery
Represents a media query.
|
class |
MediaQueryExpression
Represents a media query expression.
|
class |
MediaQueryList
Represents a list of media queries.
|
class |
MetadataExpression
Represents an expression that should never be written out.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Groupable<P,T extends Groupable<P,T>>
Represents an item that appears in a group or chain of other related units, for usage with
SyntaxCollection . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractGroupable<P,T extends Groupable<P,T>>
Base class for
Groupable s. |
Modifier and Type | Interface and Description |
---|---|
interface |
FunctionValue
General interface for function term values, such as
GenericFunctionValue . |
interface |
PropertyValueMember
A member of a
PropertyValue . |
interface |
Term
A
PropertyValueMember within a PropertyValue representing a single segment of the Declaration value. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTerm
Base class for
Term s. |
class |
Declaration
Represents a CSS declaration.
|
class |
GenericFunctionValue
A generic function value with non-validated arguments.
|
class |
HexColorValue
A hex color value (e.g., "fffeee").
|
class |
KeywordValue
A keyword value (e.g., inline-block).
|
class |
LinearGradientFunctionValue
Represents a linear-gradient (or repeating-linear-gradient) function.
|
class |
NumericalValue
A numerical value (e.g., 1 or 1px or 3.5em).
|
class |
Operator
|
class |
PropertyName
The property name within a
Declaration . |
class |
PropertyValue
The value of a property in a
Declaration . |
class |
StringValue
A string value, e.g., "Times New Roman".
|
class |
UnicodeRangeValue
A unicode-range value (e.g., from within a @font-face rule).
|
class |
UrlFunctionValue
Represents a url function value.
|
Modifier and Type | Class and Description |
---|---|
class |
ConditionalAtRuleBlock
An extension to the standard CSS syntax that allows for conditional at-rules.
|
class |
UnquotedIEFilter
MS filter junk.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SelectorPart
|
interface |
SimpleSelector
A simple selector, as defined by the Selectors Level 3 spec: "A simple selector is either a type selector, universal selector,
attribute selector, class selector, ID selector, or pseudo-class."
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSelectorPart
Base class for
SelectorPart s. |
class |
AttributeSelector
Represents a CSS attribute selector.
|
class |
ClassSelector
Represents a CSS class selector.
|
class |
Combinator
Represents a CSS combinator.
|
class |
IdSelector
Represents a CSS id selector.
|
class |
KeyframeSelector
Represents a single keyframe selector part.
|
class |
PseudoClassSelector
Represents a CSS pseudo class selector.
|
class |
PseudoElementSelector
Represents a CSS pseudo element selector.
|
class |
Selector
Represents a CSS selector.
|
class |
TypeSelector
Represents a CSS type selector (also known as an element type selector).
|
class |
UniversalSelector
Represents the CSS universal selector, i.e., "*".
|
Modifier and Type | Method and Description |
---|---|
static String |
ErrorUtils.format(String sourceName,
Syntax cause,
String message)
Formats a validation error message.
|
static String |
ErrorUtils.format(Syntax cause,
String message)
Formats a validation error message.
|
void |
DefaultErrorManager.report(ErrorLevel level,
Syntax cause,
String message) |
void |
ErrorManager.report(ErrorLevel level,
Syntax cause,
String message)
Reports an error message.
|
Constructor and Description |
---|
ParserException(Syntax cause,
String message)
Constructs a new instance of a
ParserException for an error caused by the given Syntax unit. |
ParserException(Syntax cause,
String message,
Object... args)
Constructs a new instance of a
ParserException for an error caused by the given Syntax unit. |
Modifier and Type | Method and Description |
---|---|
void |
BasePlugin.syntax(Syntax syntax)
Override this method and add the
Rework , Observe or Validate annotation in order to receive events
for ALL Syntax units. |
Modifier and Type | Method and Description |
---|---|
static String |
As.simpleString(Syntax syntax,
boolean includeUnitType)
Creates a simple toString representation of the given
Syntax unit, based on how it would be output in CSS. |
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.