Class RecoveryScanner
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.parser.Scanner
org.aspectj.org.eclipse.jdt.internal.compiler.parser.RecoveryScanner
-
Field Summary
FieldsFields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.parser.Scanner
BINARY_LITERAL_NOT_BELOW_17, BracketKinds, checkNonExternalizedStringLiterals, checkUninternedIdentityComparison, COMMENT_ARRAYS_SIZE, commentIsMarkdown, commentPtr, commentStarts, commentStops, commentTagStarts, complianceLevel, containsAssertKeyword, CurlyBracket, currentCharacter, currentPosition, diet, END_OF_SOURCE, eofPosition, fakeInModule, foundTaskCount, foundTaskMessages, foundTaskPositions, foundTaskPriorities, foundTaskTags, HIGH_SURROGATE_MAX_VALUE, HIGH_SURROGATE_MIN_VALUE, IDENTITY_COMPARISON_TAG, ILLEGAL_HEXA_LITERAL, initialPosition, insideModuleInfo, insideRecovery, INVALID_BINARY, INVALID_CHAR_IN_STRING, INVALID_CHARACTER_CONSTANT, INVALID_DIGIT, INVALID_ESCAPE, INVALID_FLOAT, INVALID_HEXA, INVALID_HIGH_SURROGATE, INVALID_INPUT, INVALID_LOW_SURROGATE, INVALID_OCTAL, INVALID_TEXTBLOCK, INVALID_UNDERSCORE, INVALID_UNICODE_ESCAPE, isTaskCaseSensitive, lastCommentLinePosition, lastPosition, lineEnds, linePtr, LOW_SURROGATE_MAX_VALUE, LOW_SURROGATE_MIN_VALUE, nextToken, nlsTagsPtr, NULL_SOURCE_STRING, previewEnabled, rawStart, recordLineSeparator, returnOnlyGreater, RoundBracket, scanContext, scanningFloatLiteral, scanningSwitchLabel, skipComments, source, sourceLevel, SquareBracket, startPosition, TAG_POSTFIX, TAG_POSTFIX_LENGTH, TAG_PREFIX, TAG_PREFIX_LENGTH, taskPriorities, taskTags, tokenizeComments, tokenizeWhiteSpace, UNDERSCORES_IN_LITERALS_NOT_BELOW_17, unicodeAsBackSlash, UNTERMINATED_COMMENT, UNTERMINATED_STRING, UNTERMINATED_TEXT_BLOCK, useAssertAsAnIndentifier, useEnumAsAnIndentifier, validIdentityComparisonLines, wasAcr, withoutUnicodeBuffer, withoutUnicodePtr -
Constructor Summary
ConstructorsConstructorDescriptionRecoveryScanner(boolean tokenizeWhiteSpace, boolean checkNonExternalizedStringLiterals, long sourceLevel, long complianceLevel, char[][] taskTags, char[][] taskPriorities, boolean isTaskCaseSensitive, boolean isPreviewEnabled, RecoveryScannerData data) RecoveryScanner(Scanner scanner, RecoveryScannerData data) -
Method Summary
Modifier and TypeMethodDescriptionchar[]char[]char[]getData()protected TerminalTokenvoidinsertToken(TerminalToken token, int completedToken, int position) voidinsertTokenAhead(TerminalToken token, int index) voidinsertTokens(int[] tokens, int completedToken, int position) voidinsertTokens(TerminalToken[] tokens, int completedToken, int position) booleanbooleanbooleanbooleanvoidremoveTokens(int start, int end) voidreplaceTokens(int[] tokens, int start, int end) voidreplaceTokens(int token, int start, int end) voidreplaceTokens(TerminalToken[] tokens, int start, int end) voidreplaceTokens(TerminalToken token, int start, int end) voidsetData(RecoveryScannerData data) voidsetPendingTokens(TerminalToken[] pendingTokens) Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.parser.Scanner
areRestrictedModuleKeywordsActive, atEnd, atMultiCaseComma, atTypeAnnotation, checkTaskTag, copyAllCommentInfo, copyCommentInfo, fastForward, findCommentType, getCurrentStringLiteral, getCurrentTextBlock, getCurrentTokenEndPosition, getCurrentTokenStartPosition, getCurrentTokenString, getIdentityComparisonLines, getLineEnd, getLineEnds, getLineNumber, getLineStart, getNextChar, getNextChar, getNextChar, getNextCharAsDigit, getNextCharAsDigit, getNextCharAsJavaIdentifierPart, getNextCharAsJavaIdentifierPartWithBoundCheck, getNextCharWithBoundChecks, getNextNotFakedToken, getNextToken, getNextUnicodeChar, getNLSTags, getRawTokenSource, getRawTokenSourceEnd, getSource, growCommentInfoArrays, illegalHexaLiteral, invalidBinary, invalidBinaryLiteral, invalidCharacter, invalidCharInString, invalidEof, invalidEscape, invalidFloat, invalidHexa, invalidHighSurrogate, invalidInput, invalidLowSurrogate, invalidToken, invalidUnderscore, invalidUnderscoresInLiterals, invalidUnicodeEscape, isAtAssistIdentifier, isFirstTag, isIdentifier, isInModuleDeclaration, isKeyword, isLiteral, isRestrictedKeyword, jumpOverMethodBody, jumpOverUnicodeWhiteSpace, lineBeginsWithMarkdown, mayBeAtCasePattern, maybeAtLambdaOrCast, maybeAtReferenceExpression, processSingleQuotes, pushLineSeparator, pushUnicodeLineSeparator, recordComment, resetTo, resetTo, resetTo, scanEscapeCharacter, scanForStringLiteral, scanForTextBlock, scanForTextBlockBeginning, scanForTextBlockClose, scanIdentifier, scanIdentifierOrKeyword, scanIdentifierOrKeywordAj, scanIdentifierOrKeywordWithBoundCheck, scanNumber, setActiveParser, setSource, setSource, setSource, toString, toStringAction, ungetToken, unicodeInitializeBuffer, unicodeStore, unicodeStore, unterminatedComment, unterminatedString, unterminatedTextBlock
-
Field Details
-
FAKE_IDENTIFIER
public static final char[] FAKE_IDENTIFIER -
record
public boolean record
-
-
Constructor Details
-
RecoveryScanner
-
RecoveryScanner
public RecoveryScanner(boolean tokenizeWhiteSpace, boolean checkNonExternalizedStringLiterals, long sourceLevel, long complianceLevel, char[][] taskTags, char[][] taskPriorities, boolean isTaskCaseSensitive, boolean isPreviewEnabled, RecoveryScannerData data)
-
-
Method Details
-
insertToken
-
insertTokens
public void insertTokens(int[] tokens, int completedToken, int position) -
insertTokens
-
insertTokenAhead
-
replaceTokens
public void replaceTokens(int token, int start, int end) -
replaceTokens
-
replaceTokens
public void replaceTokens(int[] tokens, int start, int end) -
replaceTokens
-
removeTokens
public void removeTokens(int start, int end) -
getNextToken0
- Overrides:
getNextToken0in classScanner- Throws:
InvalidInputException
-
getCurrentIdentifierSource
public char[] getCurrentIdentifierSource()- Overrides:
getCurrentIdentifierSourcein classScanner
-
getCurrentTokenSourceString
public char[] getCurrentTokenSourceString()- Overrides:
getCurrentTokenSourceStringin classScanner
-
getCurrentTokenSource
public char[] getCurrentTokenSource()- Overrides:
getCurrentTokenSourcein classScanner
-
getData
-
isFakeToken
public boolean isFakeToken() -
isInsertedToken
public boolean isInsertedToken() -
isReplacedToken
public boolean isReplacedToken() -
isPrecededByRemovedToken
public boolean isPrecededByRemovedToken() -
setData
-
setPendingTokens
-