Class SearchCompiler.CoreUnaryMatchFactory
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.CoreUnaryMatchFactory
-
- All Implemented Interfaces:
SearchCompiler.MatchFactory
,SearchCompiler.UnaryMatchFactory
- Enclosing class:
- SearchCompiler
public static class SearchCompiler.CoreUnaryMatchFactory extends java.lang.Object implements SearchCompiler.UnaryMatchFactory
The coreSearchCompiler.UnaryMatch
factory
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Collection<java.lang.String>
keywords
-
Constructor Summary
Constructors Constructor Description CoreUnaryMatchFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchCompiler.UnaryMatch
get(java.lang.String keyword, SearchCompiler.Match matchOperand, PushbackTokenizer tokenizer)
Get theSearchCompiler.UnaryMatch
objectjava.util.Collection<java.lang.String>
getKeywords()
-
-
-
Field Detail
-
keywords
private static final java.util.Collection<java.lang.String> keywords
-
-
Constructor Detail
-
CoreUnaryMatchFactory
public CoreUnaryMatchFactory()
-
-
Method Detail
-
get
public SearchCompiler.UnaryMatch get(java.lang.String keyword, SearchCompiler.Match matchOperand, PushbackTokenizer tokenizer)
Description copied from interface:SearchCompiler.UnaryMatchFactory
Get theSearchCompiler.UnaryMatch
object- Specified by:
get
in interfaceSearchCompiler.UnaryMatchFactory
- Parameters:
keyword
- The keyword to get/create the correctSearchCompiler.UnaryMatch
objectmatchOperand
- May be used to construct theSearchCompiler.UnaryMatch
objecttokenizer
- May be used to construct theSearchCompiler.UnaryMatch
object- Returns:
- The
SearchCompiler.UnaryMatch
object for the keyword and its arguments
-
getKeywords
public java.util.Collection<java.lang.String> getKeywords()
- Specified by:
getKeywords
in interfaceSearchCompiler.MatchFactory
-
-