本文整理汇总了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;
}