public class CSSFunctionCallPropertyValue extends CSSPropertyValue
For example: Embed("bg.png")
.
Modifier and Type | Field and Description |
---|---|
protected List<ICSSNode> |
children
A list of children nodes.
|
static String |
CLASS_REFERENCE
Function name for
ClassReference("") . |
static String |
EMBED
Function name for
Embed("") . |
String |
name
Name of the function.
|
static String |
PROPERTY_REFERENCE
Function name for
PropetyReference("") . |
String |
rawArguments
Raw arguments text excluding the parentheses.
|
UNKNOWN
Constructor and Description |
---|
CSSFunctionCallPropertyValue(String name,
String rawArguments,
org.antlr.runtime.tree.CommonTree tree,
org.antlr.runtime.TokenStream tokenStream)
Initialize a
CSSFunctionCallPropertyValue . |
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.
|
static String |
getSingleArgumentFromRaw(String rawArguments)
If
rawArguments is of pattern "argument"
or 'argument' , then return argument . |
String |
toString()
Generate CSS code fragment for this model object.
|
String |
toStringTree()
Recursively print out the text representation of the tree.
|
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 static final String CLASS_REFERENCE
ClassReference("")
.public static final String PROPERTY_REFERENCE
PropetyReference("")
.public static final String EMBED
Embed("")
.public final String name
public final String rawArguments
public CSSFunctionCallPropertyValue(String name, String rawArguments, org.antlr.runtime.tree.CommonTree tree, org.antlr.runtime.TokenStream tokenStream)
CSSFunctionCallPropertyValue
.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 SourceLocation
public static String getSingleArgumentFromRaw(String rawArguments)
rawArguments
is of pattern "argument"
or 'argument'
, then return argument
. Otherwise,
return the original value.rawArguments
- Raw argument from rawArguments
.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.