org.eclipse.jdt.internal.compiler.parser
Class ScannerHelper
java.lang.Object
org.eclipse.jdt.internal.compiler.parser.ScannerHelper
public class ScannerHelper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ScannerHelper
public ScannerHelper()
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)