Flutter Engine
The Flutter Engine
|
Public Member Functions | |
CompletionSuggestion (String kind, int relevance, String completion, String displayText, Integer replacementOffset, Integer replacementLength, int selectionOffset, int selectionLength, boolean isDeprecated, boolean isPotential, String docSummary, String docComplete, String declaringType, String defaultArgumentListString, int[] defaultArgumentListTextRanges, Element element, String returnType, List< String > parameterNames, List< String > parameterTypes, Integer requiredParameterCount, Boolean hasNamedParameters, String parameterName, String parameterType, String libraryUri, Boolean isNotImported) | |
boolean | equals (Object obj) |
String | getCompletion () |
String | getDeclaringType () |
String | getDefaultArgumentListString () |
int[] | getDefaultArgumentListTextRanges () |
String | getDisplayText () |
String | getDocComplete () |
String | getDocSummary () |
Element | getElement () |
Boolean | getHasNamedParameters () |
boolean | isDeprecated () |
Boolean | getIsNotImported () |
boolean | isPotential () |
String | getKind () |
String | getLibraryUri () |
String | getParameterName () |
List< String > | getParameterNames () |
String | getParameterType () |
List< String > | getParameterTypes () |
int | getRelevance () |
Integer | getReplacementLength () |
Integer | getReplacementOffset () |
Integer | getRequiredParameterCount () |
String | getReturnType () |
int | getSelectionLength () |
int | getSelectionOffset () |
int | hashCode () |
JsonObject | toJson () |
String | toString () |
Static Public Member Functions | |
static CompletionSuggestion | fromJson (JsonObject jsonObject) |
static List< CompletionSuggestion > | fromJsonArray (JsonArray jsonArray) |
Static Public Attributes | |
static final CompletionSuggestion[] | EMPTY_ARRAY = new CompletionSuggestion[0] |
static final List< CompletionSuggestion > | EMPTY_LIST = Lists.newArrayList() |
A suggestion for how to complete partially entered text. Many of the fields are optional, depending on the kind of element being suggested.
@coverage dart.server.generated.types
Definition at line 33 of file CompletionSuggestion.java.
|
inline |
Constructor for CompletionSuggestion
.
Definition at line 203 of file CompletionSuggestion.java.
|
inline |
Definition at line 232 of file CompletionSuggestion.java.
|
inlinestatic |
Definition at line 265 of file CompletionSuggestion.java.
|
inlinestatic |
Definition at line 294 of file CompletionSuggestion.java.
|
inline |
The identifier to be inserted if the suggestion is selected. If the suggestion is for a method or function, the client might want to additionally insert a template for the parameters. The information required in order to do so is contained in other fields.
Definition at line 311 of file CompletionSuggestion.java.
|
inline |
The class that declares the element being suggested. This field is omitted if the suggested element is not a member of a class.
Definition at line 319 of file CompletionSuggestion.java.
|
inline |
A default String for use in generating argument list source contents on the client side.
Definition at line 326 of file CompletionSuggestion.java.
|
inline |
Pairs of offsets and lengths describing 'defaultArgumentListString' text ranges suitable for use by clients to set up linked edits of default argument source contents. For example, given an argument list string 'x, y', the corresponding text range [0, 1, 3, 1], indicates two text ranges of length 1, starting at offsets 0 and 3. Clients can use these ranges to treat the 'x' and 'y' values specially for linked edits.
Definition at line 337 of file CompletionSuggestion.java.
|
inline |
Text to be displayed in, for example, a completion pop-up. This field is only defined if the displayed text should be different than the completion. Otherwise it is omitted.
Definition at line 345 of file CompletionSuggestion.java.
|
inline |
The Dartdoc associated with the element being suggested. This field is omitted if there is no Dartdoc associated with the element.
Definition at line 353 of file CompletionSuggestion.java.
|
inline |
An abbreviated version of the Dartdoc associated with the element being suggested. This field is omitted if there is no Dartdoc associated with the element.
Definition at line 361 of file CompletionSuggestion.java.
|
inline |
Information about the element reference being suggested.
Definition at line 368 of file CompletionSuggestion.java.
|
inline |
True if the function or method being suggested has at least one named parameter. This field is omitted if the parameterNames field is omitted.
Definition at line 376 of file CompletionSuggestion.java.
|
inline |
True if the suggestion is for an element from a not yet imported library. This field is omitted if the element is declared locally, or is from library is already imported, so that the suggestion can be inserted as is, or if getSuggestions was used rather than getSuggestions2.
Definition at line 392 of file CompletionSuggestion.java.
|
inline |
The kind of element being suggested.
Definition at line 407 of file CompletionSuggestion.java.
|
inline |
This field is omitted if getSuggestions was used rather than getSuggestions2.
This field is omitted if this suggestion corresponds to a locally declared element.
If this suggestion corresponds to an already imported element, then this field is the URI of a library that provides this element, not the URI of the library where the element is declared.
If this suggestion corresponds to an element from a not yet imported library, this field is the URI of a library that could be imported to make this suggestion accessible in the file where completion was requested, such as package:foo/bar.dart or file:///home/me/workspace/foo/test/bar_test.dart.
Definition at line 424 of file CompletionSuggestion.java.
|
inline |
The name of the optional parameter being suggested. This field is omitted if the suggestion is not the addition of an optional argument within an argument list.
Definition at line 432 of file CompletionSuggestion.java.
|
inline |
The names of the parameters of the function or method being suggested. This field is omitted if the suggested element is not a setter, function or method.
Definition at line 440 of file CompletionSuggestion.java.
|
inline |
The type of the options parameter being suggested. This field is omitted if the parameterName field is omitted.
Definition at line 448 of file CompletionSuggestion.java.
|
inline |
The types of the parameters of the function or method being suggested. This field is omitted if the parameterNames field is omitted.
Definition at line 456 of file CompletionSuggestion.java.
|
inline |
The relevance of this completion suggestion where a higher number indicates a higher relevance.
Definition at line 463 of file CompletionSuggestion.java.
|
inline |
The length of the text to be replaced. If supplied, this should be used in preference to the offset provided on the containing completion results. This value may be provided independently of replacementOffset (for example if only one differs from the completion result value).
Definition at line 472 of file CompletionSuggestion.java.
|
inline |
The offset of the start of the text to be replaced. If supplied, this should be used in preference to the offset provided on the containing completion results. This value may be provided independently of replacementLength (for example if only one differs from the completion result value).
Definition at line 482 of file CompletionSuggestion.java.
|
inline |
The number of required parameters for the function or method being suggested. This field is omitted if the parameterNames field is omitted.
Definition at line 490 of file CompletionSuggestion.java.
|
inline |
The return type of the getter, function or method or the type of the field being suggested. This field is omitted if the suggested element is not a getter, function or method.
Definition at line 498 of file CompletionSuggestion.java.
|
inline |
The number of characters that should be selected after insertion.
Definition at line 505 of file CompletionSuggestion.java.
|
inline |
The offset, relative to the beginning of the completion, of where the selection should be placed after insertion.
Definition at line 513 of file CompletionSuggestion.java.
|
inline |
Definition at line 518 of file CompletionSuggestion.java.
|
inline |
True if the suggested element is deprecated.
Definition at line 383 of file CompletionSuggestion.java.
|
inline |
True if the element is not known to be valid for the target. This happens if the type of the target is dynamic.
Definition at line 400 of file CompletionSuggestion.java.
|
inline |
Definition at line 548 of file CompletionSuggestion.java.
|
inline |
Definition at line 627 of file CompletionSuggestion.java.
|
static |
Definition at line 35 of file CompletionSuggestion.java.
|
static |
Definition at line 37 of file CompletionSuggestion.java.