org.geotools.filter.LiteralExpressionImpl Java Examples

The following examples show how to use org.geotools.filter.LiteralExpressionImpl. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IsLessThanEqualTo.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates the filter.
 *
 * @param parameterList the parameter list
 * @return the filter
 */
@Override
public Filter createFilter(List<Expression> parameterList) {
    IsLessThenOrEqualToImpl filter = null;

    if ((parameterList == null) || (parameterList.size() < 2) || (parameterList.size() > 3)) {
        filter = new IsLessThanOrEqualToExtended();
    } else {
        LiteralExpressionImpl matchCase = (LiteralExpressionImpl) parameterList.get(2);

        filter =
                new IsLessThanOrEqualToExtended(
                        parameterList.get(0),
                        parameterList.get(1),
                        (Boolean) matchCase.getValue());
    }

    return filter;
}
 
Example #2
Source File: DataSourceAttributePanel.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Sets the attribute.
 *
 * @param expression the new attribute
 */
public void setAttribute(Expression expression) {
    String propertyName = null;

    if (expression instanceof PropertyExistsFunction) {
        Expression e = ((PropertyExistsFunction) expression).getParameters().get(0);
        Object value = ((LiteralExpressionImpl) e).getValue();
        propertyName = ((AttributeExpressionImpl) value).getPropertyName();
    } else if (expression instanceof AttributeExpressionImpl) {
        propertyName = ((AttributeExpressionImpl) expression).getPropertyName();
    } else if (expression instanceof LiteralExpressionImpl) {
        propertyName =
                AttributeUtils.extract(
                        (String) ((LiteralExpressionImpl) expression).getValue());
    }

    if (propertyName != null) {
        oldValueObj = propertyName;

        attributeComboBox.setSelectedItem(propertyName);
    } else {
        oldValueObj = propertyName;
        attributeComboBox.setSelectedIndex(-1);
    }
}
 
Example #3
Source File: PolygonFillDetails.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Option selected.
 *
 * @param fieldPanelId the field panel id
 * @param selectedItem the selected item
 */
@Override
public void optionSelected(Class<?> fieldPanelId, String selectedItem) {

    setSymbolTypeVisibility(fieldPanelId, selectedItem);

    selectedFillPanelId = fieldPanelId;

    FieldConfigBase fieldConfig = fieldConfigManager.get(FieldIdEnum.SIZE);
    if (fieldConfig.isEnabled()) {
        Expression expression = fieldConfig.getExpression();

        if (expression instanceof LiteralExpressionImpl) {
            LiteralExpressionImpl l = (LiteralExpressionImpl) expression;
            Double d = (Double) l.getValue();
            if (d <= 0.0) {
                fieldConfigVisitor.populateField(
                        FieldIdEnum.SIZE, getFilterFactory().literal(1));
            }
        }
    }

    dataHasChanged();
}
 
Example #4
Source File: FilterToCQLTool.java    From geowave with Apache License 2.0 6 votes vote down vote up
public FixedDWithinImpl(
    final Expression e1,
    final Expression e2,
    final String units,
    final double distance,
    final MatchAction matchAction) throws IllegalFilterException, TransformException {
  super(
      new LiteralExpressionImpl(
          GeometryUtils.buffer(
              getCRS(e1, e2),
              e1.evaluate(null, org.locationtech.jts.geom.Geometry.class),
              units,
              distance).getLeft()),
      e2,
      matchAction);
  this.units = units;
  this.distance = distance;
}
 
Example #5
Source File: ExtractAttributes.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Extract attribute.
 *
 * @param attributeType the attribute type
 * @param expression the expression
 * @param foundList the found list
 * @return the class
 */
protected Class<?> extractAttribute(
        Class<?> attributeType, Expression expression, List<String> foundList) {
    Class<?> returnType = String.class;

    if (expression instanceof AttributeExpressionImpl) {
        AttributeExpressionImpl attribute = (AttributeExpressionImpl) expression;
        extractPropertyAttribute(attributeType, foundList, attribute);
    } else if (expression instanceof Function) {
        Function function = (Function) expression;
        returnType = extractFunctionAttribute(foundList, function);
    } else if (expression instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) expression;
        returnType = extractLiteralAttribute(returnType, literal);
    }

    return returnType;
}
 
Example #6
Source File: FilterToCQLTool.java    From geowave with Apache License 2.0 6 votes vote down vote up
public FixedDWithinImpl(
    final Expression e1,
    final Expression e2,
    final String units,
    final double distance) throws IllegalFilterException, TransformException {
  super(
      new LiteralExpressionImpl(
          GeometryUtils.buffer(
              getCRS(e1, e2),
              e1 instanceof PropertyName
                  ? e2.evaluate(null, org.locationtech.jts.geom.Geometry.class)
                  : e1.evaluate(null, org.locationtech.jts.geom.Geometry.class),
              units,
              distance).getLeft()),
      e1 instanceof PropertyName ? e1 : e2);
  this.units = units;
  this.distance = distance;
}
 
Example #7
Source File: AttributeSelection.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Populate.
 *
 * @param expression the expression
 */
public void populateAttributeComboxBox(Expression expression) {

    String panelName;

    // Clear out any old values
    expressionPanel.populateExpression(null);
    dataSourceAttributePanel.setAttribute(null);

    if (expression == null) {
        panelName = ValueSubPanel.getPanelName();
    } else if (expression instanceof NilExpression) {
        panelName = ValueSubPanel.getPanelName();
    } else if (expression instanceof ConstantExpression) {
        panelName = ValueSubPanel.getPanelName();
    } else if (expression instanceof LiteralExpressionImpl) {
        panelName = ValueSubPanel.getPanelName();
    } else if (expression instanceof AttributeExpressionImpl) {
        panelName = DataSourceAttributePanel.getPanelName();
    } else {
        panelName = ExpressionSubPanel.getPanelName();
    }

    oldValueObj = panelName;
    attributeChooserComboBox.setSelectedItem(panelName);
}
 
Example #8
Source File: PointFillDetails.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Option selected.
 *
 * @param fieldPanelId the field panel id
 * @param selectedItem the selected item
 */
@Override
public void optionSelected(Class<?> fieldPanelId, String selectedItem) {

    setSymbolTypeVisibility(fieldPanelId, selectedItem);

    selectedFillPanelId = fieldPanelId;

    FieldConfigBase fieldConfig = fieldConfigManager.get(FieldIdEnum.SIZE);
    if (fieldConfig.isEnabled()) {
        Expression expression = fieldConfig.getExpression();

        if (expression instanceof LiteralExpressionImpl) {
            LiteralExpressionImpl l = (LiteralExpressionImpl) expression;
            Double d = (Double) l.getValue();
            if (d <= 0.0) {
                fieldConfigVisitor.populateField(
                        FieldIdEnum.SIZE, getFilterFactory().literal(1));
            }
        }
    }

    dataHasChanged();
}
 
Example #9
Source File: FieldConfigBase.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Populate literal expression.
 *
 * @param expression the expression
 */
private void populateLiteralExpression(Expression expression) {
    LiteralExpressionImpl lExpression = (LiteralExpressionImpl) expression;

    Object objValue = lExpression.getValue();

    if (objValue instanceof AttributeExpressionImpl) {
        expressionType = ExpressionTypeEnum.E_ATTRIBUTE;

        if (attributeSelectionPanel != null) {
            attributeSelectionPanel.setAttribute((AttributeExpressionImpl) objValue);
        }

        setCachedExpression((AttributeExpressionImpl) objValue);
    } else {
        expressionType = ExpressionTypeEnum.E_VALUE;

        populateExpression(objValue);

        valueUpdated();
    }
}
 
Example #10
Source File: FieldConfigMarker.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Accept.
 *
 * @param symbol the symbol
 * @return true, if successful
 */
@Override
public boolean accept(GraphicalSymbol symbol) {
    if (symbol instanceof MarkImpl) {
        MarkImpl marker = (MarkImpl) symbol;

        Expression expression = marker.getWellKnownName();

        if (expression instanceof LiteralExpressionImpl) {
            LiteralExpressionImpl lExpression = (LiteralExpressionImpl) expression;

            Object value = lExpression.getValue();
            if (value instanceof String) {
                String valueString = (String) value;

                List<ValueComboBoxData> localSymbolList = getLocalSymbolList();
                for (ValueComboBoxData data : localSymbolList) {
                    if (data.getKey().compareTo(valueString) == 0) {
                        return true;
                    }
                }
            }
        }
    }
    return false;
}
 
Example #11
Source File: AttributeSelection.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Populate.
 *
 * @param expression the expression
 */
public void populate(Expression expression) {
    if (expression != null) {
        populateAttributeComboxBox(expression);

        if ((expression instanceof NilExpression)
                || (expression instanceof ConstantExpression)
                || (expression instanceof LiteralExpressionImpl)) {
            valuePanel.populateExpression(expression);
        } else if (expression instanceof AttributeExpressionImpl) {
            setAttribute(expression);
        } else {
            expressionPanel.populateExpression(expression);
        }
    }
}
 
Example #12
Source File: FieldConfigArrow.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Accept.
 *
 * @param symbol the symbol
 * @return true, if successful
 */
@Override
public boolean accept(GraphicalSymbol symbol) {
    if (symbol instanceof MarkImpl) {
        MarkImpl marker = (MarkImpl) symbol;

        Expression expression = marker.getWellKnownName();

        if (expression instanceof LiteralExpressionImpl) {
            LiteralExpressionImpl lExpression = (LiteralExpressionImpl) expression;

            Object value = lExpression.getValue();
            if (value instanceof String) {
                String valueString = (String) value;

                if (valueString.startsWith(ArrowUtils.getArrowPrefix())) {
                    return true;
                }
            }
        }
    }
    return false;
}
 
Example #13
Source File: DetailsUtilities.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Gets the value from an expression.
 *
 * @param expression the expression
 * @return the value
 */
private static double getValue(Expression expression) {
    Object objValue = null;
    if (expression instanceof ConstantExpression) {
        objValue = ((ConstantExpression) expression).getValue();
    } else if (expression instanceof LiteralExpressionImpl) {
        objValue = ((LiteralExpressionImpl) expression).getValue();
    }

    if (objValue instanceof Double) {
        return ((Double) objValue).doubleValue();
    } else if (objValue instanceof Long) {
        return ((Long) objValue).doubleValue();
    } else if (objValue instanceof Integer) {
        return ((Integer) objValue).doubleValue();
    } else if (objValue instanceof String) {
        return Double.parseDouble((String) objValue);
    }

    return 0.0;
}
 
Example #14
Source File: EnvironmentVariableManager.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Gets the data type.
 *
 * @param envVarLiteral the env var literal
 * @return the data type
 */
/*
 * (non-Javadoc)
 *
 * @see com.sldeditor.filter.v2.envvar.EnvironmentManagerInterface#getDataType(org.opengis.filter.expression.Expression)
 */
@Override
public Class<?> getDataType(Expression envVarLiteral) {
    if (envVarLiteral instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) envVarLiteral;
        for (EnvVar envVar : envVarList) {
            if (envVar.getName().compareTo((String) literal.getValue()) == 0) {
                return envVar.getType();
            }
        }
    }
    return Object.class;
}
 
Example #15
Source File: IsLessThan.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates the filter.
 *
 * @param parameterList the parameter list
 * @return the filter
 */
@Override
public Filter createFilter(List<Expression> parameterList) {
    IsLessThenImpl filter = null;

    if ((parameterList == null) || (parameterList.size() < 2) || (parameterList.size() > 3)) {
        filter = new IsLessThanExtended();
    } else {
        LiteralExpressionImpl matchCase = (LiteralExpressionImpl) parameterList.get(2);

        filter =
                new IsLessThanExtended(
                        parameterList.get(0),
                        parameterList.get(1),
                        (Boolean) matchCase.getValue());
    }

    return filter;
}
 
Example #16
Source File: FieldConfigWindBarbs.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Accept.
 *
 * @param symbol the symbol
 * @return true, if successful
 */
@Override
public boolean accept(GraphicalSymbol symbol) {
    if (symbol != null) {
        if (symbol instanceof MarkImpl) {
            MarkImpl marker = (MarkImpl) symbol;

            Expression expression = marker.getWellKnownName();

            if (expression instanceof LiteralExpressionImpl) {
                LiteralExpressionImpl lExpression = (LiteralExpressionImpl) expression;

                Object value = lExpression.getValue();
                if (value instanceof String) {
                    String valueString = (String) value;

                    if (valueString.startsWith(WINDBARBS_PREFIX)) {
                        return true;
                    }
                }
            }
        }
    }
    return false;
}
 
Example #17
Source File: IsNotEqualTo.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates the filter.
 *
 * @param parameterList the parameter list
 * @return the filter
 */
@Override
public Filter createFilter(List<Expression> parameterList) {
    IsNotEqualToImpl filter = null;

    if ((parameterList == null) || (parameterList.size() != 3)) {
        filter = new IsNotEqualToExtended();
    } else {
        LiteralExpressionImpl matchCase = (LiteralExpressionImpl) parameterList.get(2);

        filter =
                new IsNotEqualToExtended(
                        parameterList.get(0),
                        parameterList.get(1),
                        (Boolean) matchCase.getValue());
    }

    return filter;
}
 
Example #18
Source File: IsGreaterThanEqualTo.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates the filter.
 *
 * @param parameterList the parameter list
 * @return the filter
 */
@Override
public Filter createFilter(List<Expression> parameterList) {
    IsGreaterThanOrEqualToImpl filter = null;

    if ((parameterList == null) || (parameterList.size() < 2) || (parameterList.size() > 3)) {
        filter = new IsGreaterThanOrEqualToExtended();
    } else {
        LiteralExpressionImpl matchCase = (LiteralExpressionImpl) parameterList.get(2);

        filter =
                new IsGreaterThanOrEqualToExtended(
                        parameterList.get(0),
                        parameterList.get(1),
                        (Boolean) matchCase.getValue());
    }

    return filter;
}
 
Example #19
Source File: IsEqualTo.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates the filter.
 *
 * @param parameterList the parameter list
 * @return the filter
 */
@Override
public Filter createFilter(List<Expression> parameterList) {
    IsEqualsToImpl filter = null;

    if ((parameterList == null) || (parameterList.size() != 3)) {
        filter = new IsEqualToExtended();
    } else {
        LiteralExpressionImpl matchCase = (LiteralExpressionImpl) parameterList.get(2);

        filter =
                new IsEqualToExtended(
                        parameterList.get(0),
                        parameterList.get(1),
                        (Boolean) matchCase.getValue());
    }
    return filter;
}
 
Example #20
Source File: IsLike.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates the filter.
 *
 * @param parameterList the parameter list
 * @return the filter
 */
@Override
public Filter createFilter(List<Expression> parameterList) {

    LikeFilterImpl filter = null;
    if ((parameterList == null) || parameterList.size() != 6) {
        filter = new IsLikeExtended();
    } else {
        LiteralExpressionImpl pattern = (LiteralExpressionImpl) parameterList.get(1);
        LiteralExpressionImpl wildcardMulti = (LiteralExpressionImpl) parameterList.get(2);
        LiteralExpressionImpl wildcardSingle = (LiteralExpressionImpl) parameterList.get(3);
        LiteralExpressionImpl escape = (LiteralExpressionImpl) parameterList.get(4);
        LiteralExpressionImpl matchCase = (LiteralExpressionImpl) parameterList.get(5);

        filter =
                new IsLikeExtended(
                        parameterList.get(0),
                        (String) pattern.getValue(),
                        (String) wildcardMulti.getValue(),
                        (String) wildcardSingle.getValue(),
                        (String) escape.getValue(),
                        (Boolean) matchCase.getValue());
    }

    return filter;
}
 
Example #21
Source File: FloatValues.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@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;
    }
}
 
Example #22
Source File: NumberValues.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@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;
    }
}
 
Example #23
Source File: BooleanValues.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@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;
    }
}
 
Example #24
Source File: FilterPanelv2.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * 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;

        return addFunctionExpression(node, expression, functionExpression);
    } else if (expression instanceof MathExpressionImpl) {
        MathExpressionImpl mathExpression = (MathExpressionImpl) expression;
        return addMathsExpression(node, mathExpression);
    } else if (expression instanceof Function) {
        Function function = (Function) expression;
        return addFunction(node, function);
    }
    return null;
}
 
Example #25
Source File: EnumValues.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue != 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);
            }
        }
    }
}
 
Example #26
Source File: IntegerValues.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@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;
    }
}
 
Example #27
Source File: StringValues.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue != 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();
        }
    }
}
 
Example #28
Source File: TextAreaValues.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue != 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();
        }
    }
}
 
Example #29
Source File: CoordinateReferenceSystemValues.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@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);
        }
    }
}
 
Example #30
Source File: DoubleValues.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@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;
    }
}