当前位置: 首页>>代码示例>>Java>>正文


Java Addition类代码示例

本文整理汇总了Java中net.sf.jsqlparser.expression.operators.arithmetic.Addition的典型用法代码示例。如果您正苦于以下问题:Java Addition类的具体用法?Java Addition怎么用?Java Addition使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Addition类属于net.sf.jsqlparser.expression.operators.arithmetic包,在下文中一共展示了Addition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: visitBinaryExpression

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
protected ISqlExpression visitBinaryExpression(BinaryExpression binaryExpression)
{
   binaryExpression.getLeftExpression().accept(this);
   ISqlExpression leftParameter = getExpression();
   
   binaryExpression.getRightExpression().accept(this);
   ISqlExpression rightParameter = getExpression();
   
   if (binaryExpression instanceof Addition) {
      return sSqlFactory.createAdditionExpression(leftParameter, rightParameter);
   }
   else if (binaryExpression instanceof Subtraction) {
      return sSqlFactory.createSubstractExpression(leftParameter, rightParameter);
   }
   else if (binaryExpression instanceof Multiplication) {
      return sSqlFactory.createMultiplyExpression(leftParameter, rightParameter);
   }
   else if (binaryExpression instanceof Division) {
      return sSqlFactory.createDivideExpression(leftParameter, rightParameter);
   }
   else if (binaryExpression instanceof Concat) {
      return sSqlFactory.createConcatExpression(leftParameter, rightParameter);
   }
   throw new UnsupportedSqlExpressionException(binaryExpression.toString());
}
 
开发者ID:obidea,项目名称:semantika,代码行数:26,代码来源:SelectItemHandler.java

示例2: getExpressionResultType

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
private String getExpressionResultType(List<ProjectionItem> fromProjections) throws AmbiguousCoalesceException {
	String leftTypeName = getTypeFromSubExpression(expression.getLeftExpression(), fromProjections);
	String rightTypeName = getTypeFromSubExpression(expression.getRightExpression(), fromProjections);
	
	if (expression instanceof Multiplication || expression instanceof Addition || expression instanceof Subtraction) {
		return getIntegerPreservingType(leftTypeName, rightTypeName);
	} else if (expression instanceof Division) {
		return "java.lang.Double";
	}
	
	// tbd: better fault handling
	return null;
}
 
开发者ID:sebastianoe,项目名称:s4j,代码行数:14,代码来源:BinaryExpressionProjector.java

示例3: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
@Override
public void visit(Addition addition)
{
   mExpression = visitBinaryExpression(addition);
   if (mOpenParenthesisCount != 0) {
      decreaseOpenParenthesisCount();
   }
}
 
开发者ID:obidea,项目名称:semantika,代码行数:9,代码来源:SelectItemHandler.java

示例4: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
@Override
public void visit(Addition expr)
{
	invalid = true;
	super.visit(expr);
}
 
开发者ID:olavloite,项目名称:spanner-jdbc,代码行数:7,代码来源:DMLWhereClauseVisitorAdapter.java

示例5: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
@Override
public void visit(Addition expr) {
    visitBinaryExpression(expr);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:ExpressionVisitorAdapter.java

示例6: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
@Override
public void visit(Addition addition) {
    visitBinaryExpression(addition, " + ");
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:ExpressionDeParser.java

示例7: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
@Override
public void visit(Addition addition) {
    visitBinaryExpression(addition);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:TablesNamesFinder.java

示例8: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
@Override
public void visit(Addition addition) {
    // TODO Auto-generated method stub
    
}
 
开发者ID:devpage,项目名称:sharding-quickstart,代码行数:6,代码来源:TablesNamesFinder.java

示例9: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
@Override
public void visit(Addition adtn) {
    acceptBinaryExpression(adtn);
}
 
开发者ID:diennea,项目名称:herddb,代码行数:5,代码来源:ColumnReferencesDiscovery.java

示例10: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
@Override
public void visit(Addition arg0) {
   log.debug("sql expression = " + arg0.toString());
   value = arg0.toString();
}
 
开发者ID:Wolfgang-Winter,项目名称:cibet,代码行数:6,代码来源:SqlExpressionParser.java

示例11: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
public void visit(Addition addition) {
	visitBinaryExpression(addition);
}
 
开发者ID:UBOdin,项目名称:jsqlparser,代码行数:4,代码来源:TablesNamesFinder.java

示例12: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
@Override
public void visit(Addition arg0) {
	isSimple = false;
}
 
开发者ID:coastland,项目名称:gsp-dba-maven-plugin,代码行数:5,代码来源:ViewAnalyzer.java

示例13: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
public void visit(Addition addition) {
    visitBinaryExpression(addition, (addition.getComment() != null ? " " + addition.getComment() + ExpressionDeParser.LINE_SEPARATOR : "") + " + ");
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:ExpressionDeParser.java

示例14: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
public void visit(Addition addition) {
    visitBinaryExpression(addition);
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:TablesNamesFinder.java

示例15: visit

import net.sf.jsqlparser.expression.operators.arithmetic.Addition; //导入依赖的package包/类
public void visit(Addition addition) {
     visitBinaryExpression(addition);
}
 
开发者ID:qafedev,项目名称:qafe-platform,代码行数:4,代码来源:SelectItemFinder.java


注:本文中的net.sf.jsqlparser.expression.operators.arithmetic.Addition类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。