public class CSSURLAndFormatPropertyValue extends CSSFunctionCallPropertyValue
Modifier and Type | Field and Description |
---|---|
protected List<ICSSNode> |
children
A list of children nodes.
|
CLASS_REFERENCE, EMBED, name, PROPERTY_REFERENCE, rawArguments
UNKNOWN
Constructor and Description |
---|
CSSURLAndFormatPropertyValue(String name,
String rawArguments,
String format,
org.antlr.runtime.tree.CommonTree tree,
org.antlr.runtime.TokenStream tokenStream)
Initialize a
CSSURLAndFormatPropertyValue . |
Modifier and Type | Method and Description |
---|---|
int |
getArity()
Get the node's child count.
|
ICSSNode |
getNthChild(int index)
Get the node's nth child.
|
CSSModelTreeType |
getOperator()
Get the node's type.
|
String |
toString()
Generate CSS code fragment for this model object.
|
String |
toStringTree()
Recursively print out the text representation of the tree.
|
getSingleArgumentFromRaw
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, getStart, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, span
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getArity, getNthChild, getOperator, toStringTree
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public CSSURLAndFormatPropertyValue(String name, String rawArguments, String format, org.antlr.runtime.tree.CommonTree tree, org.antlr.runtime.TokenStream tokenStream)
CSSURLAndFormatPropertyValue
.name
- Function name.rawArguments
- Raw argument string with parentheses and quotes.tree
- AST.tokenStream
- Token stream.public String toString()
ICSSDocument
for
debugging and testing purposes.toString
in class CSSFunctionCallPropertyValue
public String toStringTree()
toStringTree
in interface ICSSNode
public int getArity()
ICSSNode
DefaultAdapter
.public ICSSNode getNthChild(int index)
ICSSNode
DefaultAdapter
.getNthChild
in interface ICSSNode
index
- Child index.public CSSModelTreeType getOperator()
ICSSNode
DefaultAdapter
.getOperator
in interface ICSSNode
Copyright © 2016 The Apache Software Foundation. All rights reserved.