Class MatcherExtractAction
- java.lang.Object
-
- nl.basjes.parse.useragent.analyze.MatcherAction
-
- nl.basjes.parse.useragent.analyze.MatcherExtractAction
-
- All Implemented Interfaces:
Serializable
public class MatcherExtractAction 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 MatcherExtractAction(String attribute, long confidence, String config, Matcher matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttribute()
void
inform(String key, WalkList.WalkResult newlyFoundValue)
boolean
isFixedValue()
boolean
obtainResult()
Called after all nodes have been notified.protected org.antlr.v4.runtime.ParserRuleContext
parseWalkerExpression(UserAgentTreeWalkerParser parser)
void
reset()
protected void
setFixedValue(String newFixedValue)
void
setResultAgentField(AgentField.MutableAgentField newResultAgentField)
String
toString()
-
Methods inherited from class nl.basjes.parse.useragent.analyze.MatcherAction
destroy, getMatches, getMatchExpression, inform, initialize, setVerbose
-
-
-
-
Method Detail
-
setResultAgentField
public void setResultAgentField(AgentField.MutableAgentField newResultAgentField)
-
parseWalkerExpression
protected org.antlr.v4.runtime.ParserRuleContext parseWalkerExpression(UserAgentTreeWalkerParser parser)
- Specified by:
parseWalkerExpression
in classMatcherAction
-
isFixedValue
public boolean isFixedValue()
-
setFixedValue
protected void setFixedValue(String newFixedValue)
- Specified by:
setFixedValue
in classMatcherAction
-
getAttribute
public String getAttribute()
-
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
-
-