java.lang.Object
nl.basjes.parse.useragent.analyze.treewalker.steps.Step
nl.basjes.parse.useragent.analyze.treewalker.steps.compare.StepNotEquals
All Implemented Interfaces:
Serializable

public class StepNotEquals extends Step
See Also:
  • Constructor Details

    • StepNotEquals

      public StepNotEquals(String desiredValue)
  • Method Details

    • 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 class Step
      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.
    • toString

      public String toString()
      Overrides:
      toString in class Object