pobs.parser
Class PUnicodeBlock

java.lang.Object
  extended bypobs.PParser
      extended bypobs.parser.PUnicodeBlock
All Implemented Interfaces:
PObject

public class PUnicodeBlock
extends PParser

Matches any single character which is part of the specified UnicodeBlock. Note that this class explicitely does not use the case sensitive directive.

Also note, that this class is not JDK 1.1 compliant. At least JDK 1.2 is needed.

Author:
Martijn W. van der Lee

Field Summary
 java.lang.Character.UnicodeBlock unicodeBlock
           
 
Constructor Summary
PUnicodeBlock(java.lang.Character.UnicodeBlock unicodeBlock)
          Sole constructor taking the UnicodeBlock to match.
 
Method Summary
 PMatch parse(PScanner input, long begin, PContext context)
           
 
Methods inherited from class pobs.PParser
addControl, getErrorInfo, process, setErrorInfo, setMatchAction, setMismatchAction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unicodeBlock

public java.lang.Character.UnicodeBlock unicodeBlock
Constructor Detail

PUnicodeBlock

public PUnicodeBlock(java.lang.Character.UnicodeBlock unicodeBlock)
Sole constructor taking the UnicodeBlock to match.

Parameters:
unicodeBlock - the UnicodeBlock to match
Method Detail

parse

public PMatch parse(PScanner input,
                    long begin,
                    PContext context)
Parameters:
input - Input to be parsed.
begin - Index of first character of input to be parsed.
context - Parsing context.
Returns:
Parsing result.