public class CSSMediaQueryCondition extends SourceLocation implements ICSSMediaQueryCondition
| Modifier and Type | Field and Description | 
|---|---|
| protected List<ICSSNode> | childrenA list of children nodes. | 
UNKNOWN| Modifier | Constructor and Description | 
|---|---|
| protected  | CSSMediaQueryCondition(org.antlr.runtime.tree.CommonTree tree,
                      org.antlr.runtime.TokenStream tokenStream)Create a media query condition from a keyword. | 
| protected  | CSSMediaQueryCondition(String key,
                      CSSPropertyValue value,
                      org.antlr.runtime.tree.CommonTree tree,
                      org.antlr.runtime.TokenStream tokenStream)Create a media query condition from a key-value pair. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getArity()Get the node's child count. | 
| String | getKey()Get the key of the media condition which is the left-hand side of the
 colon character. | 
| ICSSNode | getNthChild(int index)Get the node's nth child. | 
| CSSModelTreeType | getOperator()Get the node's type. | 
| ICSSPropertyValue | getValue()Get value of the media condition which is the right-hand side of the
 colon character. | 
| String | toString()Displays line, column, start, end, and sourcepath in a format such as 
 
 "17:5 160-188 C:\test.as"
  | 
| 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, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetArity, getNthChild, getOperator, toStringTreegetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartprotected CSSMediaQueryCondition(org.antlr.runtime.tree.CommonTree tree,
                      org.antlr.runtime.TokenStream tokenStream)
all.protected CSSMediaQueryCondition(String key, CSSPropertyValue value, org.antlr.runtime.tree.CommonTree tree, org.antlr.runtime.TokenStream tokenStream)
key - name of the conditionvalue - value of the conditionpublic ICSSPropertyValue getValue()
ICSSMediaQueryConditiongetValue in interface ICSSMediaQueryConditionpublic String toString()
SourceLocation"17:5 160-188 C:\test.as"
toString in class SourceLocationpublic String getKey()
ICSSMediaQueryConditionnull.getKey in interface ICSSMediaQueryConditionnull.public 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.