Class CssKeyNode
- java.lang.Object
-
- com.google.common.css.compiler.ast.CssNode
-
- com.google.common.css.compiler.ast.CssKeyNode
-
- All Implemented Interfaces:
ChunkAware,Locatable
public class CssKeyNode extends CssNode implements ChunkAware
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 byfrom(= 0%), orto(= 100%). For example:0%, 33.3% { ... }
-
-
Constructor Summary
Constructors Constructor Description CssKeyNode(CssKeyNode node)Copy-constructor of a key node.CssKeyNode(java.lang.String keyValue)Constructor of a key node.CssKeyNode(java.lang.String keyValue, SourceCodeLocation sourceCodeLocation)Constructor of a key node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CssKeyNodedeepCopy()java.lang.ObjectgetChunk()Gets the chunk id of the node.java.lang.StringgetKeyValue()voidsetChunk(java.lang.Object chunk)Sets the chunk id on the node.voidsetKeyValue(java.lang.String keyValue)java.lang.StringtoString()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 Detail
-
CssKeyNode
public CssKeyNode(@Nullable java.lang.String keyValue, @Nullable SourceCodeLocation sourceCodeLocation)Constructor of a key node.- Parameters:
keyValue-sourceCodeLocation-
-
CssKeyNode
public CssKeyNode(java.lang.String keyValue)
Constructor of a key node.- Parameters:
keyValue-
-
CssKeyNode
public CssKeyNode(CssKeyNode node)
Copy-constructor of a key node.- Parameters:
node-
-
-
Method Detail
-
deepCopy
public CssKeyNode deepCopy()
-
setKeyValue
public void setKeyValue(java.lang.String keyValue)
-
getKeyValue
public java.lang.String getKeyValue()
-
setChunk
public void setChunk(java.lang.Object chunk)
Description copied from interface:ChunkAwareSets the chunk id on the node.- Specified by:
setChunkin interfaceChunkAware- Parameters:
chunk- an object identifying a chunk
-
getChunk
public java.lang.Object 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
-
-