com.hp.hpl.jena.sparql.lang
Class ParserBase

java.lang.Object
  extended by com.hp.hpl.jena.sparql.lang.ParserBase
Direct Known Subclasses:
ParserQueryBase, ParserSSEBase

public class ParserBase
extends Object

Base class for RDF related parsers


Constructor Summary
ParserBase()
           
 
Method Summary
 Prologue getPrologue()
           
static int hex(String s, int i, int len, int line, int column)
           
 void setPrologue(Prologue prologue)
           
static String stripChars(String s, int n)
          remove the first n charcacters from the string
static void throwParseException(String msg, int line, int column)
           
static String unescape(String s, char escape, boolean pointCodeOnly, int line, int column)
           
static String unescapePName(String s, int line, int column)
           
static String unescapeStr(String s)
           
static String unescapeStr(String s, int line, int column)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserBase

public ParserBase()
Method Detail

setPrologue

public void setPrologue(Prologue prologue)

getPrologue

public Prologue getPrologue()

stripChars

public static String stripChars(String s,
                                int n)
remove the first n charcacters from the string


unescapeStr

public static String unescapeStr(String s)

unescapeStr

public static String unescapeStr(String s,
                                 int line,
                                 int column)

unescape

public static String unescape(String s,
                              char escape,
                              boolean pointCodeOnly,
                              int line,
                              int column)

hex

public static int hex(String s,
                      int i,
                      int len,
                      int line,
                      int column)

unescapePName

public static String unescapePName(String s,
                                   int line,
                                   int column)

throwParseException

public static void throwParseException(String msg,
                                       int line,
                                       int column)


Licenced under the Apache License, Version 2.0