Class CssFunctionNode

    • Constructor Detail

      • CssFunctionNode

        public CssFunctionNode​(@Nullable
                               CssFunctionNode.Function function,
                               @Nullable
                               SourceCodeLocation sourceCodeLocation)
        Constructor of the class.

        TODO(oana): Deal with the situation that we have an unrecognized function.

        Parameters:
        function - function
        sourceCodeLocation - sourceCodeLocation
      • CssFunctionNode

        public CssFunctionNode​(CssFunctionNode function)
        Copy constructor.
        Parameters:
        function - function
      • CssFunctionNode

        protected CssFunctionNode​(@Nullable
                                  SourceCodeLocation sourceCodeLocation,
                                  @Nullable
                                  CssFunctionNode.Function function)
        Constructor used by the proxy mechanism, avoids unnecessary arguments node initialization.

        NOTE(dgajda): The signature of this constructor only differs in argument order from the main constructor of this class.

        Parameters:
        function - implementation of the function which is "called" by this node
        sourceCodeLocation - location of this node
    • Method Detail

      • getFunctionName

        public java.lang.String getFunctionName()
      • toString

        public java.lang.String toString()
        Description copied from class: CssValueNode
        Use for debugging only.
        Overrides:
        toString in class CssValueNode
        See Also:
        Object.toString()
      • 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
      • 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
      • getValue

        public java.lang.String getValue()
        Print the node instead of null when this node is a parameter.
        Overrides:
        getValue in class CssValueNode