Class CssKeyNode
java.lang.Object
com.google.common.css.compiler.ast.CssNode
com.google.common.css.compiler.ast.CssKeyNode
- All Implemented Interfaces:
ChunkAware,Locatable
A node representing a key (for keyframes) in the AST.
A key is used to represent a position in an animation and can be a expressed
with percentage ranging from 0% to 100%, or by
from (= 0%), or
to (= 100%).
For example: 0%, 33.3% { ... }-
Constructor Summary
ConstructorsConstructorDescriptionCssKeyNode(CssKeyNode node) Copy-constructor of a key node.CssKeyNode(String keyValue) Constructor of a key node.CssKeyNode(String keyValue, SourceCodeLocation sourceCodeLocation) Constructor of a key node. -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()getChunk()Gets the chunk id of the node.voidSets the chunk id on the node.voidsetKeyValue(String keyValue) toString()For debugging only.Methods inherited from class com.google.common.css.compiler.ast.CssNode
ancestors, appendComment, deepCopyNodes, equals, getComments, getParent, getShouldBeFlipped, getSourceCodeLocation, getVisitController, hasComment, hashCode, inFunArgs, setComments, setShouldBeFlipped, setSourceCodeLocation
-
Constructor Details
-
CssKeyNode
Constructor of a key node.- Parameters:
keyValue-sourceCodeLocation-
-
CssKeyNode
Constructor of a key node.- Parameters:
keyValue-
-
CssKeyNode
Copy-constructor of a key node.- Parameters:
node-
-
-
Method Details
-
deepCopy
-
setKeyValue
-
getKeyValue
-
setChunk
Description copied from interface:ChunkAwareSets the chunk id on the node.- Specified by:
setChunkin interfaceChunkAware- Parameters:
chunk- an object identifying a chunk
-
getChunk
Description copied from interface:ChunkAwareGets the chunk id of the node.- Specified by:
getChunkin interfaceChunkAware- Returns:
- the chunk id or
nullif no chunk id was previously set
-
toString
For debugging only.
-