Class AnBExpression

java.lang.Object
io.sf.carte.doc.style.css.parser.AnBExpression
All Implemented Interfaces:
Serializable

public abstract class AnBExpression extends Object implements Serializable
AnB expression. @see The An+B microsyntax.
See Also:
  • 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

      public SelectorList getSelectorList()
      If the expression contains a list of of-selectors, return it.
      Returns:
      the list of of-selectors, or null if there was no of-list
    • isKeyword

      public boolean isKeyword()
      The expression is a keyword ?
      Returns:
      true if the expression is a keyword like odd.
    • parse

      public void parse(String expression)
      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

      protected abstract SelectorList parseSelector(String selText)