| MacroExpression Methods |
The MacroExpression type exposes the following members.
| Name | Description | |
|---|---|---|
| ExtractParameter |
Extracts specified parameter of Rule expression.
| |
| GetElement |
Gets the element on specific index of this expression.
| |
| GetInfixMethodCall |
Returns string representation of the method in format MyMethod(First, Second, Third).
| |
| GetPrefixMethodCall |
Returns string representation of the method in format First.MyMethod(Second, Third).
| |
| GetPriority |
Gets the priority of the evaluation for the given method.
| |
| GetRoot |
Gets the root of the expression.
| |
| HasNumberOfChildren |
Returns true if the current expression node has exactly specified number of children.
| |
| CheckSyntax |
Checks the syntactic tree of parsed expression if everything is OK and ready for correct evaluation.
| |
| InitMethodOnResult |
Transfers the current result to a first child (for the parameter of method).
| |
| InitPropertyOnDataMember |
Transfers the current result to a first child.
| |
| IsFlatOperator |
Returns true for operators which can be made flat - without subexpressions (||, &&, +, etc.)
| |
| IsMethodWithName |
Returns true if the type of current expression is MethodCall with specified name.
| |
| IsSpecialCommand |
Returns true for special commands such as break or continue, otherwise false.
| |
| MakeFlatter |
Modifies the syntactic tree of the expression to the flat structure. Changes expressions like "(a || b) || c" to "a || b || c", etc.
| |
| MakeChildOfPrevious |
Makes current element child of the previous element if exists.
| |
| Parse(Int32) |
Parses the expression.
| |
| Parse(Int32, Boolean) |
Parses the expression.
| |
| ParseAll |
Parses the whole expression tree.
| |
| ParseExpression |
Returns the root of parsed expression. Uses cache of the parsed expressions to speedup the process.
| |
| ParseParameters |
Parses the method or indexer parameters.
| |
| ReplaceChild |
Replaces the given child expression with the given one.
| |
| SyntaxError |
Aborts the parsing of the expression due to a syntactic error
| |
| ToString |
Returns string representation of this MacroExpression.
(Overrides ObjectToString.) | |
| ToString(Boolean) |
Returns string representation of this MacroExpression.
| |
| ToStringBlock |
Handles block of code: { [some code] }
| |
| ToStringCommand |
Handles special commands like return, break, etc.
| |
| ToStringConstant |
Handles constants (string literal, numbers, booleans, etc.).
| |
| ToStringControlFlowStatements |
Handles structures like [commandname] { [some code] }
| |
| ToStringIndexer |
Handles indexer expressions.
| |
| ToStringMethod |
Handles classic method calls.
| |
| ToStringProperty |
Handles properties.
|