Changeset 16262 in josm for trunk/src/org/openstreetmap/josm/data/osm/search/SearchCompiler.java
- Timestamp:
- 2020-04-11T18:00:31+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/search/SearchCompiler.java
r16260 r16262 505 505 * Matches if the value of the corresponding key is ''yes'', ''true'', ''1'' or ''on''. 506 506 */ 507 p rivatestatic class BooleanMatch extends TaggedMatch {507 public static class BooleanMatch extends TaggedMatch { 508 508 private final String key; 509 509 private final boolean defaultValue; … … 512 512 this.key = key; 513 513 this.defaultValue = defaultValue; 514 } 515 516 public String getKey() { 517 return key; 514 518 } 515 519 … … 710 714 * Matches objects with the given key-value pair. 711 715 */ 712 p rivatestatic class KeyValue extends TaggedMatch {716 public static class KeyValue extends TaggedMatch { 713 717 private final String key; 714 718 private final Pattern keyPattern; … … 775 779 } 776 780 781 public String getKey() { 782 return key; 783 } 784 785 public String getValue() { 786 return value; 787 } 788 777 789 @Override 778 790 public String toString() { … … 891 903 public static class ExactKeyValue extends TaggedMatch { 892 904 893 enum Mode { 905 public enum Mode { 894 906 ANY, ANY_KEY, ANY_VALUE, EXACT, NONE, MISSING_KEY, 895 907 ANY_KEY_REGEXP, ANY_VALUE_REGEXP, EXACT_REGEXP, MISSING_KEY_REGEXP; … … 1003 1015 } 1004 1016 1017 public String getKey() { 1018 return key; 1019 } 1020 1021 public String getValue() { 1022 return value; 1023 } 1024 1025 public Mode getMode() { 1026 return mode; 1027 } 1028 1005 1029 @Override 1006 1030 public String toString() { … … 1148 1172 } 1149 1173 1150 p rivatestatic class ExactType extends Match {1174 public static class ExactType extends Match { 1151 1175 private final OsmPrimitiveType type; 1152 1176 … … 1157 1181 } 1158 1182 1183 public OsmPrimitiveType getType() { 1184 return type; 1185 } 1186 1159 1187 @Override 1160 1188 public boolean match(OsmPrimitive osm) { … … 1186 1214 * Matches objects last changed by the given username. 1187 1215 */ 1188 p rivatestatic class UserMatch extends Match {1216 public static class UserMatch extends Match { 1189 1217 private String user; 1190 1218 … … 1195 1223 this.user = user; 1196 1224 } 1225 } 1226 1227 public String getUser() { 1228 return user; 1197 1229 } 1198 1230
Note:
See TracChangeset
for help on using the changeset viewer.
