public class CSSCombinator extends SourceLocation implements ICSSCombinator
ICSSCombinator.| Modifier and Type | Field and Description |
|---|---|
protected List<ICSSNode> |
children
A list of children nodes.
|
UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
CSSCombinator(CSSSelector selector,
CombinatorType type,
org.antlr.runtime.tree.CommonTree tree,
org.antlr.runtime.TokenStream tokenStream) |
| Modifier and Type | Method and Description |
|---|---|
int |
getArity()
Get the node's child count.
|
CombinatorType |
getCombinatorType()
Get the combinator type.
|
ICSSNode |
getNthChild(int index)
Get the node's nth child.
|
CSSModelTreeType |
getOperator()
Get the node's type.
|
ICSSSelector |
getSelector()
Get the selector associated with the combinator.
|
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartprotected CSSCombinator(CSSSelector selector, CombinatorType type, org.antlr.runtime.tree.CommonTree tree, org.antlr.runtime.TokenStream tokenStream)
public ICSSSelector getSelector()
ICSSCombinators|VBox s|Labels|Label as a combinator whose selector is s|VBox.getSelector in interface ICSSCombinatorpublic CombinatorType getCombinatorType()
ICSSCombinatorgetCombinatorType in interface ICSSCombinatorpublic String toStringTree()
toStringTree in interface ICSSNodepublic int getArity()
ICSSNodeDefaultAdapter.public ICSSNode getNthChild(int index)
ICSSNodeDefaultAdapter.getNthChild in interface ICSSNodeindex - Child index.public CSSModelTreeType getOperator()
ICSSNodeDefaultAdapter.getOperator in interface ICSSNodeCopyright © 2016 The Apache Software Foundation. All rights reserved.