MacroExpression MembersKentico 8.1 API Reference
The MacroExpression type exposes the following members.
Constructors

  NameDescription
Protected methodMacroExpression(List MacroElement )
Constructor.
Protected methodMacroExpression(List MacroElement , Int32, Int32)
Constructor.
Back to Top
Methods

  NameDescription
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodStatic memberExtractParameter
Extracts specified parameter of Rule expression.
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Protected methodGetElement
Gets the element on specific index of this expression.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
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.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
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 alement child of the previous element if exists.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
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 (throws SyntacticAnalysisException exception).
Public methodToString 
Returns string representation of this MacroExpression.
(Overrides OnlineObject ToString .)
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
Handels indexer expressions.
Protected methodToStringMethod
Handles classic method calls.
Protected methodToStringProperty
Handles properties.
Back to 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.)
Back to Top
Fields

  NameDescription
Protected fieldmChildren
Children expressions (parameters of method or subexpression).
Protected fieldmParameters
Parameters for the given expression (backward compatibility).
Protected fieldmPriority
Priority of the method.
Protected fieldStatic membermSyntacticTreeTable
Hashtable with cached parsed expressions to speedup the macro evaluation.
Back to Top
Properties

  NameDescription
Protected propertyEndIndex
Ending index of the expression in the source.
Public propertyChildren
Child expressions of the expression.
Public propertyName
Name of the data member or method call.
Protected propertyNext
Next expression to evaluate.
Public propertyParameters
Parameters for the given expression; i.e. |(paramname)value expressions.
Public propertyParent
Parent expression.
Protected propertyPrevious
Previous expression (the expression from which this expression is the next).
Protected propertyPriority
Gets the element priority.
Protected propertySourceElements
Elements from the source expression.
Protected propertyStartIndex
Starting index of the expression in the source.
Public propertyType
Returns the expression type.
Public propertyValue
Value of the value expression (is null for expression types like method, property, etc.).
Back to Top
See Also