Last change
on this file since 8256 was 5705, checked in by bastiK, 11 years ago |
mapcss: rework of eval expressions; significant performance improvement; fixes a bug w.r.t. overloading of the 'length' function.
|
-
Property svn:eol-style
set to
native
|
File size:
641 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.mappaint.mapcss;
|
---|
3 |
|
---|
4 | import 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 | */
|
---|
12 | public interface Expression {
|
---|
13 | /**
|
---|
14 | * Evaluate this expression.
|
---|
15 | * @param env The environment
|
---|
16 | * @return the result of the evaluation, can be a {@link java.util.List}, String or any
|
---|
17 | * primitive type or wrapper classes of a primitive type.
|
---|
18 | */
|
---|
19 | Object evaluate(Environment env);
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.