Class LiteralExpression<T>

java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.expression.AbstractExpression<T>
io.micronaut.data.model.jpa.criteria.impl.expression.LiteralExpression<T>
Type Parameters:
T - The literal type
All Implemented Interfaces:
IExpression<T>, ISelection<T>, jakarta.persistence.criteria.Expression<T>, jakarta.persistence.criteria.Selection<T>, jakarta.persistence.TupleElement<T>

@Internal public final class LiteralExpression<T> extends AbstractExpression<T>
The literal expression implementation.
Since:
3.2
Author:
Denis Stepanov
  • Constructor Details

    • LiteralExpression

      public LiteralExpression(Class<T> clazz)
    • LiteralExpression

      public LiteralExpression(@Nullable T object)
  • Method Details

    • getValue

      public T getValue()
    • visitExpression

      public void visitExpression(ExpressionVisitor expressionVisitor)
      Description copied from interface: IExpression
      Visit the expression.
      Parameters:
      expressionVisitor - The expression visitor
    • toString

      public String toString()
      Overrides:
      toString in class Object