Class AutocompleteItem
Autocomplete code suggestion item
Inheritance
↳ object
↳ AutocompleteItem
Implements
IEquatable<AutocompleteItem>
Inherited Members
Equals(object, object)
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
Namespace: OptimaJet.Workflow.Core.Runtime.CodeAutocomplete
Assembly: OptimaJet.Workflow.Core.dll
Syntax
public class AutocompleteItem : IEquatable<AutocompleteItem>
Constructors
AutocompleteItem(AutocompleteKind, Action<Exception, string>, ITypeSearcher)
Declaration
public AutocompleteItem(AutocompleteKind kind, Action<Exception, string> log, ITypeSearcher typeSearcher)
Parameters
Type | Name | Description |
---|
AutocompleteKind | kind | |
Action<Exception, string> | log | |
ITypeSearcher | typeSearcher | |
Properties
Kind
namespace or class or ...
Declaration
[JsonProperty("kind")]
public virtual AutocompleteKind Kind { get; set; }
Property value
Type | Description |
---|
AutocompleteKind | |
FullName
name with namespace (like "System.Console")
Declaration
[JsonProperty("fullName")]
public virtual string FullName { get; set; }
Property value
Name
name without namespace (like "Console")
Declaration
[JsonProperty("name")]
public virtual string Name { get; protected set; }
Property value
Type
Return type. Can be null (for namespace or class or other)
Declaration
[JsonProperty("type")]
public virtual string Type { get; protected set; }
Property value
Childs
Childs. Classes and children namespaces for namespace, members for classes, etc
Declaration
[JsonProperty("childs")]
public virtual List<AutocompleteItem> Childs { get; protected set; }
Property value
Type | Description |
---|
List<AutocompleteItem> | |
Parameters
overrides of method parameters (not null or empty only for methods.
Declaration
[JsonProperty("parameters")]
public virtual List<List<AutocompleteItem>> Parameters { get; protected set; }
Property value
Type | Description |
---|
List<List<AutocompleteItem>> | |
TypeArguments
Generic type arguments for variables
Declaration
[JsonProperty("typeArguments")]
public virtual List<string> TypeArguments { get; protected set; }
Property value
Type | Description |
---|
List<string> | |
TypeParamenters
Generic type paramenters for classes, structs etc
Declaration
[JsonProperty("typeParameters")]
public virtual List<string> TypeParamenters { get; protected set; }
Property value
Type | Description |
---|
List<string> | |
ChildsNamespaceParts
Declaration
protected AutocompleteItem[] ChildsNamespaceParts { get; }
Property value
Type | Description |
---|
OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.AutocompleteItem[] | |
Methods
MakeRootWithTypes(Action<Exception, string>, ITypeSearcher)
Declaration
public static AutocompleteItem MakeRootWithTypes(Action<Exception, string> log, ITypeSearcher typeSearcher)
Parameters
Type | Name | Description |
---|
Action<Exception, string> | log | |
ITypeSearcher | typeSearcher | |
Returns
Type | Description |
---|
AutocompleteItem | |
GetCount()
Declaration
Returns
ToString()
Declaration
public override string ToString()
Returns
AddInstance(string, string)
Declaration
public void AddInstance(string instanceName, string t)
Parameters
Type | Name | Description |
---|
string | instanceName | |
string | t | |
AddInstance(string, Type, List<string>, bool)
Declaration
public void AddInstance(string instanceName, Type t, List<string> typeArguments = null, bool loadExtraLevel = false)
Parameters
Type | Name | Description |
---|
string | instanceName | |
Type | t | |
List<string> | typeArguments | |
bool | loadExtraLevel | |
Get(string, IEnumerable<string>, IEnumerable<AutocompleteVariable>)
Declaration
public HashSet<AutocompleteItem> Get(string pattern, IEnumerable<string> usings, IEnumerable<AutocompleteVariable> variables)
Parameters
Type | Name | Description |
---|
string | pattern | |
IEnumerable<string> | usings | |
IEnumerable<AutocompleteVariable> | variables | |
Returns
Type | Description |
---|
HashSet<AutocompleteItem> | |
AddVariablesIfNotExists(IEnumerable<AutocompleteVariable>)
Declaration
public void AddVariablesIfNotExists(IEnumerable<AutocompleteVariable> variables)
Parameters
Type | Name | Description |
---|
IEnumerable<AutocompleteVariable> | variables | |
AddRootUsing(IEnumerable<string>)
Declaration
protected IEnumerable<string> AddRootUsing(IEnumerable<string> usings)
Parameters
Type | Name | Description |
---|
IEnumerable<string> | usings | |
Returns
Type | Description |
---|
IEnumerable<string> | |
Search(IEnumerable<string[]>, IEnumerable<AutocompleteVariable>)
Declaration
protected HashSet<AutocompleteItem> Search(IEnumerable<string[]> patterns, IEnumerable<AutocompleteVariable> allowVariables)
Parameters
Type | Name | Description |
---|
IEnumerable<string[]> | patterns | |
IEnumerable<AutocompleteVariable> | allowVariables | |
Returns
Type | Description |
---|
HashSet<AutocompleteItem> | |
ProcessLastPattern(string, IEnumerable<AutocompleteVariable>)
Declaration
protected IEnumerable<AutocompleteItem> ProcessLastPattern(string p, IEnumerable<AutocompleteVariable> allowVariables)
Parameters
Type | Name | Description |
---|
string | p | |
IEnumerable<AutocompleteVariable> | allowVariables | |
Returns
Type | Description |
---|
IEnumerable<AutocompleteItem> | |
MakeFieldsCopy()
Declaration
protected AutocompleteItem MakeFieldsCopy()
Returns
Type | Description |
---|
AutocompleteItem | |
JoinNames(params string[])
Declaration
public static string JoinNames(params string[] parts)
Parameters
Type | Name | Description |
---|
System.String[] | parts | |
Returns
AddChildNamespaces(string)
Declaration
protected AutocompleteItem AddChildNamespaces(string @namespace)
Parameters
Type | Name | Description |
---|
string | namespace | |
Returns
Type | Description |
---|
AutocompleteItem | |
AddChildNamespaces(string, string[])
Declaration
protected AutocompleteItem AddChildNamespaces(string prev, string[] parts)
Parameters
Type | Name | Description |
---|
string | prev | |
System.String[] | parts | |
Returns
Type | Description |
---|
AutocompleteItem | |
SearchOrAddNamespacePart(string, string)
Declaration
protected AutocompleteItem SearchOrAddNamespacePart(string prev, string val)
Parameters
Type | Name | Description |
---|
string | prev | |
string | val | |
Returns
Type | Description |
---|
AutocompleteItem | |
GetNamespacePart(string)
Declaration
protected AutocompleteItem GetNamespacePart(string name)
Parameters
Type | Name | Description |
---|
string | name | |
Returns
Type | Description |
---|
AutocompleteItem | |
MakeNamespacePart(string, string)
Declaration
protected AutocompleteItem MakeNamespacePart(string prev, string val)
Parameters
Type | Name | Description |
---|
string | prev | |
string | val | |
Returns
Type | Description |
---|
AutocompleteItem | |
AddType(Type)
Declaration
public void AddType(Type t)
Parameters
AddTypeWithoutMembers(Type)
Declaration
protected AutocompleteItem AddTypeWithoutMembers(Type t)
Parameters
Returns
Type | Description |
---|
AutocompleteItem | |
AddStaticMembers(Type)
Declaration
protected void AddStaticMembers(Type t)
Parameters
AddInstanceMembers(Type, string)
Declaration
protected void AddInstanceMembers(Type t, string varName)
Parameters
Type | Name | Description |
---|
Type | t | |
string | varName | |
AddMembers(Type, bool, string)
Declaration
protected void AddMembers(Type t, bool isStatic, string variableName)
Parameters
Type | Name | Description |
---|
Type | t | |
bool | isStatic | |
string | variableName | |
AddFields(Type, BindingFlags, Func<string, string>)
Declaration
protected void AddFields(Type t, BindingFlags flag, Func<string, string> getName)
Parameters
Type | Name | Description |
---|
Type | t | |
BindingFlags | flag | |
Func<string, string> | getName | |
AddProperties(Type, BindingFlags, Func<string, string>)
Declaration
protected void AddProperties(Type t, BindingFlags flag, Func<string, string> getName)
Parameters
Type | Name | Description |
---|
Type | t | |
BindingFlags | flag | |
Func<string, string> | getName | |
AddMethodsAndEvents(Type, BindingFlags, Func<string, string>)
Declaration
protected void AddMethodsAndEvents(Type t, BindingFlags flag, Func<string, string> getName)
Parameters
Type | Name | Description |
---|
Type | t | |
BindingFlags | flag | |
Func<string, string> | getName | |
Equals(AutocompleteItem)
Declaration
public bool Equals(AutocompleteItem other)
Parameters
Type | Name | Description |
---|
AutocompleteItem | other | |
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|
object | obj | |
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Fields
_addVariablesLock
Declaration
protected readonly object _addVariablesLock
Returns
Extension Methods