public class CSSTextNode extends CSSTypedNode
Modifier and Type | Field and Description |
---|---|
protected List<ICSSNode> |
children
A list of children nodes.
|
UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
CSSTextNode(String text,
com.google.common.collect.ImmutableList<? extends ICSSNode> childNodes)
Create a text node with children.
|
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 |
getText() |
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public String getText()
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.