Class CssValueNode
java.lang.Object
com.google.common.css.compiler.ast.CssNode
com.google.common.css.compiler.ast.CssValueNode
- All Implemented Interfaces:
Locatable
- Direct Known Subclasses:
CssBooleanExpressionNode,CssCommentNode,CssCompositeValueNode,CssConstantReferenceNode,CssFunctionNode,CssHexColorNode,CssLiteralNode,CssNumericNode,CssPriorityNode,CssPropertyNode,CssStringNode,CssUnicodeRangeNode
A CSS node that holds a value of some sort. This is the base class for all
the nodes in the abstract syntax tree that have a value.
TODO(oana): Maybe de-emphasize the value aspect, allow value to be null, and rename this as CssTermNode.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCssValueNode(CssValueNode node) Copy constructor.protectedCssValueNode(String value) Constructor of a node that contains a value.protectedCssValueNode(String value, SourceCodeLocation sourceCodeLocation) Constructor of a node that contains a value. -
Method Summary
Modifier and TypeMethodDescriptionabstract CssValueNodedeepCopy()booleangetValue()voidsetIsDefault(boolean isDefault) voidSubclasses should perform additional consistency checks.toString()Use for debugging only.Methods inherited from class com.google.common.css.compiler.ast.CssNode
ancestors, appendComment, deepCopyNodes, equals, getComments, getParent, getShouldBeFlipped, getSourceCodeLocation, getVisitController, hasComment, hashCode, inFunArgs, setComments, setShouldBeFlipped, setSourceCodeLocation
-
Constructor Details
-
CssValueNode
Constructor of a node that contains a value.- Parameters:
value- valuesourceCodeLocation- sourceCodeLocation
-
CssValueNode
Constructor of a node that contains a value.- Parameters:
value- value
-
CssValueNode
Copy constructor.- Parameters:
node- node
-
-
Method Details
-
deepCopy
-
getValue
-
setValue
Subclasses should perform additional consistency checks. For example, a boolean expression node will not allow setting this as boolean expression trees are immutable. -
setIsDefault
public void setIsDefault(boolean isDefault) -
getIsDefault
public boolean getIsDefault() -
toString
Use for debugging only.
-