跳到主要内容
版本:3.0.x

Class DefaultSearchSystem

默认的表格搜索系统,负责解析搜索表达式并执行数据过滤

Assembly: YooAsset.Editor.dll
View Source
Declaration
public static class DefaultSearchSystem

Methods

ParseCommand(string)

解析搜索表达式为命令列表

View Source
Declaration
public static IList<ISearchCommand> ParseCommand(string commandContent)
Returns

System.Collections.Generic.IList<YooAsset.Editor.ISearchCommand>: 解析后的搜索命令集合

Parameters
TypeNameDescription
System.StringcommandContent搜索表达式字符串,支持关键字、比较运算符等语法

Search(IList<ITableData>, string, ESearchLogic)

根据搜索表达式过滤数据源的可见性

View Source
Declaration
public static void Search(IList<ITableData> sourceDatas, string command, ESearchLogic logic)
Parameters
TypeNameDescription
System.Collections.Generic.IList<YooAsset.Editor.ITableData>sourceDatas待过滤的表格数据集合
System.Stringcommand搜索表达式字符串
YooAsset.Editor.ESearchLogiclogic同类搜索命令的组内组合逻辑