Logo Search packages:      
Sourcecode: ecj version File versions

org::eclipse::jdt::internal::compiler::parser::Scanner Class Reference

Inheritance diagram for org::eclipse::jdt::internal::compiler::parser::Scanner:

org::eclipse::jdt::internal::compiler::parser::TerminalTokens

List of all members.


Detailed Description

IMPORTANT NOTE: Internal Scanner implementation. It is mirrored in org.eclipse.jdt.core.compiler public package where it is API. The mirror implementation is using the backward compatible ITerminalSymbols constant definitions (stable with 2.0), whereas the internal implementation uses TerminalTokens which constant values reflect the latest parser generation state.

Definition at line 25 of file Scanner.java.


Public Member Functions

final boolean atEnd ()
void checkTaskTag (int commentStart, int commentEnd) throws InvalidInputException
char[] getCurrentIdentifierSource ()
final String getCurrentStringLiteral ()
int getCurrentTokenEndPosition ()
char[] getCurrentTokenSource ()
char[] getCurrentTokenSourceString ()
int getCurrentTokenStartPosition ()
final String getCurrentTokenString ()
final int getLineEnd (int lineNumber)
final int[] getLineEnds ()
final int getLineNumber (int position)
final int getLineStart (int lineNumber)
final int getNextChar (char testedChar1, char testedChar2)
final boolean getNextChar (char testedChar)
final int getNextChar ()
final boolean getNextCharAsDigit (int radix)
final boolean getNextCharAsDigit () throws InvalidInputException
boolean getNextCharAsJavaIdentifierPart ()
int getNextToken () throws InvalidInputException
void getNextUnicodeChar () throws InvalidInputException
NLSTag[] getNLSTags ()
final char[] getRawTokenSource ()
final char[] getRawTokenSourceEnd ()
char[] getSource ()
final void jumpOverMethodBody ()
final boolean jumpOverUnicodeWhiteSpace () throws InvalidInputException
final void pushLineSeparator ()
final void pushUnicodeLineSeparator ()
void recordComment (int token)
void resetTo (int begin, int end)
final void scanEscapeCharacter () throws InvalidInputException
int scanIdentifierOrKeyword ()
 Scanner (boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean checkNonExternalizedStringLiterals, long sourceLevel, char[][] taskTags, char[][] taskPriorities, boolean isTaskCaseSensitive)
 Scanner (boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean checkNonExternalizedStringLiterals, long sourceLevel, long complianceLevel, char[][] taskTags, char[][] taskPriorities, boolean isTaskCaseSensitive)
int scanNumber (boolean dotPrefix) throws InvalidInputException
final void setSource (CompilationResult compilationResult)
final void setSource (char[] contents, CompilationResult compilationResult)
final void setSource (char[] sourceString)
String toString ()
String toStringAction (int act)
void unicodeInitializeBuffer (int length)
void unicodeStore ()

Public Attributes

final char[][][][] charArray_length
boolean checkNonExternalizedStringLiterals
int commentPtr = -1
int[] commentStarts = new int[COMMENT_ARRAYS_SIZE]
int[] commentStops = new int[COMMENT_ARRAYS_SIZE]
int[] commentTagStarts = new int[COMMENT_ARRAYS_SIZE]
boolean containsAssertKeyword = false
char currentCharacter
int currentPosition
boolean diet = false
int eofPosition
int foundTaskCount = 0
char[][] foundTaskMessages
int[][] foundTaskPositions
char[][] foundTaskPriorities = null
char[][] foundTaskTags = null
int initialPosition
boolean insideRecovery = false
boolean isTaskCaseSensitive = true
int[] lineEnds = new int[250]
int linePtr = -1
boolean recordLineSeparator = false
boolean returnOnlyGreater = false
boolean scanningFloatLiteral = false
char source []
int startPosition
char[][] taskPriorities = null
char[][] taskTags = null
boolean tokenizeComments = false
boolean tokenizeWhiteSpace = false
int TokenNameabstract = 56
int TokenNameAND = 20
int TokenNameAND_AND = 24
int TokenNameAND_EQUAL = 88
int TokenNameassert = 74
int TokenNameAT = 53
int TokenNameboolean = 32
int TokenNamebreak = 75
int TokenNamebyte = 33
int TokenNamecase = 101
int TokenNamecatch = 102
int TokenNamechar = 34
int TokenNameCharacterLiteral = 51
int TokenNameclass = 72
int TokenNameCOLON = 65
int TokenNameCOMMA = 30
int TokenNameconst = 108
int TokenNamecontinue = 76
int TokenNamedefault = 97
int TokenNameDIVIDE = 6
int TokenNameDIVIDE_EQUAL = 87
int TokenNamedo = 77
int TokenNameDOT = 3
int TokenNamedouble = 35
int TokenNameDoubleLiteral = 50
int TokenNameELLIPSIS = 107
int TokenNameelse = 103
int TokenNameenum = 98
int TokenNameEOF = 69
int TokenNameEQUAL = 71
int TokenNameEQUAL_EQUAL = 18
int TokenNameERROR = 110
int TokenNameextends = 99
int TokenNamefalse = 44
int TokenNamefinal = 57
int TokenNamefinally = 104
int TokenNamefloat = 36
int TokenNameFloatingPointLiteral = 49
int TokenNamefor = 78
int TokenNamegoto = 109
int TokenNameGREATER = 12
int TokenNameGREATER_EQUAL = 17
int TokenNameIdentifier = 26
int TokenNameif = 79
int TokenNameimplements = 106
int TokenNameimport = 100
int TokenNameinstanceof = 15
int TokenNameint = 37
int TokenNameIntegerLiteral = 47
int TokenNameinterface = 95
int TokenNameLBRACE = 68
int TokenNameLBRACKET = 14
int TokenNameLEFT_SHIFT = 13
int TokenNameLEFT_SHIFT_EQUAL = 92
int TokenNameLESS = 7
int TokenNameLESS_EQUAL = 16
int TokenNamelong = 38
int TokenNameLongLiteral = 48
int TokenNameLPAREN = 28
int TokenNameMINUS = 2
int TokenNameMINUS_EQUAL = 85
int TokenNameMINUS_MINUS = 10
int TokenNameMULTIPLY = 4
int TokenNameMULTIPLY_EQUAL = 86
int TokenNamenative = 58
int TokenNamenew = 43
int TokenNameNOT = 66
int TokenNameNOT_EQUAL = 19
int TokenNamenull = 45
int TokenNameOR = 22
int TokenNameOR_EQUAL = 89
int TokenNameOR_OR = 25
int TokenNamepackage = 96
int TokenNamePLUS = 1
int TokenNamePLUS_EQUAL = 84
int TokenNamePLUS_PLUS = 9
int TokenNameprivate = 59
int TokenNameprotected = 60
int TokenNamepublic = 61
int TokenNameQUESTION = 23
int TokenNameRBRACE = 31
int TokenNameRBRACKET = 70
int TokenNameREMAINDER = 5
int TokenNameREMAINDER_EQUAL = 91
int TokenNamereturn = 80
int TokenNameRIGHT_SHIFT = 8
int TokenNameRIGHT_SHIFT_EQUAL = 93
int TokenNameRPAREN = 29
int TokenNameSEMICOLON = 27
int TokenNameshort = 39
int TokenNamestatic = 54
int TokenNamestrictfp = 62
int TokenNameStringLiteral = 52
int TokenNamesuper = 41
int TokenNameswitch = 81
int TokenNamesynchronized = 55
int TokenNamethis = 42
int TokenNamethrow = 82
int TokenNamethrows = 105
int TokenNametransient = 63
int TokenNametrue = 46
int TokenNametry = 83
int TokenNameTWIDDLE = 67
int TokenNameUNSIGNED_RIGHT_SHIFT = 11
int TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 94
int TokenNamevoid = 40
int TokenNamevolatile = 64
int TokenNamewhile = 73
int TokenNameXOR = 21
int TokenNameXOR_EQUAL = 90
boolean unicodeAsBackSlash = false
boolean useAssertAsAnIndentifier = false
boolean useEnumAsAnIndentifier = false
boolean wasAcr = false
char[] withoutUnicodeBuffer
int withoutUnicodePtr

Static Public Attributes

static final int BracketKinds = 3
static int COMMENT_ARRAYS_SIZE = 30
static final int CurlyBracket = 2
static final String END_OF_SOURCE = "End_Of_Source"
static final int HIGH_SURROGATE_MAX_VALUE = 0xDBFF
static final int HIGH_SURROGATE_MIN_VALUE = 0xD800
static final String INVALID_CHAR_IN_STRING = "Invalid_Char_In_String"
static final String INVALID_CHARACTER_CONSTANT = "Invalid_Character_Constant"
static final String INVALID_DIGIT = "Invalid_Digit"
static final String INVALID_ESCAPE = "Invalid_Escape"
static final String INVALID_FLOAT = "Invalid_Float_Literal"
static final String INVALID_HEXA = "Invalid_Hexa_Literal"
static final String INVALID_HIGH_SURROGATE = "Invalid_High_Surrogate"
static final String INVALID_INPUT = "Invalid_Input"
static final String INVALID_LOW_SURROGATE = "Invalid_Low_Surrogate"
static final String INVALID_OCTAL = "Invalid_Octal_Literal"
static final String INVALID_UNICODE_ESCAPE = "Invalid_Unicode_Escape"
static final int LOW_SURROGATE_MAX_VALUE = 0xDFFF
static final int LOW_SURROGATE_MIN_VALUE = 0xDC00
static final String NULL_SOURCE_STRING = "Null_Source_String"
static final int OptimizedLength = 7
static final int RoundBracket = 0
static final int SquareBracket = 1
static final char TAG_POSTFIX = '$'
static final int TAG_POSTFIX_LENGTH = 1
static final char[] TAG_PREFIX = "//$NON-NLS-".toCharArray()
static final int TAG_PREFIX_LENGTH = TAG_PREFIX.length
static final String UNTERMINATED_COMMENT = "Unterminated_Comment"
static final String UNTERMINATED_STRING = "Unterminated_String"

Protected Attributes

long complianceLevel
int lastCommentLinePosition = -1
int nlsTagsPtr
long sourceLevel

Package Functions

 [instance initializer]
final char[] optimizedCurrentTokenSource1 ()
final char[] optimizedCurrentTokenSource2 ()
final char[] optimizedCurrentTokenSource3 ()
final char[] optimizedCurrentTokenSource4 ()
final char[] optimizedCurrentTokenSource5 ()
final char[] optimizedCurrentTokenSource6 ()

Package Attributes

int newEntry2 = 0
int newEntry3 = 0
int newEntry4 = 0
int newEntry5 = 0
int newEntry6 = 0
int TokenNameCOMMENT_BLOCK = 1002
int TokenNameCOMMENT_JAVADOC = 1003
int TokenNameCOMMENT_LINE = 1001
int TokenNameWHITESPACE = 1000

Static Package Attributes

static final char[] charArray_a = new char[] {'a'}
static final char[] charArray_b = new char[] {'b'}
static final char[] charArray_c = new char[] {'c'}
static final char[] charArray_d = new char[] {'d'}
static final char[] charArray_e = new char[] {'e'}
static final char[] charArray_f = new char[] {'f'}
static final char[] charArray_g = new char[] {'g'}
static final char[] charArray_h = new char[] {'h'}
static final char[] charArray_i = new char[] {'i'}
static final char[] charArray_j = new char[] {'j'}
static final char[] charArray_k = new char[] {'k'}
static final char[] charArray_l = new char[] {'l'}
static final char[] charArray_m = new char[] {'m'}
static final char[] charArray_n = new char[] {'n'}
static final char[] charArray_o = new char[] {'o'}
static final char[] charArray_p = new char[] {'p'}
static final char[] charArray_q = new char[] {'q'}
static final char[] charArray_r = new char[] {'r'}
static final char[] charArray_s = new char[] {'s'}
static final char[] charArray_t = new char[] {'t'}
static final char[] charArray_u = new char[] {'u'}
static final char[] charArray_v = new char[] {'v'}
static final char[] charArray_w = new char[] {'w'}
static final char[] charArray_x = new char[] {'x'}
static final char[] charArray_y = new char[] {'y'}
static final char[] charArray_z = new char[] {'z'}
static final char[] initCharArray
static final int InternalTableSize = 6
static final int TableSize = 30

Private Member Functions

int extractInt (char[] array, int start, int end)
void parseTags ()

Private Attributes

NLSTag[] nlsTags = null

Static Private Attributes

static final int[] EMPTY_LINE_ENDS = new int[0]

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index