Class MatcherRequireAction
- java.lang.Object
-
- nl.basjes.parse.useragent.analyze.MatcherAction
-
- nl.basjes.parse.useragent.analyze.MatcherRequireAction
-
- All Implemented Interfaces:
Serializable
public class MatcherRequireAction extends MatcherAction
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class nl.basjes.parse.useragent.analyze.MatcherAction
matcher, mustHaveMatches
-
-
Constructor Summary
Constructors Constructor Description MatcherRequireAction(String config, Matcher matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
inform(String key, WalkList.WalkResult foundValue)
long
initialize()
boolean
obtainResult()
Called after all nodes have been notified.protected org.antlr.v4.runtime.ParserRuleContext
parseWalkerExpression(UserAgentTreeWalkerParser parser)
void
reset()
protected void
setFixedValue(String fixedValue)
String
toString()
-
Methods inherited from class nl.basjes.parse.useragent.analyze.MatcherAction
destroy, getMatches, getMatchExpression, inform, setVerbose
-
-
-
-
Method Detail
-
parseWalkerExpression
protected org.antlr.v4.runtime.ParserRuleContext parseWalkerExpression(UserAgentTreeWalkerParser parser)
- Specified by:
parseWalkerExpression
in classMatcherAction
-
initialize
public long initialize()
- Overrides:
initialize
in classMatcherAction
-
setFixedValue
protected void setFixedValue(String fixedValue)
- Specified by:
setFixedValue
in classMatcherAction
-
inform
public void inform(String key, WalkList.WalkResult foundValue)
- Specified by:
inform
in classMatcherAction
-
obtainResult
public boolean obtainResult()
Description copied from class:MatcherAction
Called after all nodes have been notified.- Specified by:
obtainResult
in classMatcherAction
- Returns:
- true if the obtainResult result was valid. False will fail the entire matcher this belongs to.
-
reset
public void reset()
- Overrides:
reset
in classMatcherAction
-
toString
public String toString()
- Overrides:
toString
in classMatcherAction
-
-