public abstract class BehaviorTreeReader extends Object
BehaviorTree parser.| Modifier and Type | Field and Description |
|---|---|
protected int |
lineNumber |
protected boolean |
reportsComments |
| Constructor and Description |
|---|
BehaviorTreeReader() |
BehaviorTreeReader(boolean reportsComments) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
attribute(String name,
Object value) |
protected void |
comment(String text) |
protected abstract void |
endLine() |
protected abstract void |
endStatement() |
void |
parse(char[] data,
int offset,
int length)
Parses the given data buffer from the offset up to the specified number of characters.
|
void |
parse(InputStream input)
Parses the given input stream.
|
void |
parse(Reader reader)
Parses the given reader.
|
void |
parse(String string)
Parses the given string.
|
protected abstract void |
startLine(int indent) |
protected abstract void |
startStatement(String name,
boolean isSubtreeReference,
boolean isGuard) |
public BehaviorTreeReader()
public BehaviorTreeReader(boolean reportsComments)
protected abstract void startLine(int indent)
protected abstract void startStatement(String name, boolean isSubtreeReference, boolean isGuard)
protected abstract void endStatement()
protected abstract void endLine()
protected void comment(String text)
public void parse(String string)
string - the stringRuntimeException - if the string cannot be successfully parsed.public void parse(Reader reader)
reader - the readerRuntimeException - if the reader cannot be successfully parsed.public void parse(InputStream input)
input - the input streamRuntimeException - if the input stream cannot be successfully parsed.public void parse(char[] data,
int offset,
int length)
data - the bufferoffset - the initial indexlength - the specified number of characters to parse.RuntimeException - if the buffer cannot be successfully parsed.Copyright © 2018. All rights reserved.