Class StringLiteral
- java.lang.Object
-
- com.apple.foundationdb.relational.api.fluentsql.expression.StringLiteral
-
- All Implemented Interfaces:
ComparableExpressionTrait<DataType.StringType,Expression<DataType.StringType>>
,Expression<DataType.StringType>
,Literal<java.lang.String,DataType.StringType>
,ScalarExpression<DataType.StringType>
@Immutable @API(EXPERIMENTAL) public class StringLiteral extends java.lang.Object implements Literal<java.lang.String,DataType.StringType>
This represents a string literal.
-
-
Constructor Summary
Constructors Constructor Description StringLiteral(DataType.StringType type, java.lang.String literal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(FluentVisitor<R,C> visitor, C context)
boolean
equals(java.lang.Object other)
DataType.StringType
getType()
java.lang.String
getValue()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.ComparableExpressionTrait
greaterThan, greaterThanOrEquals, greatest, isEqualTo, lessThan, lessThanOrEqual, notEquals
-
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.ScalarExpression
isNotNull, isNull
-
-
-
-
Constructor Detail
-
StringLiteral
public StringLiteral(@Nonnull DataType.StringType type, @Nullable java.lang.String literal)
-
-
Method Detail
-
accept
@Nullable public <R,C> R accept(@Nonnull FluentVisitor<R,C> visitor, @Nonnull C context)
- Specified by:
accept
in interfaceExpression<DataType.StringType>
-
getType
@Nonnull public DataType.StringType getType()
- Specified by:
getType
in interfaceComparableExpressionTrait<DataType.StringType,Expression<DataType.StringType>>
- Specified by:
getType
in interfaceExpression<DataType.StringType>
-
getValue
@Nullable public java.lang.String getValue()
- Specified by:
getValue
in interfaceLiteral<java.lang.String,DataType.StringType>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-