public class ConfParserLegacy extends AbstractConfParser implements ConfParserLegacyConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
ConfParserLegacyTokenManager |
token_source
Generated Token Manager.
|
COMMAND_END, DEFAULT, DOUBLE, EOF, FORMAL_COMMENT, ID, MULTI_LINE_COMMENT, NUMBER, SINGLE_LINE_COMMENT, STRING, tokenImage
Constructor and Description |
---|
ConfParserLegacy(ConfParserLegacyTokenManager tm)
Constructor with generated Token Manager.
|
ConfParserLegacy(InputStream stream)
Constructor with InputStream.
|
ConfParserLegacy(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
ConfParserLegacy(Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
ComplexId() |
ConfFileOption |
ConfOption() |
void |
disable_tracing()
Disable tracing.
|
Double |
Double() |
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
String |
Id() |
String |
Individual() |
void |
init()
Method to be called after the component has been configured.
|
Integer |
Integer() |
static ConfParser |
parseFile(File filename) |
void |
ReInit(ConfParserLegacyTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
Start() |
String |
String() |
getConfOptions, getConfOptionsByBean, getConfOptionsByBean, getConfOptionsByProperty, getConfOptionsByProperty
isInitialized
public ConfParserLegacyTokenManager token_source
public ConfParserLegacy(InputStream stream)
public ConfParserLegacy(InputStream stream, String encoding)
public ConfParserLegacy(Reader stream)
public ConfParserLegacy(ConfParserLegacyTokenManager tm)
public static ConfParser parseFile(File filename) throws FileNotFoundException, ParseException, UnsupportedEncodingException
public void init() throws ComponentInitException
Component
init
in interface Component
ComponentInitException
- This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
re-throw occurring exception as ComponentInitException and
giving an error message as well as the actually exception by
using the constructor ComponentInitException(String, Throwable)
.public final void Start() throws ParseException
ParseException
public final ConfFileOption ConfOption() throws ParseException
ParseException
public final String Individual() throws ParseException
ParseException
public final String ComplexId() throws ParseException
ParseException
public final String Id() throws ParseException
ParseException
public final Double Double() throws ParseException
ParseException
public final Integer Integer() throws ParseException
ParseException
public final String String() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(ConfParserLegacyTokenManager tm)
public final Token getNextToken()
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann