Class IntegerLiteral
- java.lang.Object
-
- com.exasol.sql.expression.literal.AbstractLiteral
-
- com.exasol.sql.expression.literal.IntegerLiteral
-
- All Implemented Interfaces:
Literal
,ValueExpression
public final class IntegerLiteral extends AbstractLiteral
This class represents integer literals.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(LiteralVisitor visitor)
Accept aLiteralVisitor
.int
getValue()
Get the value of theIntegerLiteral
.static IntegerLiteral
of(int value)
Create a newIntegerLiteral
from an integer.String
toString()
-
Methods inherited from class com.exasol.sql.expression.literal.AbstractLiteral
accept
-
-
-
-
Method Detail
-
of
public static IntegerLiteral of(int value)
Create a newIntegerLiteral
from an integer.- Parameters:
value
- content- Returns:
- new
IntegerLiteral
-
getValue
public int getValue()
Get the value of theIntegerLiteral
.- Returns:
- integer value
-
accept
public void accept(LiteralVisitor visitor)
Description copied from interface:Literal
Accept aLiteralVisitor
.- Parameters:
visitor
- visitor to accept
-
-