本文整理匯總了Java中gudusoft.gsqlparser.EExpressionType.simple_constant_t方法的典型用法代碼示例。如果您正苦於以下問題:Java EExpressionType.simple_constant_t方法的具體用法?Java EExpressionType.simple_constant_t怎麽用?Java EExpressionType.simple_constant_t使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類gudusoft.gsqlparser.EExpressionType
的用法示例。
在下文中一共展示了EExpressionType.simple_constant_t方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: isIntervalValueExpression
import gudusoft.gsqlparser.EExpressionType; //導入方法依賴的package包/類
private boolean isIntervalValueExpression( TExpression expression )
{
if ( expression.getExpressionType( ) == EExpressionType.arithmetic_plus_t
|| expression.getExpressionType( ) == EExpressionType.arithmetic_minus_t )
{
if ( expression.getLeftOperand( ) != null )
return isIntervalValueExpression( expression.getLeftOperand( ) );
else
return false;
}
else if ( expression.getExpressionType( ) == EExpressionType.simple_constant_t )
{
if ( Utility.isIntervalTypeValue( expression.toString( ) ) )
{
return true;
}
}
return false;
}
示例2: isStringValueExpression
import gudusoft.gsqlparser.EExpressionType; //導入方法依賴的package包/類
private boolean isStringValueExpression( TExpression expression )
{
if ( expression.getExpressionType( ) == EExpressionType.concatenate_t )
{
return true;
}
else if ( expression.getExpressionType( ) == EExpressionType.simple_constant_t )
{
if ( Utility.isString( expression.toString( ) ) )
{
return true;
}
}
else if ( expression.getExpressionType( ) == EExpressionType.function_t )
{
String functionName = expression.getFunctionCall( )
.getFunctionName( )
.toString( );
if ( Utility.isStringValueFunction( functionName ) )
{
return true;
}
}
return false;
}
示例3: isNumericValueExpression
import gudusoft.gsqlparser.EExpressionType; //導入方法依賴的package包/類
private boolean isNumericValueExpression( TExpression expression )
{
if ( expression.getExpressionType( ) == EExpressionType.arithmetic_plus_t
|| expression.getExpressionType( ) == EExpressionType.arithmetic_minus_t
|| expression.getExpressionType( ) == EExpressionType.arithmetic_divide_t
|| expression.getExpressionType( ) == EExpressionType.arithmetic_times_t
|| expression.getExpressionType( ) == EExpressionType.unary_plus_t
|| expression.getExpressionType( ) == EExpressionType.unary_minus_t )
{
if ( expression.getLeftOperand( ) != null )
{
boolean isDateType = isDateTypeValueExpression( expression.getLeftOperand( ) );
if ( isDateType )
return false;
}
return true;
}
else if ( expression.getExpressionType( ) == EExpressionType.simple_constant_t )
{
if ( Utility.isNumber( expression.toString( ) ) )
{
return true;
}
}
else if ( expression.getExpressionType( ) == EExpressionType.function_t )
{
String functionName = expression.getFunctionCall( )
.getFunctionName( )
.toString( );
if ( Utility.isNumericValueFunction( functionName )
|| Utility.isAggregateFunction( functionName ) )
{
return true;
}
}
return false;
}