source: josm/trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Expression.java@ 17765

Last change on this file since 17765 was 10600, checked in by Don-vip, 8 years ago

see #11390 - sonar - squid:S1609 - Java 8: @FunctionalInterface annotation should be used to flag Single Abstract Method interfaces

  • Property svn:eol-style set to native
File size: 728 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.mappaint.mapcss;
3
4import org.openstreetmap.josm.gui.mappaint.Environment;
5
6/**
7 * A MapCSS Expression.
8 *
9 * Can be evaluated in a certain {@link Environment}. Usually takes
10 * parameters, that are also Expressions and have to be evaluated first.
11 * @since 3848 (creation)
12 * @since 10600 (functional interface)
13 */
14@FunctionalInterface
15public interface Expression {
16 /**
17 * Evaluate this expression.
18 * @param env The environment
19 * @return the result of the evaluation, can be a {@link java.util.List}, String or any
20 * primitive type or wrapper classes of a primitive type.
21 */
22 Object evaluate(Environment env);
23}
Note: See TracBrowser for help on using the repository browser.