Class Matcher
java.lang.Object
nl.basjes.parse.useragent.analyze.Matcher
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionMatcher
(MatchMaker analyzer, Collection<String> wantedFieldNames, MatcherConfig matcherConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
analyze
(UserAgent.MutableUserAgent userAgent) Fires all matcher actions.void
destroy()
protected void
long
long
boolean
void
informMeAbout
(MatcherAction matcherAction, String keyPattern) void
informMeAboutPrefix
(MatcherAction matcherAction, String keyPattern, String prefix) void
void
lookingForRange
(String treeName, WordRangeVisitor.Range range) void
reset()
void
setVerboseTemporarily
(boolean newVerbose) toString()
-
Constructor Details
-
Matcher
public Matcher(MatchMaker analyzer, Collection<String> wantedFieldNames, MatcherConfig matcherConfig) throws UselessMatcherException - Throws:
UselessMatcherException
-
-
Method Details
-
getMatcherSourceLocation
-
getSourceFileName
-
getSourceFileLineNumber
-
destroy
public void destroy() -
getLookups
-
getLookupSets
-
initialize
public void initialize() -
getAllPossibleFieldNames
-
lookingForRange
-
informMeAbout
-
informMeAboutPrefix
-
analyze
Fires all matcher actions. IFF all success then we tell the userAgent- Parameters:
userAgent
- The useragent that needs to analyzed
-
getVerbose
public boolean getVerbose() -
getActionsThatRequireInput
public long getActionsThatRequireInput() -
getActionsThatRequireInputAndReceivedInput
public long getActionsThatRequireInputAndReceivedInput() -
failImmediately
protected void failImmediately() -
setVerboseTemporarily
public void setVerboseTemporarily(boolean newVerbose) -
reset
public void reset() -
getMatches
-
getUsedMatches
-
toString
-