org.eclipse.jdt.internal.compiler.parser
Class ScannerHelper

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.parser.ScannerHelper

public class ScannerHelper
extends java.lang.Object


Field Summary
static long[] Bits
           
static int C_DIGIT
           
static int C_IDENT_PART
           
static int C_IDENT_START
           
static int C_JLS_SPACE
           
static int C_LOWER_LETTER
           
static int C_SEPARATOR
           
static int C_SPACE
           
static int C_SPECIAL
           
static int C_UPPER_LETTER
           
static int MAX_OBVIOUS
           
static int[] OBVIOUS_IDENT_CHAR_NATURES
           
 
Constructor Summary
ScannerHelper()
           
 
Method Summary
static int digit(char c, int radix)
           
static int getNumericValue(char c)
           
static boolean isDigit(char c)
           
static boolean isJavaIdentifierPart(char c)
           
static boolean isJavaIdentifierPart(char high, char low)
           
static boolean isJavaIdentifierStart(char c)
           
static boolean isJavaIdentifierStart(char high, char low)
           
static boolean isLetter(char c)
           
static boolean isLetterOrDigit(char c)
           
static boolean isLowerCase(char c)
           
static boolean isUpperCase(char c)
           
static boolean isWhitespace(char c)
          Include also non JLS whitespaces.
static char toLowerCase(char c)
           
static char toUpperCase(char c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Bits

public static final long[] Bits

MAX_OBVIOUS

public static final int MAX_OBVIOUS
See Also:
Constant Field Values

OBVIOUS_IDENT_CHAR_NATURES

public static final int[] OBVIOUS_IDENT_CHAR_NATURES

C_JLS_SPACE

public static final int C_JLS_SPACE
See Also:
Constant Field Values

C_SPECIAL

public static final int C_SPECIAL
See Also:
Constant Field Values

C_IDENT_START

public static final int C_IDENT_START
See Also:
Constant Field Values

C_UPPER_LETTER

public static final int C_UPPER_LETTER
See Also:
Constant Field Values

C_LOWER_LETTER

public static final int C_LOWER_LETTER
See Also:
Constant Field Values

C_IDENT_PART

public static final int C_IDENT_PART
See Also:
Constant Field Values

C_DIGIT

public static final int C_DIGIT
See Also:
Constant Field Values

C_SEPARATOR

public static final int C_SEPARATOR
See Also:
Constant Field Values

C_SPACE

public static final int C_SPACE
See Also:
Constant Field Values
Constructor Detail

ScannerHelper

public ScannerHelper()
Method Detail

isJavaIdentifierPart

public static boolean isJavaIdentifierPart(char c)

isJavaIdentifierPart

public static boolean isJavaIdentifierPart(char high,
                                           char low)

isJavaIdentifierStart

public static boolean isJavaIdentifierStart(char c)

isJavaIdentifierStart

public static boolean isJavaIdentifierStart(char high,
                                            char low)

isDigit

public static boolean isDigit(char c)
                       throws InvalidInputException
Throws:
InvalidInputException

digit

public static int digit(char c,
                        int radix)

getNumericValue

public static int getNumericValue(char c)

toUpperCase

public static char toUpperCase(char c)

toLowerCase

public static char toLowerCase(char c)

isLowerCase

public static boolean isLowerCase(char c)

isUpperCase

public static boolean isUpperCase(char c)

isWhitespace

public static boolean isWhitespace(char c)
Include also non JLS whitespaces. return true if Character.isWhitespace(c) would return true


isLetter

public static boolean isLetter(char c)

isLetterOrDigit

public static boolean isLetterOrDigit(char c)