Package games.stendhal.common.parser
Class SimilarExprMatcher
java.lang.Object
games.stendhal.common.parser.ExpressionMatcher
games.stendhal.common.parser.SimilarExprMatcher
SimilarExprMatcher creates an ExpressionMatcher with similarity matching.
- Author:
- Martin Fuchs
-
Field Summary
Fields inherited from class games.stendhal.common.parser.ExpressionMatcher
caseInsensitive, exactMatching, jokerMatching, PM_SEPARATOR, similarMatching, typeMatching
-
Constructor Summary
-
Method Summary
Methods inherited from class games.stendhal.common.parser.ExpressionMatcher
clear, equals, getExactMatching, getSimilarMatching, getTypeMatching, hashCode, isAnyFlagSet, isCaseInsensitive, isEmpty, isJokerMatching, match, readMatchingFlags, setCaseInsensitive, setExactMatching, setJokerMatching, setSimilarMatching, setTypeMatching, toString
-
Constructor Details
-
SimilarExprMatcher
public SimilarExprMatcher()
-
-
Method Details
-
isSimilar
Check for string similarity giving a limit quotient. Comparison is case insensitive.- Parameters:
str1
-str2
-delta
-- Returns:
- true if similar
-