Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

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
TypeNameDescription
AutocompleteKindkind
Action<Exception, string>log
ITypeSearchertypeSearcher

Properties

Kind

namespace or class or ...

Declaration
[JsonProperty("kind")]
public virtual AutocompleteKind Kind { get; set; }
Property value
TypeDescription
AutocompleteKind

FullName

name with namespace (like "System.Console")

Declaration
[JsonProperty("fullName")]
public virtual string FullName { get; set; }
Property value
TypeDescription
string

Name

name without namespace (like "Console")

Declaration
[JsonProperty("name")]
public virtual string Name { get; protected set; }
Property value
TypeDescription
string

Type

Return type. Can be null (for namespace or class or other)

Declaration
[JsonProperty("type")]
public virtual string Type { get; protected set; }
Property value
TypeDescription
string

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
TypeDescription
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
TypeDescription
List<List<AutocompleteItem>>

TypeArguments

Generic type arguments for variables

Declaration
[JsonProperty("typeArguments")]
public virtual List<string> TypeArguments { get; protected set; }
Property value
TypeDescription
List<string>

TypeParamenters

Generic type paramenters for classes, structs etc

Declaration
[JsonProperty("typeParameters")]
public virtual List<string> TypeParamenters { get; protected set; }
Property value
TypeDescription
List<string>

ChildsNamespaceParts

Declaration
protected AutocompleteItem[] ChildsNamespaceParts { get; }
Property value
TypeDescription
OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.AutocompleteItem[]

Methods

MakeRootWithTypes(Action<Exception, string>, ITypeSearcher)

Declaration
public static AutocompleteItem MakeRootWithTypes(Action<Exception, string> log, ITypeSearcher typeSearcher)
Parameters
TypeNameDescription
Action<Exception, string>log
ITypeSearchertypeSearcher
Returns
TypeDescription
AutocompleteItem

GetCount()

Declaration
public int GetCount()
Returns
TypeDescription
int

ToString()

Declaration
public override string ToString()
Returns
TypeDescription
string

AddInstance(string, string)

Declaration
public void AddInstance(string instanceName, string t)
Parameters
TypeNameDescription
stringinstanceName
stringt

AddInstance(string, Type, List<string>, bool)

Declaration
public void AddInstance(string instanceName, Type t, List<string> typeArguments = null, bool loadExtraLevel = false)
Parameters
TypeNameDescription
stringinstanceName
Typet
List<string>typeArguments
boolloadExtraLevel

Get(string, IEnumerable<string>, IEnumerable<AutocompleteVariable>)

Declaration
public HashSet<AutocompleteItem> Get(string pattern, IEnumerable<string> usings, IEnumerable<AutocompleteVariable> variables)
Parameters
TypeNameDescription
stringpattern
IEnumerable<string>usings
IEnumerable<AutocompleteVariable>variables
Returns
TypeDescription
HashSet<AutocompleteItem>

AddVariablesIfNotExists(IEnumerable<AutocompleteVariable>)

Declaration
public void AddVariablesIfNotExists(IEnumerable<AutocompleteVariable> variables)
Parameters
TypeNameDescription
IEnumerable<AutocompleteVariable>variables

AddRootUsing(IEnumerable<string>)

Declaration
protected IEnumerable<string> AddRootUsing(IEnumerable<string> usings)
Parameters
TypeNameDescription
IEnumerable<string>usings
Returns
TypeDescription
IEnumerable<string>

Search(IEnumerable<string[]>, IEnumerable<AutocompleteVariable>)

Declaration
protected HashSet<AutocompleteItem> Search(IEnumerable<string[]> patterns, IEnumerable<AutocompleteVariable> allowVariables)
Parameters
TypeNameDescription
IEnumerable<string[]>patterns
IEnumerable<AutocompleteVariable>allowVariables
Returns
TypeDescription
HashSet<AutocompleteItem>

ProcessLastPattern(string, IEnumerable<AutocompleteVariable>)

Declaration
protected IEnumerable<AutocompleteItem> ProcessLastPattern(string p, IEnumerable<AutocompleteVariable> allowVariables)
Parameters
TypeNameDescription
stringp
IEnumerable<AutocompleteVariable>allowVariables
Returns
TypeDescription
IEnumerable<AutocompleteItem>

MakeFieldsCopy()

Declaration
protected AutocompleteItem MakeFieldsCopy()
Returns
TypeDescription
AutocompleteItem

JoinNames(params string[])

Declaration
public static string JoinNames(params string[] parts)
Parameters
TypeNameDescription
System.String[]parts
Returns
TypeDescription
string

AddChildNamespaces(string)

Declaration
protected AutocompleteItem AddChildNamespaces(string @namespace)
Parameters
TypeNameDescription
stringnamespace
Returns
TypeDescription
AutocompleteItem

AddChildNamespaces(string, string[])

Declaration
protected AutocompleteItem AddChildNamespaces(string prev, string[] parts)
Parameters
TypeNameDescription
stringprev
System.String[]parts
Returns
TypeDescription
AutocompleteItem

SearchOrAddNamespacePart(string, string)

Declaration
protected AutocompleteItem SearchOrAddNamespacePart(string prev, string val)
Parameters
TypeNameDescription
stringprev
stringval
Returns
TypeDescription
AutocompleteItem

GetNamespacePart(string)

Declaration
protected AutocompleteItem GetNamespacePart(string name)
Parameters
TypeNameDescription
stringname
Returns
TypeDescription
AutocompleteItem

MakeNamespacePart(string, string)

Declaration
protected AutocompleteItem MakeNamespacePart(string prev, string val)
Parameters
TypeNameDescription
stringprev
stringval
Returns
TypeDescription
AutocompleteItem

AddType(Type)

Declaration
public void AddType(Type t)
Parameters
TypeNameDescription
Typet

AddTypeWithoutMembers(Type)

Declaration
protected AutocompleteItem AddTypeWithoutMembers(Type t)
Parameters
TypeNameDescription
Typet
Returns
TypeDescription
AutocompleteItem

AddStaticMembers(Type)

Declaration
protected void AddStaticMembers(Type t)
Parameters
TypeNameDescription
Typet

AddInstanceMembers(Type, string)

Declaration
protected void AddInstanceMembers(Type t, string varName)
Parameters
TypeNameDescription
Typet
stringvarName

AddMembers(Type, bool, string)

Declaration
protected void AddMembers(Type t, bool isStatic, string variableName)
Parameters
TypeNameDescription
Typet
boolisStatic
stringvariableName

AddFields(Type, BindingFlags, Func<string, string>)

Declaration
protected void AddFields(Type t, BindingFlags flag, Func<string, string> getName)
Parameters
TypeNameDescription
Typet
BindingFlagsflag
Func<string, string>getName

AddProperties(Type, BindingFlags, Func<string, string>)

Declaration
protected void AddProperties(Type t, BindingFlags flag, Func<string, string> getName)
Parameters
TypeNameDescription
Typet
BindingFlagsflag
Func<string, string>getName

AddMethodsAndEvents(Type, BindingFlags, Func<string, string>)

Declaration
protected void AddMethodsAndEvents(Type t, BindingFlags flag, Func<string, string> getName)
Parameters
TypeNameDescription
Typet
BindingFlagsflag
Func<string, string>getName

Equals(AutocompleteItem)

Declaration
public bool Equals(AutocompleteItem other)
Parameters
TypeNameDescription
AutocompleteItemother
Returns
TypeDescription
bool

Equals(object)

Declaration
public override bool Equals(object obj)
Parameters
TypeNameDescription
objectobj
Returns
TypeDescription
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
TypeDescription
int

Fields

_addVariablesLock

Declaration
protected readonly object _addVariablesLock
Returns
TypeDescription
object

Extension Methods