Class 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 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

      • 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: ChunkAware
        Sets the chunk id on the node.
        Specified by:
        setChunk in interface ChunkAware
        Parameters:
        chunk - an object identifying a chunk
      • getChunk

        public java.lang.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 java.lang.String toString()
        For debugging only.
        Overrides:
        toString in class CssNode
        See Also:
        Object.toString()