Class DoubleLiteral

    • Field Detail

      • value

        public final double value
    • Constructor Detail

      • DoubleLiteral

        public DoubleLiteral​(double value)
      • DoubleLiteral

        public DoubleLiteral​(Double value)
      • DoubleLiteral

        public DoubleLiteral​(Float value)
      • DoubleLiteral

        public DoubleLiteral​(String value)
    • Method Detail

      • accept

        public void accept​(IVisitor visitor)
        Description copied from interface: ASTNode
        Accept the given visitor.
        Parameters:
        visitor - the AST node visitor
      • asString

        public String asString()
        Description copied from class: Literal
        Gets a string representation of the value.
        Specified by:
        asString in class Literal
        Returns:
        a string representation of the value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object