Class MatcherRequireAction
java.lang.Object
nl.basjes.parse.useragent.analyze.MatcherAction
nl.basjes.parse.useragent.analyze.MatcherRequireAction
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Matcher.MatcherDemotedExtractAction
- See Also:
-
Field Summary
Fields inherited from class nl.basjes.parse.useragent.analyze.MatcherAction
matcher, mustHaveMatches -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinform(String key, WalkList.WalkResult foundValue) longbooleanCalled after all nodes have been notified.protected org.antlr.v4.runtime.ParserRuleContextvoidreset()protected voidsetFixedValue(String fixedValue) toString()Methods inherited from class nl.basjes.parse.useragent.analyze.MatcherAction
destroy, getMatches, getMatchExpression, inform, setVerbose
-
Constructor Details
-
MatcherRequireAction
protected MatcherRequireAction() -
MatcherRequireAction
-
-
Method Details
-
parseWalkerExpression
protected org.antlr.v4.runtime.ParserRuleContext parseWalkerExpression(UserAgentTreeWalkerParser parser) - Specified by:
parseWalkerExpressionin classMatcherAction
-
initialize
public long initialize()- Overrides:
initializein classMatcherAction
-
setFixedValue
- Specified by:
setFixedValuein classMatcherAction
-
inform
- Specified by:
informin classMatcherAction
-
obtainResult
public boolean obtainResult()Description copied from class:MatcherActionCalled after all nodes have been notified.- Specified by:
obtainResultin classMatcherAction- Returns:
- true if the obtainResult result was valid. False will fail the entire matcher this belongs to.
-
reset
public void reset()- Overrides:
resetin classMatcherAction
-
toString
- Overrides:
toStringin classMatcherAction
-