Class ProtocolLocalizer

java.lang.Object
com.betterdiff.core.utils.ProtocolLocalizer
All Implemented Interfaces:
com.betterdiff.core.protocol.ProtocolVisitor

public class ProtocolLocalizer
extends java.lang.Object
implements com.betterdiff.core.protocol.ProtocolVisitor
  • Constructor Summary

    Constructors
    Constructor Description
    ProtocolLocalizer​(com.betterdiff.core.Callback callback)  
  • Method Summary

    Modifier and Type Method Description
    com.betterdiff.core.protocol.PartialProtocol localize​(com.betterdiff.core.protocol.PartialProtocol protocol)  
    void visit​(com.betterdiff.core.protocol.command.Chunk chunk)  
    void visit​(com.betterdiff.core.protocol.command.Finish finish)  
    void visit​(com.betterdiff.core.protocol.command.Local local)  
    void visit​(com.betterdiff.core.protocol.command.Match match)  
    void visit​(com.betterdiff.core.protocol.command.Move move)  
    void visit​(com.betterdiff.core.protocol.command.Mutation mutation)  
    void visit​(com.betterdiff.core.protocol.command.Pick pick)  
    void visit​(com.betterdiff.core.protocol.command.Row row)  
    void visit​(com.betterdiff.core.protocol.command.Text text)  
    boolean wasLastUsageValid()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProtocolLocalizer

      public ProtocolLocalizer​(com.betterdiff.core.Callback callback)
  • Method Details

    • localize

      public com.betterdiff.core.protocol.PartialProtocol localize​(com.betterdiff.core.protocol.PartialProtocol protocol)
    • wasLastUsageValid

      public boolean wasLastUsageValid()
    • visit

      public void visit​(com.betterdiff.core.protocol.command.Chunk chunk)
      Specified by:
      visit in interface com.betterdiff.core.protocol.ProtocolVisitor
    • visit

      public void visit​(com.betterdiff.core.protocol.command.Finish finish)
      Specified by:
      visit in interface com.betterdiff.core.protocol.ProtocolVisitor
    • visit

      public void visit​(com.betterdiff.core.protocol.command.Local local)
      Specified by:
      visit in interface com.betterdiff.core.protocol.ProtocolVisitor
    • visit

      public void visit​(com.betterdiff.core.protocol.command.Match match)
      Specified by:
      visit in interface com.betterdiff.core.protocol.ProtocolVisitor
    • visit

      public void visit​(com.betterdiff.core.protocol.command.Move move)
      Specified by:
      visit in interface com.betterdiff.core.protocol.ProtocolVisitor
    • visit

      public void visit​(com.betterdiff.core.protocol.command.Mutation mutation)
      Specified by:
      visit in interface com.betterdiff.core.protocol.ProtocolVisitor
    • visit

      public void visit​(com.betterdiff.core.protocol.command.Pick pick)
      Specified by:
      visit in interface com.betterdiff.core.protocol.ProtocolVisitor
    • visit

      public void visit​(com.betterdiff.core.protocol.command.Row row)
      Specified by:
      visit in interface com.betterdiff.core.protocol.ProtocolVisitor
    • visit

      public void visit​(com.betterdiff.core.protocol.command.Text text)
      Specified by:
      visit in interface com.betterdiff.core.protocol.ProtocolVisitor