Class StringLiteral

    • Field Detail

      • value

        public final String value
    • Constructor Detail

      • StringLiteral

        public StringLiteral​(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