Drag[en]gine Script Module DragonScript  1.21
Dragengine.TriggerSystem.TSTriggerExpressionParser Class Reference

Create TSTriggerExpression object from string. More...

Inheritance diagram for Dragengine.TriggerSystem.TSTriggerExpressionParser:

Classes

class  ParserState
 

Public Member Functions

String expressionComponentToString (TSTriggerExpressionComponent component, bool grouping)
 
String expressionToString (TSTriggerExpression expression)
 
TSTriggerExpressionParser new ()
 
TSTriggerExpressionComponent parseExpressionComponent (ParserState state, bool requireEnd, bool initCurState, bool initNegate)
 
String parseTargetName (ParserState state, bool quoted)
 
String quoteTriggerName (String name)
 
TSTriggerExpression stringToExpression (String string)
 

Detailed Description

Create TSTriggerExpression object from string.

Also allows to turn a TSTriggerExpression object into a string representation. This is done in a separate class as the representation could potentially be different in different implementations.

Member Function Documentation

◆ expressionComponentToString()

String Dragengine.TriggerSystem.TSTriggerExpressionParser.expressionComponentToString ( TSTriggerExpressionComponent  component,
bool  grouping 
)

Create string from a trigger expression component.

◆ expressionToString()

String Dragengine.TriggerSystem.TSTriggerExpressionParser.expressionToString ( TSTriggerExpression  expression)

Create string from a trigger expression.

◆ new()

TSTriggerExpressionParser Dragengine.TriggerSystem.TSTriggerExpressionParser.new ( )

Creates a new trigger expression parser.

◆ parseExpressionComponent()

TSTriggerExpressionComponent Dragengine.TriggerSystem.TSTriggerExpressionParser.parseExpressionComponent ( ParserState  state,
bool  requireEnd,
bool  initCurState,
bool  initNegate 
)

Parse an expression component.

◆ parseTargetName()

String Dragengine.TriggerSystem.TSTriggerExpressionParser.parseTargetName ( ParserState  state,
bool  quoted 
)

Parse trigger name.

◆ quoteTriggerName()

String Dragengine.TriggerSystem.TSTriggerExpressionParser.quoteTriggerName ( String  name)

Retrieves a properly quoted version of a trigger name.

◆ stringToExpression()

TSTriggerExpression Dragengine.TriggerSystem.TSTriggerExpressionParser.stringToExpression ( String  string)

Create trigger expression from a string.


The documentation for this class was generated from the following file: