Interface SourceCodeAnalysis.CompletionState
- Enclosing class:
SourceCodeAnalysis
public static sealed interface SourceCodeAnalysis.CompletionState
Permit access to completion state.
- Since:
- 26
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the given element is available using the simple name at the place of the cursor..Returns flags describing the overall completion context..Returns an implementation of some utility methods for operating on elements.Returns if the context is a qualified expression (i.e.SourceCodeAnalysis.CompletionContext.QUALIFIEDis set), the type of the selector expression;nullotherwise..Returns an implementation of some utility methods for operating on types.
-
Method Details
-
availableUsingSimpleName
-
completionContext
Set<SourceCodeAnalysis.CompletionContext> completionContext()Returns flags describing the overall completion context..- Returns:
- flags describing the overall completion context.
-
selectorType
TypeMirror selectorType()Returns if the context is a qualified expression (i.e.SourceCodeAnalysis.CompletionContext.QUALIFIEDis set), the type of the selector expression;nullotherwise..- Returns:
- if the context is a qualified expression
(i.e.
SourceCodeAnalysis.CompletionContext.QUALIFIEDis set), the type of the selector expression;nullotherwise.
-
elementUtils
Elements elementUtils()Returns an implementation of some utility methods for operating on elements.- Returns:
- an implementation of some utility methods for operating on elements
-
typeUtils
Types typeUtils()Returns an implementation of some utility methods for operating on types.- Returns:
- an implementation of some utility methods for operating on types
-