public class NullParser extends java.lang.Object implements Parser
Modifier and Type | Field and Description |
---|---|
static NullParser |
NULL_PARSER
Singleton instance.
|
Constructor and Description |
---|
NullParser() |
Modifier and Type | Method and Description |
---|---|
Node |
continueParse()
Read the next equation from the stream.
|
JepComponent |
getLightWeightInstance()
Gets a light-weight instance suitable for using in multiple threads.
|
void |
init(Jep jep)
Initialize the component.
|
Node |
parse(java.io.Reader stream)
Parse a single equation from a stream
|
void |
restart(java.io.Reader stream)
Restart the parser for reentrant parsing of multiple equations.
|
public static final NullParser NULL_PARSER
public void init(Jep jep)
JepComponent
init
in interface JepComponent
jep
- the current Jep instancepublic Node continueParse() throws ParseException
Parser
continueParse
in interface Parser
ParseException
- alwayspublic Node parse(java.io.Reader stream) throws ParseException
Parser
parse
in interface Parser
stream
- input readerParseException
- alwayspublic void restart(java.io.Reader stream)
Parser
public JepComponent getLightWeightInstance()
JepComponent
getLightWeightInstance
in interface JepComponent
Copyright © 2018 Singular Systems http://www.singularsys.com/jep