org.eclipse.mylyn.internal.wikitext.core.util.css
Class CssParser

java.lang.Object
  extended by org.eclipse.mylyn.internal.wikitext.core.util.css.CssParser

public class CssParser
extends Object

A rudimentary CSS stylesheet parser. Recognizes commonly-used CSS syntax. The result of parsing is a CSS-specific object model.

Author:
David Green
See Also:
Stylesheet, CssRule

Constructor Summary
CssParser()
           
 
Method Summary
 Iterator<CssRule> createRuleIterator(String content)
          parse the contents of a CSS block and return the result as an iterator of rules
 Stylesheet parse(Reader reader)
           
 Stylesheet parse(String cssContent)
           
 List<CssRule> parseBlockContent(String content)
          parse the contents of a CSS block
 Selector parseSelector(String selectorText)
          NOT API public for testing purposes only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssParser

public CssParser()
Method Detail

parseBlockContent

public List<CssRule> parseBlockContent(String content)
parse the contents of a CSS block

Parameters:
content - the content of the block
Returns:
a list of rules, or an empty list if there are none

createRuleIterator

public Iterator<CssRule> createRuleIterator(String content)
parse the contents of a CSS block and return the result as an iterator of rules

Parameters:
content -
Returns:

parse

public Stylesheet parse(Reader reader)

parse

public Stylesheet parse(String cssContent)

parseSelector

public Selector parseSelector(String selectorText)
NOT API public for testing purposes only



Copyright © 2011 FuseSource, Corp.. All Rights Reserved.