Class StringLiteral
- java.lang.Object
-
- com.exasol.sql.expression.literal.AbstractLiteral
-
- com.exasol.sql.expression.literal.StringLiteral
-
- All Implemented Interfaces:
Literal
,ValueExpression
public final class StringLiteral extends AbstractLiteral
This class represents string literals (or character literals in SQL terms).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(LiteralVisitor visitor)
Accept aLiteralVisitor
.static StringLiteral
of(char literal)
Create a newStringLiteral
from a character.static StringLiteral
of(String literal)
Create a newStringLiteral
from a string.String
toString()
-
Methods inherited from class com.exasol.sql.expression.literal.AbstractLiteral
accept
-
-
-
-
Method Detail
-
of
public static StringLiteral of(String literal)
Create a newStringLiteral
from a string.- Parameters:
literal
- content- Returns:
- new
StringLiteral
-
of
public static StringLiteral of(char literal)
Create a newStringLiteral
from a character.- Parameters:
literal
- content- Returns:
- new
StringLiteral
-
accept
public void accept(LiteralVisitor visitor)
Description copied from interface:Literal
Accept aLiteralVisitor
.- Parameters:
visitor
- visitor to accept
-
-