Class MatcherVariableAction
- java.lang.Object
-
- nl.basjes.parse.useragent.analyze.MatcherAction
-
- nl.basjes.parse.useragent.analyze.MatcherVariableAction
-
- All Implemented Interfaces:
Serializable
public class MatcherVariableAction 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 MatcherVariableAction(String variableName, String config, Matcher matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getVariableName()
void
inform(String key, WalkList.WalkResult newlyFoundValue)
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)
void
setInterestedActions(Set<MatcherAction> newInterestedActions)
String
toString()
-
Methods inherited from class nl.basjes.parse.useragent.analyze.MatcherAction
destroy, getMatches, getMatchExpression, inform, initialize, setVerbose
-
-
-
-
Method Detail
-
parseWalkerExpression
protected org.antlr.v4.runtime.ParserRuleContext parseWalkerExpression(UserAgentTreeWalkerParser parser)
- Specified by:
parseWalkerExpression
in classMatcherAction
-
setFixedValue
protected void setFixedValue(String fixedValue)
- Specified by:
setFixedValue
in classMatcherAction
-
getVariableName
public String getVariableName()
-
inform
public void inform(String key, WalkList.WalkResult newlyFoundValue)
- 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
-
setInterestedActions
public void setInterestedActions(Set<MatcherAction> newInterestedActions)
-
-