Class Matcher

java.lang.Object
nl.basjes.parse.useragent.analyze.Matcher
All Implemented Interfaces:
Serializable

public class Matcher extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • getMatcherSourceLocation

      public String getMatcherSourceLocation()
    • getSourceFileName

      public String getSourceFileName()
    • getSourceFileLineNumber

      public Integer getSourceFileLineNumber()
    • destroy

      public void destroy()
    • getLookups

      public Map<String,Map<String,String>> getLookups()
    • getLookupSets

      public Map<String,Set<String>> getLookupSets()
    • initialize

      public void initialize()
    • getAllPossibleFieldNames

      public Set<String> getAllPossibleFieldNames()
    • lookingForRange

      public void lookingForRange(String treeName, WordRangeVisitor.Range range)
    • informMeAbout

      public void informMeAbout(MatcherAction matcherAction, String keyPattern)
    • informMeAboutPrefix

      public void informMeAboutPrefix(MatcherAction matcherAction, String keyPattern, String prefix)
    • analyze

      public void analyze(UserAgent.MutableUserAgent userAgent)
      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

      public List<MatchesList.Match> getMatches()
    • getUsedMatches

      public List<MatchesList.Match> getUsedMatches()
    • toString

      public String toString()
      Overrides:
      toString in class Object