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.
-
CssExpression()
-
-
addValue(CssValue)
- Add a value to the end of the expression
By default the next operator is a space
-
end()
- Returns true if there is no other element
-
ends()
- Change the position to the end
-
getCount()
- Returns the number of elements
-
getNextValue()
- Returns the current value of the expression
don't change the position in the expression
-
getOperator()
- Returns the operator after the current value
don't change the position in the expression
-
getValue()
- Returns the current value of the expression
don't change the position in the expression
-
insert(CssValue)
- Insert the current value at the current position.
-
next()
- Change the position to the next
-
precedent()
- Change the position to the precedent
-
remove()
- Removes the current value and his operator
-
setCurrentOperator(char)
- Change the next operator for the current position
Don't check if the operator is correct
-
setOperator(char)
- Change the next operator
Don't check if the operator is correct
-
starts()
- Change the position to the beginning
-
toString()
- Returns a string representation of the object from the current position.
-
toStringFromStart()
- Returns a string representation of the object before the current position.
CssExpression
public CssExpression()
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
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
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
getValue
public CssValue getValue()
- Returns the current value of the expression
don't change the position in the expression
getNextValue
public CssValue getNextValue()
- Returns the current value of the expression
don't change the position in the expression
getOperator
public char getOperator()
- Returns the operator after the current value
don't change the position in the expression
getCount
public int getCount()
- Returns the number of elements
insert
public void insert(CssValue value)
- Insert the current value at the current position.
- Parameters:
- value - The value to insert
remove
public void remove()
- Removes the current value and his operator
end
public boolean end()
- Returns true if there is no other element
starts
public void starts()
- Change the position to the beginning
ends
public void ends()
- Change the position to the end
next
public void next()
- Change the position to the next
precedent
public void precedent()
- Change the position to the precedent
toString
public String toString()
- Returns a string representation of the object from the current position.
- Overrides:
- toString in class Object
toStringFromStart
public String toStringFromStart()
- Returns a string representation of the object before the current position.
All Packages Class Hierarchy This Package Previous Next Index