|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.reasoner.rulesys.Rule.Parser
public static class Rule.Parser
Inner class which provides minimalist parsing support based on tokenisation with depth 1 lookahead. No sensible error reporting on offer. No embedded spaces supported.
Method Summary | |
---|---|
Map<String,String> |
getPrefixMap()
Return a map of all the discovered prefixes |
List<Rule> |
getRulesPreload()
Return the complete set of preloaded rules; |
Rule |
parseRule()
Parse a rule, terminated by a "]" or "." character. |
String |
recentTokens()
Return a trace of the recently seen tokens, for use in error reporting |
void |
registerPrefix(String prefix,
String namespace)
Register a new namespace prefix with the parser |
void |
registerPrefixMap(Map<String,String> map)
Register a set of prefix to namespace mappings with the parser |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void registerPrefix(String prefix, String namespace)
public void registerPrefixMap(Map<String,String> map)
public Map<String,String> getPrefixMap()
public List<Rule> getRulesPreload()
public String recentTokens()
public Rule parseRule()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |