Class StepDown
- java.lang.Object
-
- nl.basjes.parse.useragent.analyze.treewalker.steps.Step
-
- nl.basjes.parse.useragent.analyze.treewalker.steps.walk.StepDown
-
- All Implemented Interfaces:
Serializable
public class StepDown extends Step
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StepDown.KryoSerializer
-
Constructor Summary
Constructors Constructor Description StepDown(NumberRangeList numberRange, String name)
StepDown(UserAgentTreeWalkerParser.NumberRangeContext numberRange, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
WalkList.WalkResult
walk(org.antlr.v4.runtime.tree.ParseTree tree, String value)
This will walk into the tree and recurse through all the remaining steps.-
Methods inherited from class nl.basjes.parse.useragent.analyze.treewalker.steps.Step
canFail, destroy, getActualValue, getNextStep, mustHaveInput, setNextStep, setVerbose, treeIsSeparator, up, walkNextStep
-
-
-
-
Constructor Detail
-
StepDown
public StepDown(UserAgentTreeWalkerParser.NumberRangeContext numberRange, String name)
-
StepDown
public StepDown(NumberRangeList numberRange, String name)
-
-
Method Detail
-
walk
public WalkList.WalkResult walk(@Nonnull org.antlr.v4.runtime.tree.ParseTree tree, @Nullable String value)
Description copied from class:Step
This will walk into the tree and recurse through all the remaining steps. This must iterate of all possibilities and return the first matching result.- Specified by:
walk
in classStep
- Parameters:
tree
- The tree to walk into.value
- The string representation of the previous step (needed for compare and lookup operations). The null value means to use the implicit 'full' value (i.e. getSourceText(tree) )- Returns:
- Either null or the actual value that was found.
-
-