org.topbraid.rules.swrl.parser
Class SWRLParser
java.lang.Object
org.topbraid.rules.swrl.parser.SWRLParser
- All Implemented Interfaces:
- SWRLParserConstants
public class SWRLParser
- extends java.lang.Object
- implements SWRLParserConstants
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
errorMessage
public static java.lang.String errorMessage
token_source
public SWRLParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
SWRLParser
public SWRLParser(java.io.InputStream stream)
SWRLParser
public SWRLParser(java.io.Reader stream)
SWRLParser
public SWRLParser(SWRLParserTokenManager tm)
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()