Class MatcherVariableAction
java.lang.Object
nl.basjes.parse.useragent.analyze.MatcherAction
nl.basjes.parse.useragent.analyze.MatcherVariableAction
- All Implemented Interfaces:
Serializable
- 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 newlyFoundValue) booleanCalled after all nodes have been notified.protected org.antlr.v4.runtime.ParserRuleContextvoidreset()protected voidsetFixedValue(String fixedValue) voidsetInterestedActions(Set<MatcherAction> newInterestedActions) toString()Methods inherited from class nl.basjes.parse.useragent.analyze.MatcherAction
destroy, getMatches, getMatchExpression, inform, initialize, setVerbose
-
Constructor Details
-
MatcherVariableAction
-
-
Method Details
-
parseWalkerExpression
protected org.antlr.v4.runtime.ParserRuleContext parseWalkerExpression(UserAgentTreeWalkerParser parser) - Specified by:
parseWalkerExpressionin classMatcherAction
-
setFixedValue
- Specified by:
setFixedValuein classMatcherAction
-
getVariableName
-
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
-
setInterestedActions
-