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

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

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


Nested Class Summary
static class GroundAtomWithoutLanguageWalker.atom_return
           
static class GroundAtomWithoutLanguageWalker.identifierL_return
           
static class GroundAtomWithoutLanguageWalker.identifierU_return
           
static class GroundAtomWithoutLanguageWalker.predicate_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_arguments213
           
static org.antlr.runtime.BitSet FOLLOW_arguments_in_atom163
           
static org.antlr.runtime.BitSet FOLLOW_ATOM_EXPRESSION_in_atomExpression102
           
static org.antlr.runtime.BitSet FOLLOW_ATOM_in_atom159
           
static org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression104
           
static org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression122
           
static org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression132
           
static org.antlr.runtime.BitSet FOLLOW_atomExpression_in_groundAtomExpressions88
           
static org.antlr.runtime.BitSet FOLLOW_CONSTANT_in_constant262
           
static org.antlr.runtime.BitSet FOLLOW_constant_in_term252
           
static org.antlr.runtime.BitSet FOLLOW_EMPTY_in_groundAtomExpressions78
           
static org.antlr.runtime.BitSet FOLLOW_FALSE_ATOM_EXPRESSION_in_atomExpression128
           
static org.antlr.runtime.BitSet FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions76
           
static org.antlr.runtime.BitSet FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions86
           
static org.antlr.runtime.BitSet FOLLOW_groundAtomExpressions_in_groundAtomsInput59
           
static org.antlr.runtime.BitSet FOLLOW_IDENTIFIER_L_in_identifierL315
           
static org.antlr.runtime.BitSet FOLLOW_IDENTIFIER_U_in_identifierU337
           
static org.antlr.runtime.BitSet FOLLOW_identifierL_in_constant264
           
static org.antlr.runtime.BitSet FOLLOW_identifierL_in_predicate187
           
static org.antlr.runtime.BitSet FOLLOW_identifierL_in_rangeValue287
           
static org.antlr.runtime.BitSet FOLLOW_predicate_in_atom161
           
static org.antlr.runtime.BitSet FOLLOW_PREDICATE_in_predicate185
           
static org.antlr.runtime.BitSet FOLLOW_RANGE_VALUE_in_rangeValue285
           
static org.antlr.runtime.BitSet FOLLOW_rangeValue_in_atomExpression106
           
static org.antlr.runtime.BitSet FOLLOW_term_in_arguments216
           
static org.antlr.runtime.BitSet FOLLOW_TRUE_ATOM_EXPRESSION_in_atomExpression118
           
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
GroundAtomWithoutLanguageWalker(org.antlr.runtime.tree.TreeNodeStream input)
           
 
Method Summary
 void arguments(java.lang.String predName, int line, int pos)
           
 GroundAtomWithoutLanguageWalker.atom_return atom()
           
 void atomExpression()
           
 void constant()
           
 java.util.TreeSet<java.lang.String> getConstantNames()
           
 java.lang.String getGrammarFileName()
           
 LanguageFactory getLanguageFactory()
           
 java.util.Hashtable<java.lang.String,java.lang.Integer> getPredicateArityMap()
           
 java.util.TreeSet<java.lang.String> getPredicateNames()
           
 java.util.Hashtable<java.lang.String,java.util.TreeSet<java.lang.String>> getPredicateRangeMap()
           
 java.lang.String[] getTokenNames()
           
 void groundAtomExpressions()
           
 void groundAtomsInput()
           
 GroundAtomWithoutLanguageWalker.identifierL_return identifierL()
           
 GroundAtomWithoutLanguageWalker.identifierU_return identifierU()
           
 void init()
          This Method MUST be called before starting the walker with the method groundAtomsInput.
 GroundAtomWithoutLanguageWalker.predicate_return predicate()
           
 java.lang.String rangeValue()
           
 void term()
           
 
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_groundAtomExpressions_in_groundAtomsInput59

public static final org.antlr.runtime.BitSet FOLLOW_groundAtomExpressions_in_groundAtomsInput59

FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions76

public static final org.antlr.runtime.BitSet FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions76

FOLLOW_EMPTY_in_groundAtomExpressions78

public static final org.antlr.runtime.BitSet FOLLOW_EMPTY_in_groundAtomExpressions78

FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions86

public static final org.antlr.runtime.BitSet FOLLOW_GROUND_ATOM_EXPRESSIONS_in_groundAtomExpressions86

FOLLOW_atomExpression_in_groundAtomExpressions88

public static final org.antlr.runtime.BitSet FOLLOW_atomExpression_in_groundAtomExpressions88

FOLLOW_ATOM_EXPRESSION_in_atomExpression102

public static final org.antlr.runtime.BitSet FOLLOW_ATOM_EXPRESSION_in_atomExpression102

FOLLOW_atom_in_atomExpression104

public static final org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression104

FOLLOW_rangeValue_in_atomExpression106

public static final org.antlr.runtime.BitSet FOLLOW_rangeValue_in_atomExpression106

FOLLOW_TRUE_ATOM_EXPRESSION_in_atomExpression118

public static final org.antlr.runtime.BitSet FOLLOW_TRUE_ATOM_EXPRESSION_in_atomExpression118

FOLLOW_atom_in_atomExpression122

public static final org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression122

FOLLOW_FALSE_ATOM_EXPRESSION_in_atomExpression128

public static final org.antlr.runtime.BitSet FOLLOW_FALSE_ATOM_EXPRESSION_in_atomExpression128

FOLLOW_atom_in_atomExpression132

public static final org.antlr.runtime.BitSet FOLLOW_atom_in_atomExpression132

FOLLOW_ATOM_in_atom159

public static final org.antlr.runtime.BitSet FOLLOW_ATOM_in_atom159

FOLLOW_predicate_in_atom161

public static final org.antlr.runtime.BitSet FOLLOW_predicate_in_atom161

FOLLOW_arguments_in_atom163

public static final org.antlr.runtime.BitSet FOLLOW_arguments_in_atom163

FOLLOW_PREDICATE_in_predicate185

public static final org.antlr.runtime.BitSet FOLLOW_PREDICATE_in_predicate185

FOLLOW_identifierL_in_predicate187

public static final org.antlr.runtime.BitSet FOLLOW_identifierL_in_predicate187

FOLLOW_ARGUMENTS_in_arguments213

public static final org.antlr.runtime.BitSet FOLLOW_ARGUMENTS_in_arguments213

FOLLOW_term_in_arguments216

public static final org.antlr.runtime.BitSet FOLLOW_term_in_arguments216

FOLLOW_constant_in_term252

public static final org.antlr.runtime.BitSet FOLLOW_constant_in_term252

FOLLOW_CONSTANT_in_constant262

public static final org.antlr.runtime.BitSet FOLLOW_CONSTANT_in_constant262

FOLLOW_identifierL_in_constant264

public static final org.antlr.runtime.BitSet FOLLOW_identifierL_in_constant264

FOLLOW_RANGE_VALUE_in_rangeValue285

public static final org.antlr.runtime.BitSet FOLLOW_RANGE_VALUE_in_rangeValue285

FOLLOW_identifierL_in_rangeValue287

public static final org.antlr.runtime.BitSet FOLLOW_identifierL_in_rangeValue287

FOLLOW_IDENTIFIER_L_in_identifierL315

public static final org.antlr.runtime.BitSet FOLLOW_IDENTIFIER_L_in_identifierL315

FOLLOW_IDENTIFIER_U_in_identifierU337

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

GroundAtomWithoutLanguageWalker

public GroundAtomWithoutLanguageWalker(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()
This Method MUST be called before starting the walker with the method groundAtomsInput.


getLanguageFactory

public LanguageFactory getLanguageFactory()

getPredicateNames

public java.util.TreeSet<java.lang.String> getPredicateNames()

getConstantNames

public java.util.TreeSet<java.lang.String> getConstantNames()

getPredicateArityMap

public java.util.Hashtable<java.lang.String,java.lang.Integer> getPredicateArityMap()

getPredicateRangeMap

public java.util.Hashtable<java.lang.String,java.util.TreeSet<java.lang.String>> getPredicateRangeMap()

groundAtomsInput

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

groundAtomExpressions

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

atomExpression

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

atom

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

predicate

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

arguments

public final void arguments(java.lang.String predName,
                            int line,
                            int pos)
                     throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

term

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

constant

public final void constant()
                    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

identifierL

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

identifierU

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