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
Syntaxpublic class AutocompleteItem : IEquatable<AutocompleteItem>
Constructors
AutocompleteItem(AutocompleteKind, Action<Exception, string>, ITypeSearcher)
Declarationpublic AutocompleteItem(AutocompleteKind kind, Action<Exception, string> log, ITypeSearcher typeSearcher)
ParametersType | 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 valueType | Description |
---|
AutocompleteKind | |
FullName
name with namespace (like "System.Console")
Declaration[JsonProperty("fullName")]
public virtual string FullName { get; set; }
Property valueName
name without namespace (like "Console")
Declaration[JsonProperty("name")]
public virtual string Name { get; protected set; }
Property valueType
Return type. Can be null (for namespace or class or other)
Declaration[JsonProperty("type")]
public virtual string Type { get; protected set; }
Property valueChilds
Childs. Classes and children namespaces for namespace, members for classes, etc
Declaration[JsonProperty("childs")]
public virtual List<AutocompleteItem> Childs { get; protected set; }
Property valueType | 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 valueType | Description |
---|
List<List<AutocompleteItem>> | |
TypeArguments
Generic type arguments for variables
Declaration[JsonProperty("typeArguments")]
public virtual List<string> TypeArguments { get; protected set; }
Property valueType | Description |
---|
List<string> | |
TypeParamenters
Generic type paramenters for classes, structs etc
Declaration[JsonProperty("typeParameters")]
public virtual List<string> TypeParamenters { get; protected set; }
Property valueType | Description |
---|
List<string> | |
ChildsNamespaceParts
Declarationprotected AutocompleteItem[] ChildsNamespaceParts { get; }
Property valueType | Description |
---|
OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.AutocompleteItem[] | |
Methods
MakeRootWithTypes(Action<Exception, string>, ITypeSearcher)
Declarationpublic static AutocompleteItem MakeRootWithTypes(Action<Exception, string> log, ITypeSearcher typeSearcher)
ParametersType | Name | Description |
---|
Action<Exception, string> | log | |
ITypeSearcher | typeSearcher | |
ReturnsType | Description |
---|
AutocompleteItem | |
GetCount()
DeclarationReturnsToString()
Declarationpublic override string ToString()
ReturnsAddInstance(string, string)
Declarationpublic void AddInstance(string instanceName, string t)
ParametersType | Name | Description |
---|
string | instanceName | |
string | t | |
AddInstance(string, Type, List<string>, bool)
Declarationpublic void AddInstance(string instanceName, Type t, List<string> typeArguments = null, bool loadExtraLevel = false)
ParametersType | Name | Description |
---|
string | instanceName | |
Type | t | |
List<string> | typeArguments | |
bool | loadExtraLevel | |
Get(string, IEnumerable<string>, IEnumerable<AutocompleteVariable>)
Declarationpublic HashSet<AutocompleteItem> Get(string pattern, IEnumerable<string> usings, IEnumerable<AutocompleteVariable> variables)
ParametersType | Name | Description |
---|
string | pattern | |
IEnumerable<string> | usings | |
IEnumerable<AutocompleteVariable> | variables | |
ReturnsType | Description |
---|
HashSet<AutocompleteItem> | |
AddVariablesIfNotExists(IEnumerable<AutocompleteVariable>)
Declarationpublic void AddVariablesIfNotExists(IEnumerable<AutocompleteVariable> variables)
ParametersType | Name | Description |
---|
IEnumerable<AutocompleteVariable> | variables | |
AddRootUsing(IEnumerable<string>)
Declarationprotected IEnumerable<string> AddRootUsing(IEnumerable<string> usings)
ParametersType | Name | Description |
---|
IEnumerable<string> | usings | |
ReturnsType | Description |
---|
IEnumerable<string> | |
Search(IEnumerable<string[]>, IEnumerable<AutocompleteVariable>)
Declarationprotected HashSet<AutocompleteItem> Search(IEnumerable<string[]> patterns, IEnumerable<AutocompleteVariable> allowVariables)
ParametersType | Name | Description |
---|
IEnumerable<string[]> | patterns | |
IEnumerable<AutocompleteVariable> | allowVariables | |
ReturnsType | Description |
---|
HashSet<AutocompleteItem> | |
ProcessLastPattern(string, IEnumerable<AutocompleteVariable>)
Declarationprotected IEnumerable<AutocompleteItem> ProcessLastPattern(string p, IEnumerable<AutocompleteVariable> allowVariables)
ParametersType | Name | Description |
---|
string | p | |
IEnumerable<AutocompleteVariable> | allowVariables | |
ReturnsType | Description |
---|
IEnumerable<AutocompleteItem> | |
MakeFieldsCopy()
Declarationprotected AutocompleteItem MakeFieldsCopy()
ReturnsType | Description |
---|
AutocompleteItem | |
JoinNames(params string[])
Declarationpublic static string JoinNames(params string[] parts)
ParametersType | Name | Description |
---|
System.String[] | parts | |
ReturnsAddChildNamespaces(string)
Declarationprotected AutocompleteItem AddChildNamespaces(string @namespace)
ParametersType | Name | Description |
---|
string | namespace | |
ReturnsType | Description |
---|
AutocompleteItem | |
AddChildNamespaces(string, string[])
Declarationprotected AutocompleteItem AddChildNamespaces(string prev, string[] parts)
ParametersType | Name | Description |
---|
string | prev | |
System.String[] | parts | |
ReturnsType | Description |
---|
AutocompleteItem | |
SearchOrAddNamespacePart(string, string)
Declarationprotected AutocompleteItem SearchOrAddNamespacePart(string prev, string val)
ParametersType | Name | Description |
---|
string | prev | |
string | val | |
ReturnsType | Description |
---|
AutocompleteItem | |
GetNamespacePart(string)
Declarationprotected AutocompleteItem GetNamespacePart(string name)
ParametersType | Name | Description |
---|
string | name | |
ReturnsType | Description |
---|
AutocompleteItem | |
MakeNamespacePart(string, string)
Declarationprotected AutocompleteItem MakeNamespacePart(string prev, string val)
ParametersType | Name | Description |
---|
string | prev | |
string | val | |
ReturnsType | Description |
---|
AutocompleteItem | |
AddType(Type)
Declarationpublic void AddType(Type t)
ParametersAddTypeWithoutMembers(Type)
Declarationprotected AutocompleteItem AddTypeWithoutMembers(Type t)
ParametersReturnsType | Description |
---|
AutocompleteItem | |
AddStaticMembers(Type)
Declarationprotected void AddStaticMembers(Type t)
ParametersAddInstanceMembers(Type, string)
Declarationprotected void AddInstanceMembers(Type t, string varName)
ParametersType | Name | Description |
---|
Type | t | |
string | varName | |
AddMembers(Type, bool, string)
Declarationprotected void AddMembers(Type t, bool isStatic, string variableName)
ParametersType | Name | Description |
---|
Type | t | |
bool | isStatic | |
string | variableName | |
AddFields(Type, BindingFlags, Func<string, string>)
Declarationprotected void AddFields(Type t, BindingFlags flag, Func<string, string> getName)
ParametersType | Name | Description |
---|
Type | t | |
BindingFlags | flag | |
Func<string, string> | getName | |
AddProperties(Type, BindingFlags, Func<string, string>)
Declarationprotected void AddProperties(Type t, BindingFlags flag, Func<string, string> getName)
ParametersType | Name | Description |
---|
Type | t | |
BindingFlags | flag | |
Func<string, string> | getName | |
AddMethodsAndEvents(Type, BindingFlags, Func<string, string>)
Declarationprotected void AddMethodsAndEvents(Type t, BindingFlags flag, Func<string, string> getName)
ParametersType | Name | Description |
---|
Type | t | |
BindingFlags | flag | |
Func<string, string> | getName | |
Equals(AutocompleteItem)
Declarationpublic bool Equals(AutocompleteItem other)
ParametersType | Name | Description |
---|
AutocompleteItem | other | |
ReturnsEquals(object)
Declarationpublic override bool Equals(object obj)
ParametersType | Name | Description |
---|
object | obj | |
ReturnsGetHashCode()
Declarationpublic override int GetHashCode()
ReturnsFields
_addVariablesLock
Declarationprotected readonly object _addVariablesLock
ReturnsExtension Methods