org.dllearner.parser
Class ConfParser

java.lang.Object
  extended by org.dllearner.parser.ConfParser
All Implemented Interfaces:
ConfParserConstants

public class ConfParser
extends Object
implements ConfParserConstants


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 ConfParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface org.dllearner.parser.ConfParserConstants
ALL, AND, BOTTOM, COMMAND_END, CONF_END, DEFAULT, DOUBLE, EOF, EXISTS, FORMAL_COMMENT, GE, ID, LE, MULTI_LINE_COMMENT, NEG_EX, NOT, NUMBER, OR, POS_EX, SINGLE_LINE_COMMENT, STRING, tokenImage, TOP
 
Constructor Summary
ConfParser(ConfParserTokenManager tm)
          Constructor with generated Token Manager.
ConfParser(InputStream stream)
          Constructor with InputStream.
ConfParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
ConfParser(Reader stream)
          Constructor.
 
Method Summary
 ConfFileOption ConfOption()
           
 void disable_tracing()
          Disable tracing.
 double Double()
           
 void enable_tracing()
          Enable tracing.
 void FunctionCall()
           
 ParseException generateParseException()
          Generate ParseException.
 List<ConfFileOption> getConfOptions()
           
 Map<String,ConfFileOption> getConfOptionsByName()
           
 ConfFileOption getConfOptionsByName(String name)
           
 Map<String,List<ConfFileOption>> getConfOptionsByPrefix()
           
 List<ConfFileOption> getConfOptionsByPrefix(String prefix)
           
 Map<String,List<List<String>>> getFunctionCalls()
           
 SortedSet<String> getNegativeExamples()
           
 Token getNextToken()
          Get the next Token.
 SortedSet<String> getPositiveExamples()
           
 Token getToken(int index)
          Get the specific Token.
 String Id()
           
 String Individual()
           
 int Integer()
           
static void main(String[] args)
           
 void NegExample()
           
static ConfParser parseFile(File filename)
           
 void PosExample()
           
 void ReInit(ConfParserTokenManager tm)
          Reinitialise.
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void Start()
           
 String String()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ConfParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

ConfParser

public ConfParser(InputStream stream)
Constructor with InputStream.


ConfParser

public ConfParser(InputStream stream,
                  String encoding)
Constructor with InputStream and supplied encoding


ConfParser

public ConfParser(Reader stream)
Constructor.


ConfParser

public ConfParser(ConfParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

getPositiveExamples

public SortedSet<String> getPositiveExamples()

getNegativeExamples

public SortedSet<String> getNegativeExamples()

getConfOptions

public List<ConfFileOption> getConfOptions()

getConfOptionsByName

public Map<String,ConfFileOption> getConfOptionsByName()

getConfOptionsByName

public ConfFileOption getConfOptionsByName(String name)

getConfOptionsByPrefix

public Map<String,List<ConfFileOption>> getConfOptionsByPrefix()

getConfOptionsByPrefix

public List<ConfFileOption> getConfOptionsByPrefix(String prefix)

getFunctionCalls

public Map<String,List<List<String>>> getFunctionCalls()

parseFile

public static ConfParser parseFile(File filename)
                            throws FileNotFoundException,
                                   ParseException
Throws:
FileNotFoundException
ParseException

main

public static void main(String[] args)

Start

public final void Start()
                 throws ParseException
Throws:
ParseException

ConfOption

public final ConfFileOption ConfOption()
                                throws ParseException
Throws:
ParseException

FunctionCall

public final void FunctionCall()
                        throws ParseException
Throws:
ParseException

PosExample

public final void PosExample()
                      throws ParseException
Throws:
ParseException

NegExample

public final void NegExample()
                      throws ParseException
Throws:
ParseException

Individual

public final String Individual()
                        throws ParseException
Throws:
ParseException

Id

public final String Id()
                throws ParseException
Throws:
ParseException

Double

public final double Double()
                    throws ParseException
Throws:
ParseException

Integer

public final int Integer()
                  throws ParseException
Throws:
ParseException

String

public final String String()
                    throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(ConfParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann