本文整理汇总了Java中org.geotools.filter.MathExpressionImpl类的典型用法代码示例。如果您正苦于以下问题:Java MathExpressionImpl类的具体用法?Java MathExpressionImpl怎么用?Java MathExpressionImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MathExpressionImpl类属于org.geotools.filter包,在下文中一共展示了MathExpressionImpl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof LiteralExpressionImpl) {
value = ((Expression) aValue).toString();
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
} else {
if (aValue instanceof String) {
value = ((String) aValue);
}
}
}
示例2: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Integer) {
this.value = (Integer) aValue;
} else if (aValue instanceof LiteralExpressionImpl) {
LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
value = literal.evaluate(value, Integer.class);
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例3: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof LiteralExpressionImpl) {
LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
if (literal.getValue() != null) {
value = literal.toString();
}
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
} else {
if (aValue instanceof String) {
value = ((String) aValue);
}
}
}
示例4: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Double) {
this.value = (Double) aValue;
} else if (aValue instanceof LiteralExpressionImpl) {
LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
value = literal.evaluate(value, Double.class);
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例5: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof String) {
this.value = (String) aValue;
} else if (aValue instanceof LiteralExpressionImpl) {
LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
value = literal.evaluate(value, String.class);
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
} else {
this.value = aValue.toString();
}
}
示例6: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Boolean) {
this.value = (Boolean) aValue;
} else if (aValue instanceof LiteralExpressionImpl) {
LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
value = literal.evaluate(value, Boolean.class);
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例7: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Number) {
this.value = (Number) aValue;
} else if (aValue instanceof LiteralExpressionImpl) {
LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
value = literal.evaluate(value, Number.class);
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例8: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Float) {
this.value = (Float) aValue;
} else if (aValue instanceof Double) {
this.value = ((Double) aValue).floatValue();
} else if (aValue instanceof LiteralExpressionImpl) {
LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
value = literal.evaluate(value, Float.class);
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例9: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Long) {
this.value = (Long) aValue;
} else if (aValue instanceof LiteralExpressionImpl) {
LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
value = literal.evaluate(value, Long.class);
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例10: addExpression
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
/**
* Adds the expression.
*
* @param node the node
* @return the expression
*/
private Expression addExpression(ExpressionNode node) {
Expression expression = node.getExpression();
if (expression instanceof LiteralExpressionImpl) {
return expression;
} else if (expression instanceof AttributeExpressionImpl) {
return expression;
} else if (expression instanceof FunctionExpressionImpl) {
FunctionExpressionImpl functionExpression = (FunctionExpressionImpl) expression;
List<Expression> parameterlist = new ArrayList<Expression>();
for (int childIndex = 0; childIndex < node.getChildCount(); childIndex++) {
ExpressionNode childNode = (ExpressionNode) node.getChildAt(childIndex);
parameterlist.add(addExpression(childNode));
}
functionExpression.setParameters(parameterlist);
return functionExpression;
} else if (expression instanceof MathExpressionImpl) {
MathExpressionImpl mathExpression = (MathExpressionImpl) expression;
ExpressionNode leftChildNode = (ExpressionNode) node.getChildAt(0);
mathExpression.setExpression1(addExpression(leftChildNode));
ExpressionNode rightChildNode = (ExpressionNode) node.getChildAt(1);
mathExpression.setExpression2(addExpression(rightChildNode));
return mathExpression;
}
return null;
}
示例11: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Geometry) {
this.value = (Geometry) aValue;
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof LiteralExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例12: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof FeatureCollection) {
this.value = (FeatureCollection) aValue;
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof LiteralExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例13: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Envelope) {
this.value = (Envelope) aValue;
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof LiteralExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例14: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Range) {
this.value = (Range) aValue;
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof LiteralExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}
示例15: setValue
import org.geotools.filter.MathExpressionImpl; //导入依赖的package包/类
@Override
public void setValue(Object aValue) {
this.value = null;
this.expression = null;
if (aValue instanceof Date) {
this.value = (Date) aValue;
} else if ((aValue instanceof AttributeExpressionImpl)
|| (aValue instanceof LiteralExpressionImpl)
|| (aValue instanceof FunctionExpressionImpl)
|| (aValue instanceof MathExpressionImpl)) {
this.expression = (Expression) aValue;
}
}