Click or drag to resize
MacroExpression Methods

The MacroExpression type exposes the following members.

Methods
  NameDescription
Public methodStatic memberExtractParameter
Extracts specified parameter of Rule expression.
Protected methodGetElement
Gets the element on specific index of this expression.
Protected methodGetInfixMethodCall
Returns string representation of the method in format MyMethod(First, Second, Third).
Protected methodGetPrefixMethodCall
Returns string representation of the method in format First.MyMethod(Second, Third).
Protected methodGetPriority
Gets the priority of the evaluation for the given method.
Protected methodGetRoot
Gets the root of the expression.
Protected methodHasNumberOfChildren
Returns true if the current expression node has exactly specified number of children.
Protected methodCheckSyntax
Checks the syntactic tree of parsed expression if everything is OK and ready for correct evaluation.
Protected methodInitMethodOnResult
Transfers the current result to a first child (for the parameter of method).
Protected methodInitPropertyOnDataMember
Transfers the current result to a first child.
Protected methodIsFlatOperator
Returns true for operators which can be made flat - without subexpressions (||, &&, +, etc.)
Protected methodIsMethodWithName
Returns true if the type of current expression is MethodCall with specified name.
Protected methodIsSpecialCommand
Returns true for special commands such as break or continue, otherwise false.
Public methodMakeFlatter
Modifies the syntactic tree of the expression to the flat structure. Changes expressions like "(a || b) || c" to "a || b || c", etc.
Protected methodMakeChildOfPrevious
Makes current element child of the previous element if exists.
Protected methodParse(Int32)
Parses the expression.
Protected methodParse(Int32, Boolean)
Parses the expression.
Protected methodParseAll
Parses the whole expression tree.
Public methodStatic memberParseExpression
Returns the root of parsed expression. Uses cache of the parsed expressions to speedup the process.
Protected methodParseParameters
Parses the method or indexer parameters.
Protected methodReplaceChild
Replaces the given child expression with the given one.
Protected methodSyntaxError
Aborts the parsing of the expression due to a syntactic error
Public methodToString
Returns string representation of this MacroExpression.
(Overrides ObjectToString.)
Public methodToString(Boolean)
Returns string representation of this MacroExpression.
Protected methodToStringBlock
Handles block of code: { [some code] }
Protected methodToStringCommand
Handles special commands like return, break, etc.
Protected methodToStringConstant
Handles constants (string literal, numbers, booleans, etc.).
Protected methodToStringControlFlowStatements
Handles structures like [commandname] { [some code] }
Protected methodToStringIndexer
Handles indexer expressions.
Protected methodToStringMethod
Handles classic method calls.
Protected methodToStringProperty
Handles properties.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also