Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class AutocompleteItem

OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.AutocompleteItem

Autocomplete code suggestion item

public class AutocompleteItem : IEquatable<AutocompleteItem>

Inheritance

  • System.Object

Implemented Interfaces

  • System.IEquatable{OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.AutocompleteItem}

Constructors

public AutocompleteItem(AutocompleteKind kind, Action<Exception, string> log, ITypeSearcher typeSearcher) #

Parameters

Name
Type
Description
kind
AutocompleteKind
log
Action<String>
typeSearcher
ITypeSearcher

Properties

Name
Type
Kind #
AutocompleteKind
namespace or class or ...
FullName #
String
name with namespace (like "System.Console")
Name #
String
name without namespace (like "Console")
Type #
String
Return type. Can be null (for namespace or class or other)
Childs #
List<AutocompleteItem>
Childs. Classes and children namespaces for namespace, members for classes, etc
Parameters #
List<AutocompleteItem>
overrides of method parameters (not null or empty only for methods.
TypeArguments #
List<String>
Generic type arguments for variables
TypeParamenters #
List<String>
Generic type paramenters for classes, structs etc
ChildsNamespaceParts #
AutocompleteItem[]

Methods

public static AutocompleteItem MakeRootWithTypes(Action<Exception, string> log, ITypeSearcher typeSearcher) #

Parameters

Name
Type
Description
log
Action<String>
typeSearcher
ITypeSearcher

Returns

Type
Description
AutocompleteItem
public int GetCount() #

Returns

Type
Description
Int32
public override string ToString() #

Returns

Type
Description
String
public void AddInstance(string instanceName, string t) #

Parameters

Name
Type
Description
instanceName
String
t
String
public void AddInstance(string instanceName, Type t, List<string> typeArguments = null, bool loadExtraLevel = false) #

Parameters

Name
Type
Description
instanceName
String
t
Type
typeArguments
List<String>
loadExtraLevel
Boolean
public HashSet<AutocompleteItem> Get(string pattern, IEnumerable<string> usings, IEnumerable<AutocompleteVariable> variables) #

Parameters

Name
Type
Description
pattern
String
usings
IEnumerable<String>
variables
IEnumerable<AutocompleteVariable>

Returns

Type
Description
HashSet<AutocompleteItem>
public void AddVariablesIfNotExists(IEnumerable<AutocompleteVariable> variables) #

Parameters

Name
Type
Description
variables
IEnumerable<AutocompleteVariable>
protected IEnumerable<string> AddRootUsing(IEnumerable<string> usings) #

Parameters

Name
Type
Description
usings
IEnumerable<String>

Returns

Type
Description
IEnumerable<String>
protected HashSet<AutocompleteItem> Search(IEnumerable<string[]> patterns, IEnumerable<AutocompleteVariable> allowVariables) #

Parameters

Name
Type
Description
patterns
IEnumerable<String[]>
allowVariables
IEnumerable<AutocompleteVariable>

Returns

Type
Description
HashSet<AutocompleteItem>
protected IEnumerable<AutocompleteItem> ProcessLastPattern(string p, IEnumerable<AutocompleteVariable> allowVariables) #

Parameters

Name
Type
Description
p
String
allowVariables
IEnumerable<AutocompleteVariable>

Returns

Type
Description
IEnumerable<AutocompleteItem>
protected AutocompleteItem MakeFieldsCopy() #

Returns

Type
Description
AutocompleteItem
public static string JoinNames(params string[] parts) #

Parameters

Name
Type
Description
parts
String[]

Returns

Type
Description
String
protected AutocompleteItem AddChildNamespaces(string @namespace) #

Parameters

Name
Type
Description
namespace
String

Returns

Type
Description
AutocompleteItem
protected AutocompleteItem AddChildNamespaces(string prev, string[] parts) #

Parameters

Name
Type
Description
prev
String
parts
String[]

Returns

Type
Description
AutocompleteItem
protected AutocompleteItem SearchOrAddNamespacePart(string prev, string val) #

Parameters

Name
Type
Description
prev
String
val
String

Returns

Type
Description
AutocompleteItem
protected AutocompleteItem GetNamespacePart(string name) #

Parameters

Name
Type
Description
name
String

Returns

Type
Description
AutocompleteItem
protected AutocompleteItem MakeNamespacePart(string prev, string val) #

Parameters

Name
Type
Description
prev
String
val
String

Returns

Type
Description
AutocompleteItem
public void AddType(Type t) #

Parameters

Name
Type
Description
t
Type
protected AutocompleteItem AddTypeWithoutMembers(Type t) #

Parameters

Name
Type
Description
t
Type

Returns

Type
Description
AutocompleteItem
protected void AddStaticMembers(Type t) #

Parameters

Name
Type
Description
t
Type
protected void AddInstanceMembers(Type t, string varName) #

Parameters

Name
Type
Description
t
Type
varName
String
protected void AddMembers(Type t, bool isStatic, string variableName) #

Parameters

Name
Type
Description
t
Type
isStatic
Boolean
variableName
String
protected void AddFields(Type t, BindingFlags flag, Func<string, string> getName) #

Parameters

Name
Type
Description
t
Type
flag
BindingFlags
getName
Func<String>
protected void AddProperties(Type t, BindingFlags flag, Func<string, string> getName) #

Parameters

Name
Type
Description
t
Type
flag
BindingFlags
getName
Func<String>
protected void AddMethodsAndEvents(Type t, BindingFlags flag, Func<string, string> getName) #

Parameters

Name
Type
Description
t
Type
flag
BindingFlags
getName
Func<String>
public bool Equals(AutocompleteItem other) #

Parameters

Name
Type
Description
other
AutocompleteItem

Returns

Type
Description
Boolean
public override bool Equals(object obj) #

Parameters

Name
Type
Description
obj
Object

Returns

Type
Description
Boolean
public override int GetHashCode() #

Returns

Type
Description
Int32

Fields

protected readonly object _addVariablesLock #