java.lang.Object
daomephsta.unpick.constantmappers.datadriven.parser.v2.UnpickV2Reader
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class UnpickV2Reader
extends java.lang.Object
implements java.io.Closeable
Performs basic syntax checking on .unpick v2 format text, and allows its structure to be visited by instances of UnpickV2Reader.Visitor.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  UnpickV2Reader.TargetMethodDefinitionVisitor  
    static interface  UnpickV2Reader.Visitor
    A visitor for visiting the structure of .unpick v2 format text
  • Constructor Summary

    Constructors
    Constructor Description
    UnpickV2Reader​(java.io.InputStream definitionsStream)
    Creates a new reader from an input stream
  • Method Summary

    Modifier and Type Method Description
    void accept​(UnpickV2Reader.Visitor visitor)
    Makes visitor visit the structure of the parsed file
    void close()  

    Methods inherited from class java.lang.Object

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

    • UnpickV2Reader

      public UnpickV2Reader​(java.io.InputStream definitionsStream)
      Creates a new reader from an input stream
      Parameters:
      definitionsStream - a stream of text in .unpick v2 format
  • Method Details

    • accept

      public void accept​(UnpickV2Reader.Visitor visitor)
      Makes visitor visit the structure of the parsed file
      Parameters:
      visitor - the visitor
    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Throws:
      java.io.IOException