Package nl.rrd.wool.parser
Class ReadResult
- java.lang.Object
-
- nl.rrd.wool.parser.ReadResult
-
public class ReadResult extends Object
AReadResultobject contains the results of parsing a .wool file, including the resultingWoolDialogueand a list ofParseExceptions.
-
-
Constructor Summary
Constructors Constructor Description ReadResult()Creates an instance of an emptyReadResultobject.
-
Method Summary
Modifier and Type Method Description WoolDialoguegetDialogue()Returns theWoolDialoguethat is part of thisReadResult.List<ParseException>getParseErrors()Returns aListofParseExceptions that have occurred during the parsing of the .wool file.voidsetDialogue(WoolDialogue dialogue)Sets theWoolDialoguethat is part of thisReadResult.
-
-
-
Constructor Detail
-
ReadResult
public ReadResult()
Creates an instance of an emptyReadResultobject.
-
-
Method Detail
-
getDialogue
public WoolDialogue getDialogue()
Returns theWoolDialoguethat is part of thisReadResult.- Returns:
- the
WoolDialoguethat is part of thisReadResult.
-
getParseErrors
public List<ParseException> getParseErrors()
Returns aListofParseExceptions that have occurred during the parsing of the .wool file.- Returns:
- a
ListofParseExceptions.
-
setDialogue
public void setDialogue(WoolDialogue dialogue)
Sets theWoolDialoguethat is part of thisReadResult.- Parameters:
dialogue- theWoolDialoguethat is part of thisReadResult.
-
-