Class Literal

    • Constructor Detail

      • Literal

        public Literal​(ResolvedLiteral resolvedLiteral)
        Creates a new literal expression from the given resolved literal.
        Parameters:
        resolvedLiteral - The resolved literal
    • Method Detail

      • getType

        public com.blazebit.domain.runtime.model.DomainType getType()
        Returns the domain type of this expression.
        Specified by:
        getType in interface Expression
        Returns:
        the domain type of this expression
      • getResolvedLiteral

        public ResolvedLiteral getResolvedLiteral()
        Returns the resolved literal.
        Returns:
        the resolved literal
      • getValue

        public Object getValue()
        Returns the resolved literal value.
        Returns:
        the resolved literal value
      • accept

        public void accept​(Expression.Visitor visitor)
        Dynamic dispatch to one of the visit methods of the visitor, based on the runtime type.
        Specified by:
        accept in interface Expression
        Parameters:
        visitor - The visitor to call visit on
      • accept

        public <T> T accept​(Expression.ResultVisitor<T> visitor)
        Dynamic dispatch to one of the visit methods of the visitor, based on the runtime type.
        Specified by:
        accept in interface Expression
        Type Parameters:
        T - The result type
        Parameters:
        visitor - The visitor to call visit on
        Returns:
        the value as returned by the result visitor
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object