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 by from (= 0%), or to (= 100%). For example: 0%, 33.3% { ... }
  • Constructor Details

    • CssKeyNode

      public CssKeyNode(@Nullable String keyValue, @Nullable SourceCodeLocation sourceCodeLocation)
      Constructor of a key node.
      Parameters:
      keyValue -
      sourceCodeLocation -
    • CssKeyNode

      public CssKeyNode(String keyValue)
      Constructor of a key node.
      Parameters:
      keyValue -
    • CssKeyNode

      public CssKeyNode(CssKeyNode node)
      Copy-constructor of a key node.
      Parameters:
      node -
  • Method Details

    • deepCopy

      public CssKeyNode deepCopy()
      Specified by:
      deepCopy in class CssNode
    • setKeyValue

      public void setKeyValue(String keyValue)
    • getKeyValue

      public String getKeyValue()
    • setChunk

      public void setChunk(Object chunk)
      Description copied from interface: ChunkAware
      Sets the chunk id on the node.
      Specified by:
      setChunk in interface ChunkAware
      Parameters:
      chunk - an object identifying a chunk
    • getChunk

      public Object getChunk()
      Description copied from interface: ChunkAware
      Gets the chunk id of the node.
      Specified by:
      getChunk in interface ChunkAware
      Returns:
      the chunk id or null if no chunk id was previously set
    • toString

      public String toString()
      For debugging only.
      Overrides:
      toString in class CssNode
      See Also: