本文整理匯總了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;
}
}