Class CompletionScanner
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.parser.Scanner
org.aspectj.org.eclipse.jdt.internal.codeassist.complete.CompletionScanner
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintchar[]intstatic final char[]intintFields 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
ConstructorsConstructorDescriptionCompletionScanner(long sourceLevel) CompletionScanner(long sourceLevel, boolean previewEnabled) -
Method Summary
Modifier and TypeMethodDescriptionchar[]char[]protected TerminalTokenOverridable hook, to allow CompletionScanner to hide a faked identifier token.protected TerminalTokenfinal voidprotected booleanprotected booleanfinal voidscanNumber(boolean dotPrefix) 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, getCurrentTokenSource, getCurrentTokenStartPosition, getCurrentTokenString, getIdentityComparisonLines, getLineEnd, getLineEnds, getLineNumber, getLineStart, getNextChar, getNextChar, getNextChar, getNextCharAsDigit, getNextCharAsDigit, getNextCharAsJavaIdentifierPart, getNextCharAsJavaIdentifierPartWithBoundCheck, getNextCharWithBoundChecks, getNextToken, getNLSTags, getRawTokenSource, getRawTokenSourceEnd, getSource, growCommentInfoArrays, illegalHexaLiteral, invalidBinary, invalidBinaryLiteral, invalidCharacter, invalidCharInString, invalidEof, invalidEscape, invalidFloat, invalidHexa, invalidHighSurrogate, invalidInput, invalidLowSurrogate, invalidToken, invalidUnderscore, invalidUnderscoresInLiterals, invalidUnicodeEscape, isIdentifier, isInModuleDeclaration, isKeyword, isLiteral, isRestrictedKeyword, jumpOverMethodBody, jumpOverUnicodeWhiteSpace, lineBeginsWithMarkdown, mayBeAtCasePattern, maybeAtLambdaOrCast, maybeAtReferenceExpression, processSingleQuotes, pushLineSeparator, pushUnicodeLineSeparator, recordComment, resetTo, resetTo, resetTo, scanEscapeCharacter, scanForStringLiteral, scanForTextBlock, scanForTextBlockBeginning, scanForTextBlockClose, scanIdentifier, scanIdentifierOrKeywordAj, scanIdentifierOrKeywordWithBoundCheck, setActiveParser, setSource, setSource, setSource, toString, toStringAction, ungetToken, unicodeInitializeBuffer, unicodeStore, unicodeStore, unterminatedComment, unterminatedString, unterminatedTextBlock
-
Field Details
-
completionIdentifier
public char[] completionIdentifier -
cursorLocation
public int cursorLocation -
endOfEmptyToken
public int endOfEmptyToken -
completedIdentifierStart
public int completedIdentifierStart -
completedIdentifierEnd
public int completedIdentifierEnd -
unicodeCharSize
public int unicodeCharSize -
EmptyCompletionIdentifier
public static final char[] EmptyCompletionIdentifier
-
-
Constructor Details
-
CompletionScanner
public CompletionScanner(long sourceLevel) -
CompletionScanner
public CompletionScanner(long sourceLevel, boolean previewEnabled)
-
-
Method Details
-
isAtAssistIdentifier
protected boolean isAtAssistIdentifier()- Overrides:
isAtAssistIdentifierin classScanner
-
getCurrentIdentifierSource
public char[] getCurrentIdentifierSource()- Overrides:
getCurrentIdentifierSourcein classScanner
-
getCurrentTokenSourceString
public char[] getCurrentTokenSourceString()- Overrides:
getCurrentTokenSourceStringin classScanner
-
getNextToken0
- Overrides:
getNextToken0in classScanner- Throws:
InvalidInputException
-
getNextNotFakedToken
Description copied from class:ScannerOverridable hook, to allow CompletionScanner to hide a faked identifier token.- Overrides:
getNextNotFakedTokenin classScanner- Throws:
InvalidInputException
-
getNextUnicodeChar
- Overrides:
getNextUnicodeCharin classScanner- Throws:
InvalidInputException
-
isFirstTag
protected boolean isFirstTag()- Overrides:
isFirstTagin classScanner
-
jumpOverBlock
public final void jumpOverBlock() -
scanIdentifierOrKeyword
-
scanNumber
- Overrides:
scanNumberin classScanner- Throws:
InvalidInputException
-