Drag[en]gine Script Module DragonScript  1.23
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)
 

Public Attributes

String pRequiresQuoteCharacters
 
byte pSymbolAnd
 
byte pSymbolCurState
 
byte pSymbolGroupEnd
 
byte pSymbolGroupStart
 
byte pSymbolNegate
 
byte pSymbolOr
 
byte pSymbolQuote
 

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.

Member Data Documentation

◆ pRequiresQuoteCharacters

String Dragengine.TriggerSystem.TSTriggerExpressionParser.pRequiresQuoteCharacters

◆ pSymbolAnd

byte Dragengine.TriggerSystem.TSTriggerExpressionParser.pSymbolAnd

◆ pSymbolCurState

byte Dragengine.TriggerSystem.TSTriggerExpressionParser.pSymbolCurState

◆ pSymbolGroupEnd

byte Dragengine.TriggerSystem.TSTriggerExpressionParser.pSymbolGroupEnd

◆ pSymbolGroupStart

byte Dragengine.TriggerSystem.TSTriggerExpressionParser.pSymbolGroupStart

◆ pSymbolNegate

byte Dragengine.TriggerSystem.TSTriggerExpressionParser.pSymbolNegate

◆ pSymbolOr

byte Dragengine.TriggerSystem.TSTriggerExpressionParser.pSymbolOr

◆ pSymbolQuote

byte Dragengine.TriggerSystem.TSTriggerExpressionParser.pSymbolQuote

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