C# Class Nexus.Client.ModManagement.Scripting.XmlScript.CPL.CPLConverter

ファイルを表示 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
CPLConverter ( ICplParserFactory p_pftParserFactory ) : System

A simple constructor that initializes the ICplParserFactory to use.

ConditionToCpl ( ICondition p_cndCondition ) : string

Converts the given ICondition into CPL.

CplToCondition ( string p_strCplCode ) : ICondition

Converts the given CPL into a ICondition.

Protected Methods

Method Description
BuildCompositeCondition ( ITree p_astCPL ) : ICondition
GenerateCpl ( ICondition p_cndCondition ) : string

Private Methods

Method Description
GenerateAst ( string p_strCplCode ) : ITree

Parses the given CPL into an AST.

Method Details

BuildCompositeCondition() protected method

protected BuildCompositeCondition ( ITree p_astCPL ) : ICondition
p_astCPL ITree
return ICondition

CPLConverter() public method

A simple constructor that initializes the ICplParserFactory to use.
public CPLConverter ( ICplParserFactory p_pftParserFactory ) : System
p_pftParserFactory ICplParserFactory The to use to create the /// parser to use to build the AST.
return System

ConditionToCpl() public method

Converts the given ICondition into CPL.
public ConditionToCpl ( ICondition p_cndCondition ) : string
p_cndCondition ICondition The condition to convert.
return string

CplToCondition() public method

Converts the given CPL into a ICondition.
Thrown if the given CPL is invalid.
public CplToCondition ( string p_strCplCode ) : ICondition
p_strCplCode string The CPL to convert.
return ICondition

GenerateCpl() protected method

protected GenerateCpl ( ICondition p_cndCondition ) : string
p_cndCondition ICondition
return string