Interface CssParserEventHandler
public interface CssParserEventHandler
A handler for parse events in the spirit of SAC and SAX.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds a boolean expression.static interfaceBuilds an expression.static interfaceBuilds an import.static interfaceBuilds a media rule. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonCommentStart(com.google.common.css.compiler.ast.ParserToken comment) voidonConditionalRuleStart(CssAtRuleNode.Type type, com.google.common.css.compiler.ast.ParserToken ruleName) voidonDeclarationStart(com.google.common.css.compiler.ast.ParserToken propertyName, boolean hasStarHack) voidonDefinitionStart(com.google.common.css.compiler.ast.ParserToken definitionName) voidvoidonDocumentStart(SourceCode sourceCode) voidvoidvoidvoidonRulesetStart(CssSelectorListNode selectorList)
-
Method Details
-
onDocumentStart
-
onDocumentEnd
void onDocumentEnd() -
onRulesetStart
-
onRulesetEnd
void onRulesetEnd() -
onCommentStart
void onCommentStart(com.google.common.css.compiler.ast.ParserToken comment) -
onCommentEnd
void onCommentEnd() -
onDeclarationStart
CssParserEventHandler.ExpressionHandler onDeclarationStart(com.google.common.css.compiler.ast.ParserToken propertyName, boolean hasStarHack) -
onDeclarationEnd
void onDeclarationEnd() -
onDefinitionStart
CssParserEventHandler.ExpressionHandler onDefinitionStart(com.google.common.css.compiler.ast.ParserToken definitionName) -
onDefinitionEnd
void onDefinitionEnd() -
onConditionalRuleStart
CssParserEventHandler.BooleanExpressionHandler onConditionalRuleStart(CssAtRuleNode.Type type, com.google.common.css.compiler.ast.ParserToken ruleName) -
onConditionalRuleEnd
void onConditionalRuleEnd() -
onImportRuleStart
CssParserEventHandler.ImportHandler onImportRuleStart() -
onImportRuleEnd
void onImportRuleEnd() -
onMediaRuleStart
CssParserEventHandler.MediaHandler onMediaRuleStart() -
onMediaRuleEnd
void onMediaRuleEnd()
-