Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class DefaultAutocompleter

OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.DefaultAutocompleter

Provides the default ICodeAutocompleter implementation.

public class DefaultAutocompleter : ICodeAutocompleter

Inheritance

  • Object

Implemented Interfaces

Constructors

public DefaultAutocompleter(Action<Exception, string> log) #
Initializes a new instance of DefaultAutocompleter with a default type searcher.

Parameters

Name
Type
Description
log
Action<Exception, String>
Logging callback used for non-fatal autocomplete errors.
public DefaultAutocompleter(Action<Exception, string> log, ITypeSearcher typeSearcher) #
Initializes a new instance of DefaultAutocompleter.

Parameters

Name
Type
Description
log
Action<Exception, String>
Logging callback used for non-fatal autocomplete errors.
typeSearcher
ITypeSearcher
Type searcher used to discover and resolve CLR types.

Properties

Name
Type
AutocompleterName #
String
Gets the name that identifies the default autocompleter.
Initialized #
Boolean
Gets a value indicating whether initialization has completed.

Methods

public HashSet<AutocompleteItem> Get(string pattern, IEnumerable<string> usings, IEnumerable<AutocompleteVariable> variables) #
Gets autocomplete items that match the specified pattern.

Parameters

Name
Type
Description
pattern
String
Text to search for, for example System.Thr.
usings
IEnumerable<String>
Active namespace prefixes used for resolution.
variables
IEnumerable<AutocompleteVariable>
Context variables to include in completion results.

Returns

Type
Description
HashSet<AutocompleteItem>
A set of matching AutocompleteItem instances.
public void InitIfNotInitialized() #
Initializes the autocompleter lazily and performs one-time root setup.
public void AddVariables(IEnumerable<AutocompleteVariable> variables) #
Adds variables to the autocompleter root.

Parameters

Name
Type
Description
variables
IEnumerable<AutocompleteVariable>
Variables to add to available completion candidates.

Fields

public static string DefaultAutocompleterName #
Default autocompleter name.

Remarks