ConfigExpression
Description
- Derived from
-
ConfigNode abstract
Abstract base class that represent expressions in a configuration script.
The default implementation of IsExpressionTypeConstant returns true
.
Public / Constructors
Parse
2 overloads
Parses a configuration value expression.
- ValidatingException
-
If one or more parsing errors have occurred.
Parses a configuration value expression.
- ValidatingException
-
If one or more parsing errors have occurred.
Public / Methods
CheckQualifiedIdentifier
Can this expression be interpreted as a qualified identifier (e.g. Some.Name.With.Parts
)?
Evaluate
Evaluates this expression as if it is the right side of an assignment.
- ConfigException
-
If an error has occurred while evaluating this expression (e.g. identifier not found).
EvaluateAssignable
Evaluates this expression as if it is the left side of an assignment.
- ConfigException
-
If an error has occurred while evaluating this expression (e.g. identifier not found).
ExpressionTypeLazy
Returns the type of this expression.
The actual config type is determined lazily by querying ExpressionType at a later point in time.
Public / Attributes
Precedence
The operator precedence.
0 -> For each expression 1 -> Conditional expression 2 -> Binary expression: conditional or 3 -> Binary expression: conditional and 4 -> Binary expression: logical or 5 -> Binary expression: logical xor 6 -> Binary expression: logical and 7 -> Binary expression: equality 8 -> Binary expression: comparision 9 -> Binary expression: shift 10 -> Binary expression: additive 11 -> Binary expression: multiplicative 12 -> Binary expression: power, root 13 -> Unary expression 14 -> Primary and terminal expressions
Protected / Methods
DoEvaluate
Evaluates this expression.
- ConfigException
-
If an error has occurred while evaluating this expression (e.g. identifier not found).
DoWriteSourceCode
Produces source code by feeding the given source code writer.
- IOException
-
If an I/O error occurs while emitting source code to writer in.