Class Matcher
java.lang.Object
nl.basjes.parse.useragent.analyze.Matcher
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMatcher(MatchMaker analyzer, Collection<String> wantedFieldNames, MatcherConfig matcherConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidanalyze(UserAgent.MutableUserAgent userAgent) Fires all matcher actions.voiddestroy()protected voidlonglongbooleanvoidinformMeAbout(MatcherAction matcherAction, String keyPattern) voidinformMeAboutPrefix(MatcherAction matcherAction, String keyPattern, String prefix) voidvoidlookingForRange(String treeName, WordRangeVisitor.Range range) voidreset()voidsetVerboseTemporarily(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
-