Class IdNamingVisitor

java.lang.Object
io.cucumber.jsonformatter.IdNamingVisitor
All Implemented Interfaces:
io.cucumber.query.LineageReducer.Collector<String>

final class IdNamingVisitor extends Object implements io.cucumber.query.LineageReducer.Collector<String>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final List<String>
     
    private static final Pattern
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(io.cucumber.messages.types.Examples examples, int index)
     
    void
    add(io.cucumber.messages.types.Feature feature)
     
    void
    add(io.cucumber.messages.types.Rule rule)
     
    void
    add(io.cucumber.messages.types.Scenario scenario)
     
    void
    add(io.cucumber.messages.types.TableRow example, int index)
     
     
    (package private) static String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.cucumber.query.LineageReducer.Collector

    add, add
  • Field Details

    • replacementPattern

      private static final Pattern replacementPattern
    • parts

      private final List<String> parts
  • Constructor Details

    • IdNamingVisitor

      IdNamingVisitor()
  • Method Details

    • add

      public void add(io.cucumber.messages.types.Feature feature)
      Specified by:
      add in interface io.cucumber.query.LineageReducer.Collector<String>
    • add

      public void add(io.cucumber.messages.types.Rule rule)
      Specified by:
      add in interface io.cucumber.query.LineageReducer.Collector<String>
    • add

      public void add(io.cucumber.messages.types.Scenario scenario)
      Specified by:
      add in interface io.cucumber.query.LineageReducer.Collector<String>
    • add

      public void add(io.cucumber.messages.types.Examples examples, int index)
      Specified by:
      add in interface io.cucumber.query.LineageReducer.Collector<String>
    • add

      public void add(io.cucumber.messages.types.TableRow example, int index)
      Specified by:
      add in interface io.cucumber.query.LineageReducer.Collector<String>
    • finish

      public String finish()
      Specified by:
      finish in interface io.cucumber.query.LineageReducer.Collector<String>
    • formatId

      static String formatId(String name)