Opened 14 years ago

Closed 14 years ago

#679 closed enhancement (fixed)

Add GetExpressionIdentifiers to the Expression Engine

Reported by: gregboone Owned by: gregboone
Priority: major Milestone: 3.6.0
Component: Utilities API Version: 3.5.0
Severity: 3 Keywords: Expression Engine
Cc: External ID:

Description

Add a new method 'FdoExpressionEngine::GetExpressionIdentifiers' to the Expression Engine to allow a caller to retrieve the list of identifiers specified in an expression statement.

Change History (3)

comment:1 by gregboone, 14 years ago

Status: newassigned

comment:2 by gregboone, 14 years ago

This will be a static method:

    /// \brief
    /// Returns the list of class identifiers referenced by an expression
    /// 
    /// \param functions
    /// Input a list of functions to be used when processing function type expressions
    ///
    /// \param originalClassDef
    /// Input the class definition applicable to the expression being evaluated
    ///
    /// \param expression
    /// Input the expression to be evaluated
    ///
    /// \param identifiers
    /// Output the IdentifierCollection that will be populated with the list of class 
    /// identifiers referenced by the expression
    ///
    /// \return
    /// Returns nothing
    /// 
    EXPRESSIONENGINE_API static void GetExpressionIdentifiers(FdoFunctionDefinitionCollection *functionDefinitions, 
                                                              FdoClassDefinition* originalClassDef, 
                                                              FdoExpression *expression,
                                                              FdoIdentifierCollection* identifiers);

    /// \brief
    /// Returns the list of class identifiers referenced by an expression
    ///
    /// \param originalClassDef
    /// Input the class definition applicable to the expression being evaluated
    ///
    /// \param expression
    /// Input the expression to be evaluated
    ///
    /// \param identifiers
    /// Output the IdentifierCollection that will be populated with the list of class 
    /// identifiers referenced by the expression
    ///
    /// \return
    /// Returns nothing
    /// 
    EXPRESSIONENGINE_API static void GetExpressionIdentifiers(FdoClassDefinition* originalClassDef, 
                                                              FdoExpression *expression,
                                                              FdoIdentifierCollection* identifiers);

comment:3 by gregboone, 14 years ago

Resolution: fixed
Status: assignedclosed
Version: 3.5.0
Note: See TracTickets for help on using tickets.