java.lang.Object
io.sf.carte.doc.style.css.parser.AnBExpression
AnB expression. @see The An+B microsyntax.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the expression offset (i.e.If the expression contains a list ofof
-selectors, return it.int
getStep()
Get the step (i.e.boolean
The expression is a keyword ?void
Parse a AnB expression into this object.protected abstract SelectorList
parseSelector
(String selText)
-
Constructor Details
-
AnBExpression
protected AnBExpression()
-
-
Method Details
-
getStep
public int getStep()Get the step (i.e. 'A').- Returns:
- the step, zero if not specified.
-
getOffset
public int getOffset()Get the expression offset (i.e. 'B').- Returns:
- the expression offset.
-
getSelectorList
If the expression contains a list ofof
-selectors, return it.- Returns:
- the list of
of
-selectors, ornull
if there was noof
-list
-
isKeyword
public boolean isKeyword()The expression is a keyword ?- Returns:
true
if the expression is a keyword likeodd
.
-
parse
Parse a AnB expression into this object.For efficiency, the internal fields are not reset by this method, it should be called on a newly created object.
- Parameters:
expression
- the AnB expression.
-
parseSelector
-