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

Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
BuildCompositeCondition ( ITree p_astCPL ) : ICondition
GenerateCpl ( ICondition p_cndCondition ) : string

Private Methods

Méthode Description
GenerateAst ( string p_strCplCode ) : ITree

Parses the given CPL into an AST.

Method Details

BuildCompositeCondition() protected méthode

protected BuildCompositeCondition ( ITree p_astCPL ) : ICondition
p_astCPL ITree
Résultat ICondition

CPLConverter() public méthode

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.
Résultat System

ConditionToCpl() public méthode

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

CplToCondition() public méthode

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.
Résultat ICondition

GenerateCpl() protected méthode

protected GenerateCpl ( ICondition p_cndCondition ) : string
p_cndCondition ICondition
Résultat string