Class UnpickV2Reader
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 interfaceUnpickV2Reader.TargetMethodDefinitionVisitorstatic interfaceUnpickV2Reader.VisitorA 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 voidaccept(UnpickV2Reader.Visitor visitor)Makesvisitorvisit the structure of the parsed filevoidclose()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
Makesvisitorvisit the structure of the parsed file- Parameters:
visitor- the visitor
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-