Examples of FunctionDefinitionNode


Examples of macromedia.asc.parser.FunctionDefinitionNode

                    }
                }
            }
            else if (current.def instanceof FunctionDefinitionNode)
            {
                FunctionDefinitionNode fd = (FunctionDefinitionNode)current.def;
                debug = fd.fexpr.debug_name;
                int colon = debug.indexOf(':');
                int slash = debug.indexOf('/');
                if (colon < 0)
                {
View Full Code Here

Examples of macromedia.asc.parser.FunctionDefinitionNode

        FunctionCommonNode propertyGetter = nodeFactory.functionCommon(currentContext, null, functionSignature, rStatementList);
      
        //Create FunctionDefinition that will contain the above expression and set its type to a GETTER
        QualifiedIdentifierNode qFunctionName = AbstractSyntaxTreeUtil.generatePublicQualifiedIdentifier(nodeFactory, SKINPARTS);
        FunctionNameNode functionName = nodeFactory.functionName(Tokens.GET_TOKEN, qFunctionName);
        FunctionDefinitionNode functionDefinition = nodeFactory.functionDefinition(currentContext, AbstractSyntaxTreeUtil.generateProtectedAttribute(nodeFactory), functionName, propertyGetter);
        functionDefinition.attrs = nodeFactory.attributeList(AbstractSyntaxTreeUtil.generateGetterSelector(nodeFactory, OVERRIDE, false), functionDefinition.attrs);
       
       
        //Add skinPart static var to statement list
        result = nodeFactory.statementList(result, skinParts);
View Full Code Here

Examples of macromedia.asc.parser.FunctionDefinitionNode

                    }
                }
            }
            else if (current.def instanceof FunctionDefinitionNode)
            {
                FunctionDefinitionNode fd = (FunctionDefinitionNode)current.def;
                debug = fd.fexpr.debug_name;
                int colon = debug.indexOf(':');
                int slash = debug.indexOf('/');
                if (colon < 0)
                {
View Full Code Here

Examples of macromedia.asc.parser.FunctionDefinitionNode

        DocCommentNode docCommentNode = generateInheritDocComment(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, docCommentNode);
       
        FunctionDefinitionNode addEventListenerFunctionDefinition =
            generateAddEventListenerFunctionDefinition(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, addEventListenerFunctionDefinition);

        docCommentNode = generateInheritDocComment(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, docCommentNode);
       
        FunctionDefinitionNode dispatchEventFunctionDefinition =
            generateDispatchEventFunctionDefinition(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, dispatchEventFunctionDefinition);

        docCommentNode = generateInheritDocComment(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, docCommentNode);
       
        FunctionDefinitionNode hasEventListenerFunctionDefinition =
            generateHasEventListenerFunctionDefinition(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, hasEventListenerFunctionDefinition);

        docCommentNode = generateInheritDocComment(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, docCommentNode);
       
        FunctionDefinitionNode removeEventListenerFunctionDefinition =
            generateRemoveEventListenerFunctionDefinition(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, removeEventListenerFunctionDefinition);

        docCommentNode = generateInheritDocComment(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, docCommentNode);
       
        FunctionDefinitionNode willTriggerFunctionDefinition =
            generateWillTriggerFunctionDefinition(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, willTriggerFunctionDefinition);
    }
View Full Code Here

Examples of macromedia.asc.parser.FunctionDefinitionNode

        NodeFactory nodeFactory = context.getNodeFactory();
        VariableDefinitionNode variableDefinition = generateStaticBindingEventDispatcherVariable(nodeFactory);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, variableDefinition);

        FunctionDefinitionNode addEventListenerFunctionDefinition =
            generateStaticEventDispatcherGetter(context);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, addEventListenerFunctionDefinition);
    }
View Full Code Here

Examples of macromedia.asc.parser.FunctionDefinitionNode

                    String className = bindableInfo.getClassName().intern();
                    StatementListNode statementList = classDefinition.statements;

                    if (!accessorInfo.getIsFunction())
                    {
                        FunctionDefinitionNode getter = generateGetter(context, className, accessorInfo);

                        moveMetaDataToNewDefinition(nodeFactory, accessorInfo.getDefinitionNode(),
                                                    getter, statementList, true);

                        nodeFactory.statementList(statementList, getter);
                    }

                    FunctionDefinitionNode setter = generateSetter(context, className, accessorInfo);

                    if (accessorInfo.getIsFunction())
                    {
                        GetterSetterInfo getterSetterInfo = (GetterSetterInfo) accessorInfo;
                        boolean processedBindable =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.