org.basex.query.regex
Class Literal

java.lang.Object
  extended by org.basex.query.regex.RegExp
      extended by org.basex.query.regex.Literal

public class Literal
extends RegExp

A character literal.

Author:
BaseX Team 2005-12, BSD License, Leo Woerteler

Constructor Summary
Literal(int cp)
          Constructor.
 
Method Summary
static java.lang.String escape(int cp)
          Escapes the given code point for a regular expression.
 
Methods inherited from class org.basex.query.regex.RegExp
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Literal

public Literal(int cp)
Constructor.

Parameters:
cp - Unicode code point
Method Detail

escape

public static java.lang.String escape(int cp)
Escapes the given code point for a regular expression.

Parameters:
cp - code point
Returns:
string representation