org.topbraid.rules.swrl.parser
Class SWRLParser

java.lang.Object
  extended by org.topbraid.rules.swrl.parser.SWRLParser
All Implemented Interfaces:
SWRLParserConstants

public class SWRLParser
extends java.lang.Object
implements SWRLParserConstants


Field Summary
static java.lang.String errorMessage
           
 Token jj_nt
           
 Token token
           
 SWRLParserTokenManager token_source
           
 
Fields inherited from interface org.topbraid.rules.swrl.parser.SWRLParserConstants
CLOSE, COLUMN, COMMA, DEFAULT, DIFFERENT, DIGIT, EOF, EXPONENT, FLOATING_POINT_LITERAL, IDENTIFIER, IMPLIES, INTEGER_LITERAL, LETTER, OPEN, SAME, STRING_LITERAL, tokenImage, VAR_START
 
Constructor Summary
SWRLParser(java.io.InputStream stream)
           
SWRLParser(java.io.Reader stream)
           
SWRLParser(SWRLParserTokenManager tm)
           
 
Method Summary
 com.hp.hpl.jena.rdf.model.Resource Atom()
           
 com.hp.hpl.jena.rdf.model.Resource AtomList()
           
static void checkAtomList(com.hp.hpl.jena.ontology.OntModel ontModel, java.lang.String text)
           
static void checkImp(com.hp.hpl.jena.ontology.OntModel ontModel, java.lang.String text)
           
 com.hp.hpl.jena.rdf.model.Resource ClassAtom()
           
 void disable_tracing()
           
 void enable_tracing()
           
 com.hp.hpl.jena.rdf.model.Resource EqualityAtom()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 java.lang.String Identifier()
           
 com.hp.hpl.jena.rdf.model.Resource Imp()
           
 com.hp.hpl.jena.rdf.model.Literal Literal()
           
static com.hp.hpl.jena.rdf.model.Resource parseAtomList(com.hp.hpl.jena.ontology.OntModel ontModel, java.lang.String text)
           
static com.hp.hpl.jena.rdf.model.Resource parseAtomList(com.hp.hpl.jena.ontology.OntModel ontModel, java.lang.String text, boolean create)
           
static com.hp.hpl.jena.rdf.model.Resource parseImp(com.hp.hpl.jena.ontology.OntModel ontModel, java.lang.String text)
           
static com.hp.hpl.jena.rdf.model.Resource parseImp(com.hp.hpl.jena.ontology.OntModel ontModel, java.lang.String text, boolean create)
           
 com.hp.hpl.jena.rdf.model.Resource parseRule()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.Reader stream)
           
 void ReInit(SWRLParserTokenManager tm)
           
 com.hp.hpl.jena.rdf.model.Resource Resource()
           
 com.hp.hpl.jena.rdf.model.Resource TripleAtom()
           
 com.hp.hpl.jena.rdf.model.Resource Variable()
           
 com.hp.hpl.jena.rdf.model.Resource VariableOrResource()
           
 com.hp.hpl.jena.rdf.model.RDFNode VariableOrResourceOrLiteral()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorMessage

public static java.lang.String errorMessage

token_source

public SWRLParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

SWRLParser

public SWRLParser(java.io.InputStream stream)

SWRLParser

public SWRLParser(java.io.Reader stream)

SWRLParser

public SWRLParser(SWRLParserTokenManager tm)
Method Detail

checkAtomList

public static void checkAtomList(com.hp.hpl.jena.ontology.OntModel ontModel,
                                 java.lang.String text)
                          throws ParseException
Throws:
ParseException

checkImp

public static void checkImp(com.hp.hpl.jena.ontology.OntModel ontModel,
                            java.lang.String text)
                     throws ParseException
Throws:
ParseException

parseAtomList

public static com.hp.hpl.jena.rdf.model.Resource parseAtomList(com.hp.hpl.jena.ontology.OntModel ontModel,
                                                               java.lang.String text)
                                                        throws ParseException
Throws:
ParseException

parseAtomList

public static com.hp.hpl.jena.rdf.model.Resource parseAtomList(com.hp.hpl.jena.ontology.OntModel ontModel,
                                                               java.lang.String text,
                                                               boolean create)
                                                        throws ParseException
Throws:
ParseException

parseImp

public static com.hp.hpl.jena.rdf.model.Resource parseImp(com.hp.hpl.jena.ontology.OntModel ontModel,
                                                          java.lang.String text)
                                                   throws ParseException
Throws:
ParseException

parseImp

public static com.hp.hpl.jena.rdf.model.Resource parseImp(com.hp.hpl.jena.ontology.OntModel ontModel,
                                                          java.lang.String text,
                                                          boolean create)
                                                   throws ParseException
Throws:
ParseException

parseRule

public final com.hp.hpl.jena.rdf.model.Resource parseRule()
                                                   throws ParseException
Throws:
ParseException

Imp

public final com.hp.hpl.jena.rdf.model.Resource Imp()
                                             throws ParseException
Throws:
ParseException

AtomList

public final com.hp.hpl.jena.rdf.model.Resource AtomList()
                                                  throws ParseException
Throws:
ParseException

Atom

public final com.hp.hpl.jena.rdf.model.Resource Atom()
                                              throws ParseException
Throws:
ParseException

EqualityAtom

public final com.hp.hpl.jena.rdf.model.Resource EqualityAtom()
                                                      throws ParseException
Throws:
ParseException

ClassAtom

public final com.hp.hpl.jena.rdf.model.Resource ClassAtom()
                                                   throws ParseException
Throws:
ParseException

TripleAtom

public final com.hp.hpl.jena.rdf.model.Resource TripleAtom()
                                                    throws ParseException
Throws:
ParseException

Resource

public final com.hp.hpl.jena.rdf.model.Resource Resource()
                                                  throws ParseException
Throws:
ParseException

VariableOrResourceOrLiteral

public final com.hp.hpl.jena.rdf.model.RDFNode VariableOrResourceOrLiteral()
                                                                    throws ParseException
Throws:
ParseException

VariableOrResource

public final com.hp.hpl.jena.rdf.model.Resource VariableOrResource()
                                                            throws ParseException
Throws:
ParseException

Variable

public final com.hp.hpl.jena.rdf.model.Resource Variable()
                                                  throws ParseException
Throws:
ParseException

Identifier

public final java.lang.String Identifier()
                                  throws ParseException
Throws:
ParseException

Literal

public final com.hp.hpl.jena.rdf.model.Literal Literal()
                                                throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(SWRLParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()