edu.cs.ai.kreator.parser.groundatom
Class GroundAtomWalker

java.lang.Object
  extended by org.antlr.runtime.BaseRecognizer
      extended by org.antlr.runtime.tree.TreeParser
          extended by edu.cs.ai.kreator.parser.groundatom.GroundAtomWalker

public class GroundAtomWalker
extends org.antlr.runtime.tree.TreeParser


Nested Class Summary
static class GroundAtomWalker.identifierL_return
           
static class GroundAtomWalker.identifierU_return
           
static class GroundAtomWalker.predicate_return
           
static class GroundAtomWalker.query_return
           
 
Field Summary
static int Alphanum
           
static int ARGUMENTS
           
static int ARITY
           
static int ATOM
           
static int ATOM_EXPRESSION
           
static int BLOCK_COMMENT
           
static int CONSTANT
           
static int Digit
           
static int DIGITS
           
static int EMPTY
           
static int EOF
           
static int FALSE_ATOM_EXPRESSION
           
static org.antlr.runtime.BitSet FOLLOW_ARGUMENTS_in_arguments374
           
static org.antlr.runtime.BitSet FOLLOW_arguments_in_atom320
           
static org.antlr.runtime.BitSet FOLLOW_ATOM_EXPRESSION_in_atomExpression260
           
static org.antlr.runtime.BitSet FOLLOW_ATOM_in_atom316
           
static org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression262
           
static org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression277
           
static org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression290
           
static org.antlr.runtime.BitSet FOLLOW_atomExpression_in_groundAtomExpressions227
           
static org.antlr.runtime.BitSet FOLLOW_atomExpression_in_questionPart166
           
static org.antlr.runtime.BitSet FOLLOW_CONSTANT_in_constant479
           
static org.antlr.runtime.BitSet FOLLOW_constant_in_term428
           
static org.antlr.runtime.BitSet FOLLOW_EMPTY_in_groundAtomExpressions216
           
static org.antlr.runtime.BitSet FOLLOW_FALSE_ATOM_EXPRESSION_in_atomExpression288
           
static org.antlr.runtime.BitSet FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions214
           
static org.antlr.runtime.BitSet FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions224
           
static org.antlr.runtime.BitSet FOLLOW_groundAtomExpressions_in_groundAtomsInput100
           
static org.antlr.runtime.BitSet FOLLOW_groundAtomExpressions_in_query133
           
static org.antlr.runtime.BitSet FOLLOW_IDENTIFIER_L_in_identifierL533
           
static org.antlr.runtime.BitSet FOLLOW_IDENTIFIER_U_in_identifierU555
           
static org.antlr.runtime.BitSet FOLLOW_identifierL_in_constant481
           
static org.antlr.runtime.BitSet FOLLOW_identifierL_in_predicate344
           
static org.antlr.runtime.BitSet FOLLOW_identifierL_in_rangeValue457
           
static org.antlr.runtime.BitSet FOLLOW_identifierU_in_variable505
           
static org.antlr.runtime.BitSet FOLLOW_predicate_in_atom318
           
static org.antlr.runtime.BitSet FOLLOW_PREDICATE_in_predicate342
           
static org.antlr.runtime.BitSet FOLLOW_QUERIES_in_queriesInput59
           
static org.antlr.runtime.BitSet FOLLOW_query_in_queriesInput62
           
static org.antlr.runtime.BitSet FOLLOW_QUERY_in_query129
           
static org.antlr.runtime.BitSet FOLLOW_QUESTION_PART_in_questionPart163
           
static org.antlr.runtime.BitSet FOLLOW_questionPart_in_query131
           
static org.antlr.runtime.BitSet FOLLOW_RANGE_VALUE_in_rangeValue455
           
static org.antlr.runtime.BitSet FOLLOW_rangeValue_in_atomExpression264
           
static org.antlr.runtime.BitSet FOLLOW_term_in_arguments377
           
static org.antlr.runtime.BitSet FOLLOW_TRUE_ATOM_EXPRESSION_in_atomExpression275
           
static org.antlr.runtime.BitSet FOLLOW_variable_in_term418
           
static org.antlr.runtime.BitSet FOLLOW_VARIABLE_in_variable503
           
static int GROUND_ATOM_EXPRESSIONS
           
static int IDENTIFIER_L
           
static int IDENTIFIER_U
           
static int IdentifierBody
           
static int LetterLowercase
           
static int LetterUppercase
           
static int LINE_COMMENT
           
static org.apache.log4j.Logger LOG
           
static int NEWLINE
           
static int PREDICATE
           
static int PROBABILITY
           
static int QUERIES
           
static int QUERY
           
static int QUESTION_PART
           
static int RANGE_VALUE
           
static java.lang.String[] tokenNames
           
static int TRUE_ATOM_EXPRESSION
           
static int VARIABLE
           
static int WHITESPACE
           
 
Fields inherited from class org.antlr.runtime.tree.TreeParser
DOWN, input, UP
 
Fields inherited from class org.antlr.runtime.BaseRecognizer
_fsp, backtracking, DEFAULT_TOKEN_CHANNEL, errorRecovery, failed, following, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, lastErrorIndex, MEMO_RULE_FAILED, MEMO_RULE_FAILED_I, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, ruleMemo
 
Constructor Summary
GroundAtomWalker(org.antlr.runtime.tree.TreeNodeStream input)
           
 
Method Summary
 java.util.ArrayList<Term> arguments(GeneralizedPredicate pred)
           
 GeneralizedAtom atom()
           
 AtomExpression atomExpression()
           
 Constant constant(Sort sort)
           
 java.lang.String getGrammarFileName()
           
 java.util.List<AtomExpression> getGroundAtoms()
           
 java.util.List<Query> getQueries()
           
 java.lang.String[] getTokenNames()
           
 java.util.ArrayList<AtomExpression> groundAtomExpressions()
           
 void groundAtomsInput()
           
 GroundAtomWalker.identifierL_return identifierL()
           
 GroundAtomWalker.identifierU_return identifierU()
           
 void init(LanguageFactory existingLangFac)
          This Method MUST be called before starting the walker with the method queryInput.
 GroundAtomWalker.predicate_return predicate()
           
 void queriesInput()
           
 GroundAtomWalker.query_return query()
           
 java.util.ArrayList<AtomExpression> questionPart()
           
 java.lang.String rangeValue()
           
 Term term(Sort sort)
           
 Variable variable(Sort sort)
           
 
Methods inherited from class org.antlr.runtime.tree.TreeParser
getErrorHeader, getErrorMessage, getTreeNodeStream, matchAny, mismatch, reset, setTreeNodeStream, traceIn, traceOut
 
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, getBacktrackingLevel, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, memoize, pushFollow, recover, recoverFromMismatchedElement, recoverFromMismatchedSet, recoverFromMismatchedToken, reportError, toStrings, traceIn, traceOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokenNames

public static final java.lang.String[] tokenNames

LetterLowercase

public static final int LetterLowercase
See Also:
Constant Field Values

ARGUMENTS

public static final int ARGUMENTS
See Also:
Constant Field Values

ATOM_EXPRESSION

public static final int ATOM_EXPRESSION
See Also:
Constant Field Values

LINE_COMMENT

public static final int LINE_COMMENT
See Also:
Constant Field Values

DIGITS

public static final int DIGITS
See Also:
Constant Field Values

Alphanum

public static final int Alphanum
See Also:
Constant Field Values

WHITESPACE

public static final int WHITESPACE
See Also:
Constant Field Values

ATOM

public static final int ATOM
See Also:
Constant Field Values

Digit

public static final int Digit
See Also:
Constant Field Values

EOF

public static final int EOF
See Also:
Constant Field Values

PREDICATE

public static final int PREDICATE
See Also:
Constant Field Values

IdentifierBody

public static final int IdentifierBody
See Also:
Constant Field Values

EMPTY

public static final int EMPTY
See Also:
Constant Field Values

RANGE_VALUE

public static final int RANGE_VALUE
See Also:
Constant Field Values

TRUE_ATOM_EXPRESSION

public static final int TRUE_ATOM_EXPRESSION
See Also:
Constant Field Values

NEWLINE

public static final int NEWLINE
See Also:
Constant Field Values

VARIABLE

public static final int VARIABLE
See Also:
Constant Field Values

QUESTION_PART

public static final int QUESTION_PART
See Also:
Constant Field Values

QUERIES

public static final int QUERIES
See Also:
Constant Field Values

LetterUppercase

public static final int LetterUppercase
See Also:
Constant Field Values

CONSTANT

public static final int CONSTANT
See Also:
Constant Field Values

BLOCK_COMMENT

public static final int BLOCK_COMMENT
See Also:
Constant Field Values

QUERY

public static final int QUERY
See Also:
Constant Field Values

ARITY

public static final int ARITY
See Also:
Constant Field Values

PROBABILITY

public static final int PROBABILITY
See Also:
Constant Field Values

IDENTIFIER_L

public static final int IDENTIFIER_L
See Also:
Constant Field Values

GROUND_ATOM_EXPRESSIONS

public static final int GROUND_ATOM_EXPRESSIONS
See Also:
Constant Field Values

FALSE_ATOM_EXPRESSION

public static final int FALSE_ATOM_EXPRESSION
See Also:
Constant Field Values

IDENTIFIER_U

public static final int IDENTIFIER_U
See Also:
Constant Field Values

LOG

public static final org.apache.log4j.Logger LOG

FOLLOW_QUERIES_in_queriesInput59

public static final org.antlr.runtime.BitSet FOLLOW_QUERIES_in_queriesInput59

FOLLOW_query_in_queriesInput62

public static final org.antlr.runtime.BitSet FOLLOW_query_in_queriesInput62

FOLLOW_groundAtomExpressions_in_groundAtomsInput100

public static final org.antlr.runtime.BitSet FOLLOW_groundAtomExpressions_in_groundAtomsInput100

FOLLOW_QUERY_in_query129

public static final org.antlr.runtime.BitSet FOLLOW_QUERY_in_query129

FOLLOW_questionPart_in_query131

public static final org.antlr.runtime.BitSet FOLLOW_questionPart_in_query131

FOLLOW_groundAtomExpressions_in_query133

public static final org.antlr.runtime.BitSet FOLLOW_groundAtomExpressions_in_query133

FOLLOW_QUESTION_PART_in_questionPart163

public static final org.antlr.runtime.BitSet FOLLOW_QUESTION_PART_in_questionPart163

FOLLOW_atomExpression_in_questionPart166

public static final org.antlr.runtime.BitSet FOLLOW_atomExpression_in_questionPart166

FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions214

public static final org.antlr.runtime.BitSet FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions214

FOLLOW_EMPTY_in_groundAtomExpressions216

public static final org.antlr.runtime.BitSet FOLLOW_EMPTY_in_groundAtomExpressions216

FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions224

public static final org.antlr.runtime.BitSet FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions224

FOLLOW_atomExpression_in_groundAtomExpressions227

public static final org.antlr.runtime.BitSet FOLLOW_atomExpression_in_groundAtomExpressions227

FOLLOW_ATOM_EXPRESSION_in_atomExpression260

public static final org.antlr.runtime.BitSet FOLLOW_ATOM_EXPRESSION_in_atomExpression260

FOLLOW_atom_in_atomExpression262

public static final org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression262

FOLLOW_rangeValue_in_atomExpression264

public static final org.antlr.runtime.BitSet FOLLOW_rangeValue_in_atomExpression264

FOLLOW_TRUE_ATOM_EXPRESSION_in_atomExpression275

public static final org.antlr.runtime.BitSet FOLLOW_TRUE_ATOM_EXPRESSION_in_atomExpression275

FOLLOW_atom_in_atomExpression277

public static final org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression277

FOLLOW_FALSE_ATOM_EXPRESSION_in_atomExpression288

public static final org.antlr.runtime.BitSet FOLLOW_FALSE_ATOM_EXPRESSION_in_atomExpression288

FOLLOW_atom_in_atomExpression290

public static final org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression290

FOLLOW_ATOM_in_atom316

public static final org.antlr.runtime.BitSet FOLLOW_ATOM_in_atom316

FOLLOW_predicate_in_atom318

public static final org.antlr.runtime.BitSet FOLLOW_predicate_in_atom318

FOLLOW_arguments_in_atom320

public static final org.antlr.runtime.BitSet FOLLOW_arguments_in_atom320

FOLLOW_PREDICATE_in_predicate342

public static final org.antlr.runtime.BitSet FOLLOW_PREDICATE_in_predicate342

FOLLOW_identifierL_in_predicate344

public static final org.antlr.runtime.BitSet FOLLOW_identifierL_in_predicate344

FOLLOW_ARGUMENTS_in_arguments374

public static final org.antlr.runtime.BitSet FOLLOW_ARGUMENTS_in_arguments374

FOLLOW_term_in_arguments377

public static final org.antlr.runtime.BitSet FOLLOW_term_in_arguments377

FOLLOW_variable_in_term418

public static final org.antlr.runtime.BitSet FOLLOW_variable_in_term418

FOLLOW_constant_in_term428

public static final org.antlr.runtime.BitSet FOLLOW_constant_in_term428

FOLLOW_RANGE_VALUE_in_rangeValue455

public static final org.antlr.runtime.BitSet FOLLOW_RANGE_VALUE_in_rangeValue455

FOLLOW_identifierL_in_rangeValue457

public static final org.antlr.runtime.BitSet FOLLOW_identifierL_in_rangeValue457

FOLLOW_CONSTANT_in_constant479

public static final org.antlr.runtime.BitSet FOLLOW_CONSTANT_in_constant479

FOLLOW_identifierL_in_constant481

public static final org.antlr.runtime.BitSet FOLLOW_identifierL_in_constant481

FOLLOW_VARIABLE_in_variable503

public static final org.antlr.runtime.BitSet FOLLOW_VARIABLE_in_variable503

FOLLOW_identifierU_in_variable505

public static final org.antlr.runtime.BitSet FOLLOW_identifierU_in_variable505

FOLLOW_IDENTIFIER_L_in_identifierL533

public static final org.antlr.runtime.BitSet FOLLOW_IDENTIFIER_L_in_identifierL533

FOLLOW_IDENTIFIER_U_in_identifierU555

public static final org.antlr.runtime.BitSet FOLLOW_IDENTIFIER_U_in_identifierU555
Constructor Detail

GroundAtomWalker

public GroundAtomWalker(org.antlr.runtime.tree.TreeNodeStream input)
Method Detail

getTokenNames

public java.lang.String[] getTokenNames()
Overrides:
getTokenNames in class org.antlr.runtime.BaseRecognizer

getGrammarFileName

public java.lang.String getGrammarFileName()
Overrides:
getGrammarFileName in class org.antlr.runtime.BaseRecognizer

init

public void init(LanguageFactory existingLangFac)
This Method MUST be called before starting the walker with the method queryInput.


getQueries

public java.util.List<Query> getQueries()

getGroundAtoms

public java.util.List<AtomExpression> getGroundAtoms()

queriesInput

public final void queriesInput()
                        throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

groundAtomsInput

public final void groundAtomsInput()
                            throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

query

public final GroundAtomWalker.query_return query()
                                          throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

questionPart

public final java.util.ArrayList<AtomExpression> questionPart()
                                                       throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

groundAtomExpressions

public final java.util.ArrayList<AtomExpression> groundAtomExpressions()
                                                                throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

atomExpression

public final AtomExpression atomExpression()
                                    throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

atom

public final GeneralizedAtom atom()
                           throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

predicate

public final GroundAtomWalker.predicate_return predicate()
                                                  throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

arguments

public final java.util.ArrayList<Term> arguments(GeneralizedPredicate pred)
                                          throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

term

public final Term term(Sort sort)
                throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

rangeValue

public final java.lang.String rangeValue()
                                  throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

constant

public final Constant constant(Sort sort)
                        throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

variable

public final Variable variable(Sort sort)
                        throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

identifierL

public final GroundAtomWalker.identifierL_return identifierL()
                                                      throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

identifierU

public final GroundAtomWalker.identifierU_return identifierU()
                                                      throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException