All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.values.CssExpression

java.lang.Object
   |
   +----org.w3c.css.values.CssExpression

public class CssExpression
extends Object
implements CssOperator
This class is used by the CSS1 parser to generate all expressions.


Constructor Index

 o CssExpression()

Method Index

 o addValue(CssValue)
Add a value to the end of the expression By default the next operator is a space
 o end()
Returns true if there is no other element
 o ends()
Change the position to the end
 o getCount()
Returns the number of elements
 o getNextValue()
Returns the current value of the expression don't change the position in the expression
 o getOperator()
Returns the operator after the current value don't change the position in the expression
 o getValue()
Returns the current value of the expression don't change the position in the expression
 o insert(CssValue)
Insert the current value at the current position.
 o next()
Change the position to the next
 o precedent()
Change the position to the precedent
 o remove()
Removes the current value and his operator
 o setCurrentOperator(char)
Change the next operator for the current position Don't check if the operator is correct
 o setOperator(char)
Change the next operator Don't check if the operator is correct
 o starts()
Change the position to the beginning
 o toString()
Returns a string representation of the object from the current position.
 o toStringFromStart()
Returns a string representation of the object before the current position.

Constructors

 o CssExpression
 public CssExpression()

Methods

 o addValue
 public void addValue(CssValue value)
Add a value to the end of the expression By default the next operator is a space

Parameters:
value - The value to append
 o setOperator
 public void setOperator(char operator)
Change the next operator Don't check if the operator is correct

Parameters:
operator - The operator
See Also:
CssOperator
 o setCurrentOperator
 public void setCurrentOperator(char operator)
Change the next operator for the current position Don't check if the operator is correct

Parameters:
operator - The operator
See Also:
CssOperator
 o getValue
 public CssValue getValue()
Returns the current value of the expression don't change the position in the expression

 o getNextValue
 public CssValue getNextValue()
Returns the current value of the expression don't change the position in the expression

 o getOperator
 public char getOperator()
Returns the operator after the current value don't change the position in the expression

 o getCount
 public int getCount()
Returns the number of elements

 o insert
 public void insert(CssValue value)
Insert the current value at the current position.

Parameters:
value - The value to insert
 o remove
 public void remove()
Removes the current value and his operator

 o end
 public boolean end()
Returns true if there is no other element

 o starts
 public void starts()
Change the position to the beginning

 o ends
 public void ends()
Change the position to the end

 o next
 public void next()
Change the position to the next

 o precedent
 public void precedent()
Change the position to the precedent

 o toString
 public String toString()
Returns a string representation of the object from the current position.

Overrides:
toString in class Object
 o toStringFromStart
 public String toStringFromStart()
Returns a string representation of the object before the current position.


All Packages  Class Hierarchy  This Package  Previous  Next  Index