|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.sass.internal.parser.Parser
public class Parser
A CSS2 parser
| Field Summary | |
|---|---|
protected org.w3c.css.sac.ConditionFactory |
conditionFactory
|
protected SCSSDocumentHandlerImpl |
documentHandler
|
protected org.w3c.css.sac.ErrorHandler |
errorHandler
|
Token |
jj_nt
Next token. |
protected org.w3c.css.sac.SelectorFactory |
selectorFactory
|
protected org.w3c.css.sac.InputSource |
source
|
Token |
token
Current token. |
ParserTokenManager |
token_source
Generated Token Manager. |
| Constructor Summary | |
|---|---|
Parser()
Creates a new Parser |
|
Parser(CharStream stream)
Constructor with user supplied CharStream. |
|
Parser(ParserTokenManager tm)
Constructor with generated Token Manager. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SCSSDocumentHandlerImpl documentHandler
protected org.w3c.css.sac.ErrorHandler errorHandler
protected org.w3c.css.sac.InputSource source
protected org.w3c.css.sac.ConditionFactory conditionFactory
protected org.w3c.css.sac.SelectorFactory selectorFactory
public ParserTokenManager token_source
public Token token
public Token jj_nt
| Constructor Detail |
|---|
public Parser()
public Parser(CharStream stream)
public Parser(ParserTokenManager tm)
| Method Detail |
|---|
public void setLocale(Locale locale)
throws org.w3c.css.sac.CSSException
setLocale in interface org.w3c.css.sac.Parserorg.w3c.css.sac.CSSException - Not yet implementedpublic org.w3c.css.sac.InputSource getInputSource()
public void setDocumentHandler(org.w3c.css.sac.DocumentHandler handler)
setDocumentHandler in interface org.w3c.css.sac.Parserpublic void setSelectorFactory(org.w3c.css.sac.SelectorFactory selectorFactory)
setSelectorFactory in interface org.w3c.css.sac.Parserpublic void setConditionFactory(org.w3c.css.sac.ConditionFactory conditionFactory)
setConditionFactory in interface org.w3c.css.sac.Parserpublic void setErrorHandler(org.w3c.css.sac.ErrorHandler error)
setErrorHandler in interface org.w3c.css.sac.Parser
public void parseStyleSheet(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
IOException
parseStyleSheet in interface org.w3c.css.sac.Parsersource - the source of the style sheet.
IOException - the source can't be parsed.
org.w3c.css.sac.CSSException - the source is not CSS valid.
public void parseStyleSheet(String systemId)
throws org.w3c.css.sac.CSSException,
IOException
parseStyleSheet in interface org.w3c.css.sac.ParsersystemId - the fully resolved URI of the style sheet.
IOException - the source can't be parsed.
org.w3c.css.sac.CSSException - the source is not CSS valid.
public void parseRule(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
IOException
parseRule in interface org.w3c.css.sac.Parsersource - the source of the rule.
IOException - the source can't be parsed.
org.w3c.css.sac.CSSException - the source is not CSS valid.
public void parseStyleDeclaration(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
IOException
parseStyleDeclaration in interface org.w3c.css.sac.Parsersource - the source of the style declaration.
IOException - the source can't be parsed.
org.w3c.css.sac.CSSException - the source is not CSS valid.public String getParserVersion()
getParserVersion in interface org.w3c.css.sac.Parser
public void parseImportRule(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
IOException
org.w3c.css.sac.CSSException
IOException
public void parseMediaRule(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
IOException
org.w3c.css.sac.CSSException
IOException
public org.w3c.css.sac.SelectorList parseSelectors(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
IOException
parseSelectors in interface org.w3c.css.sac.Parserorg.w3c.css.sac.CSSException
IOException
public List<Selector> parseSCSSSelectors(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
IOException
org.w3c.css.sac.CSSException
IOException
public org.w3c.css.sac.LexicalUnit parsePropertyValue(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
IOException
parsePropertyValue in interface org.w3c.css.sac.Parserorg.w3c.css.sac.CSSException
IOException
public boolean parsePriority(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
IOException
parsePriority in interface org.w3c.css.sac.Parserorg.w3c.css.sac.CSSException
IOException
public final void parserUnit()
throws ParseException
ParseException - exception during the parse
public final void charset()
throws ParseException
ParseException
public final void topLevelDeclaration()
throws ParseException
ParseException
public final void ignoreStatement()
throws ParseException
ParseException
public final void importDeclaration()
throws ParseException
ParseException - exception during the parse
public final void keyframes()
throws ParseException
ParseException - exception during the parse
public final void keyframeSelector()
throws ParseException
ParseException
public final void media()
throws ParseException
ParseException - exception during the parse
public final void mediaDirective()
throws ParseException
ParseException
public final void mediaStatement(MediaListImpl ml)
throws ParseException
ParseException
public final String medium()
throws ParseException
ParseException - exception during the parse
public final void page()
throws ParseException
ParseException - exception during the parse
public final String pseudo_page()
throws ParseException
ParseException
public final void fontFace()
throws ParseException
ParseException
public final void atRuleDeclaration()
throws ParseException
ParseException - exception during the parse
public final void skipUnknownRule()
throws ParseException
ParseException
public final Combinator combinator()
throws ParseException
ParseException - exception during the parse
public final Combinator combinatorChar()
throws ParseException
ParseException
public final void microsoftExtension()
throws ParseException
ParseException
public final String property()
throws ParseException
ParseException - exception during the parse
public final Token propertyIdent()
throws ParseException
ParseException
public final String variableName()
throws ParseException
ParseException
public final String functionName()
throws ParseException
ParseException
public final void styleRule()
throws ParseException
ParseException - exception during the parse
public final List<Selector> selectorList()
throws ParseException
ParseException
public final Selector selector()
throws ParseException
ParseException
public final SimpleSelectorSequence simple_selector_sequence()
throws ParseException
ParseException
public final SimpleSelector simple_nontype_selector()
throws ParseException
ParseException
public final String ident_interpolation_seq()
throws ParseException
ParseException
public final SimpleSelector class_selector()
throws ParseException
ParseException
public final SimpleSelector placeholder_selector()
throws ParseException
ParseException
public final TypeSelector type_selector()
throws ParseException
ParseException
public final AttributeSelector attribute_selector()
throws ParseException
ParseException - exception during the parse
public final SimpleSelector pseudo_selector()
throws ParseException
ParseException
public final IdSelector id_selector()
throws ParseException
ParseException
public final void variable()
throws ParseException
ParseException
public final SassList expressionList()
throws ParseException
ParseException
public final SassList expressionSubList()
throws ParseException
ParseException
public final void controlDirective()
throws ParseException
ParseException
public final void ifContentStatement()
throws ParseException
ParseException
public final void ifDirective()
throws ParseException
ParseException
public final void elseDirective()
throws ParseException
ParseException
public final void eachDirective()
throws ParseException
ParseException
public final void mixinDirective()
throws ParseException
ParseException
public final void functionDirective()
throws ParseException
ParseException
public final void functionBlockStatement()
throws ParseException
ParseException
public final void functionControlDirective()
throws ParseException
ParseException
public final void functionIfDirective()
throws ParseException
ParseException
public final void functionElseDirective()
throws ParseException
ParseException
public final void functionEachDirective()
throws ParseException
ParseException
public final void functionForDirective()
throws ParseException
ParseException
public final ArrayList<VariableNode> arglist()
throws ParseException
ParseException
public final VariableNode mixinArg()
throws ParseException
ParseException
public final ArrayList<VariableNode> argValuelist()
throws ParseException
ParseException
public final VariableNode argValueListItem()
throws ParseException
ParseException
public final void returnDirective()
throws ParseException
ParseException
public final void includeDirective()
throws ParseException
ParseException
public final void semicolonTerminator()
throws ParseException
ParseException
public final void includeDirectiveBlockContents()
throws ParseException
ParseException
public final String interpolation()
throws ParseException
ParseException
public final void debuggingDirective()
throws ParseException
ParseException
public final void debugDirective()
throws ParseException
ParseException
public final void warnDirective()
throws ParseException
ParseException
public final void forDirective()
throws ParseException
ParseException
public final void whileDirective()
throws ParseException
ParseException
public final void extendDirective()
throws ParseException
ParseException
public final void contentDirective()
throws ParseException
ParseException
public final void nestedProperties()
throws ParseException
ParseException
public final void styleRuleOrDeclarationOrNestedProperties()
throws ParseException
ParseException - exception during the parse
public final void declarationOrNestedProperties()
throws ParseException
ParseException - exception during the parse
public final void declaration()
throws ParseException
ParseException - exception during the parse
public final boolean prio()
throws ParseException
ParseException - exception during the parse
public final boolean guarded()
throws ParseException
ParseException
public final List<SassListItem> operator()
throws ParseException
ParseException - exception during the parse
public final SassListItem expr()
throws ParseException
ParseException
public final void addExpressionTerm(List<SassListItem> items)
throws ParseException
ParseException
public final SassListItem parenthesizedExpression()
throws ParseException
ParseException
public final List<SassListItem> arithmeticOrBooleanOperator()
throws ParseException
ParseException - exception during the parse
public final List<SassListItem> booleanOperator()
throws ParseException
ParseException
public final List<SassListItem> nonCommaOperator()
throws ParseException
ParseException - exception during the parse
public final SassListItem numericExpr()
throws ParseException
ParseException - exception during the parse
public final char unaryOperator()
throws ParseException
ParseException - exception during the parse
public final List<SassListItem> term()
throws ParseException
ParseException - exception during the parse
public final List<SassListItem> numericTerm()
throws ParseException
ParseException - exception during the parse
public final List<SassListItem> variableTerm()
throws ParseException
ParseException
public final List<SassListItem> nonVariableTerm()
throws ParseException
ParseException
public final List<SassListItem> numberTerm(char op)
throws ParseException
ParseException
public final String identInterpolationString()
throws ParseException
ParseException
public final Token ident()
throws ParseException
ParseException
public final List<SassListItem> stringTerm(char op)
throws ParseException
ParseException
public final LexicalUnitImpl function(char operator)
throws ParseException
ParseException - exception during the parse
public final LexicalUnitImpl unicode()
throws ParseException
ParseException
public final LexicalUnitImpl url()
throws ParseException
ParseException
public final LexicalUnitImpl hexcolor()
throws ParseException
ParseException - exception during the parse
public final void _parseRule()
throws ParseException
ParseException
public final void _parseImportRule()
throws ParseException
ParseException
public final void _parseMediaRule()
throws ParseException
ParseException
public final void _parseDeclarationBlock()
throws ParseException
ParseException
public final List<Selector> _parseSelectors()
throws ParseException
ParseExceptionpublic void ReInit(CharStream stream)
public void ReInit(ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||