org.eigenbase.sql
Class SqlAbstractStringLiteral

java.lang.Object
  extended by org.eigenbase.sql.SqlNode
      extended by org.eigenbase.sql.SqlLiteral
          extended by org.eigenbase.sql.SqlAbstractStringLiteral
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
SqlBinaryStringLiteral, SqlCharStringLiteral

abstract class SqlAbstractStringLiteral
extends SqlLiteral

Abstract base for chararacter and binary string literals.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql/SqlAbstractStringLiteral.java#10 $
Author:
wael

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eigenbase.sql.SqlLiteral
SqlLiteral.SqlSymbol
 
Field Summary
 
Fields inherited from class org.eigenbase.sql.SqlLiteral
value
 
Fields inherited from class org.eigenbase.sql.SqlNode
emptyArray
 
Constructor Summary
protected SqlAbstractStringLiteral(Object value, SqlTypeName typeName, SqlParserPos pos)
           
 
Method Summary
protected abstract  SqlAbstractStringLiteral concat1(SqlLiteral[] lits)
          Helper routine for SqlUtil.concatenateLiterals(org.eigenbase.sql.SqlLiteral[]).
 
Methods inherited from class org.eigenbase.sql.SqlLiteral
accept, bigDecimalValue, booleanValue, clone, createApproxNumeric, createBinaryString, createBinaryString, createBoolean, createCharString, createCharString, createDate, createExactNumeric, createInterval, createNegative, createNull, createSample, createSqlType, createSymbol, createTime, createTimestamp, createUnknown, equals, equalsDeep, getKind, getMonotonicity, getStringValue, getTypeName, getValue, hashCode, intValue, longValue, sampleValue, stringValue, symbolValue, toValue, unescapeUnicode, unparse, validate, valueMatchesType
 
Methods inherited from class org.eigenbase.sql.SqlNode
clone, cloneArray, equalDeep, findValidOptions, getParserPosition, isA, toSqlString, toSqlString, toString, validateExpr
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SqlAbstractStringLiteral

protected SqlAbstractStringLiteral(Object value,
                                   SqlTypeName typeName,
                                   SqlParserPos pos)
Method Detail

concat1

protected abstract SqlAbstractStringLiteral concat1(SqlLiteral[] lits)
Helper routine for SqlUtil.concatenateLiterals(org.eigenbase.sql.SqlLiteral[]).

Parameters:
lits - homogeneous StringLiteral[] args.
Returns:
StringLiteral with concatenated value. this == lits[0], used only for method dispatch.