Interface LiteralVisitor<T>

  • Type Parameters:
    T - the return type of the visitor.

    public interface LiteralVisitor<T>
    Literal visitor interface.
    • Method Detail

      • visitBoolean

        T visitBoolean​(boolean b)
        Visits a boolean literal.
        Parameters:
        b - the boolean literal value.
        Returns:
        the value from the visitor.
      • visitString

        T visitString​(Template value)
        Visits a string literal.
        Parameters:
        value - the template value.
        Returns:
        the value from the visitor.
      • visitRecord

        T visitRecord​(java.util.Map<Identifier,​Literal> members)
        Visits a record literal.
        Parameters:
        members - the map of keys to literal values.
        Returns:
        the value from the visitor.
      • visitTuple

        T visitTuple​(java.util.List<Literal> members)
        Visits a tuple literal.
        Parameters:
        members - the list of literal values.
        Returns:
        the value from the visitor.
      • visitInteger

        T visitInteger​(int value)
        Visits a integer literal.
        Parameters:
        value - the value literal value.
        Returns:
        the value from the visitor.