Package macromedia.asc.parser

Examples of macromedia.asc.parser.DocCommentNode


        String otherPackage = null;
       
        //sorting all the comments and pulling out other classes that are out of the package
        for (int i = 0; i < comments.size(); i++)
        {
            DocCommentNode current = (DocCommentNode)comments.get(i);
            String pkg = ""//package name
            String cls = ""//class name
            String debug;
            if (current.def instanceof PackageDefinitionNode)
            {
View Full Code Here


        }
       
        int temp = comments.size();
        for (int i = 0; i < temp; i++)
        {
            DocCommentNode tempNode = comments.get(i);
            DocComment tempComment = table.addComment(tempNode);
           
            //keep a reference to the first packageEntry encountered for each package.
            if (packageTable.get(name.getNamespace()) == null && tempComment != null)
                if (tempComment.getType() == DocComment.PACKAGE)
View Full Code Here

                                    || mdi.getId().equals(StandardDefs.MD_DISCOURAGEDFORPROFILE))
                            {
                                if (x+1 < numItems// if it has a comment, it will be the sequentially next DocCommentNode
                                {
                                    Node next = comment.def.metaData.items.at(x+1);
                                    DocCommentNode metaDataComment = (next instanceof DocCommentNode) ? (DocCommentNode)next : null;

                                    if (metaDataComment != null)
                                    {
                                        createMetaDataComment(fullname, mdi, false, metaDataComment);
                                        x++;
View Full Code Here

                                    Node temp = node.def.metaData.items.get(ix + 1);

                                    // if the last one is a DocCommentnode, we can run it through the evaluator.
                                    if (temp instanceof DocCommentNode)
                                    {
                                        DocCommentNode tempDoc = ((DocCommentNode)temp);

                                        // we can not access the metadata node directly because it doesn't
                                        // have public access and it is buried deep into the tree.  this is
                                        // required so that we can access the comment easily.
                                        macromedia.asc.parser.MetaDataEvaluator evaluator =
                                            new macromedia.asc.parser.MetaDataEvaluator();
                                        evaluator.evaluate(cx, tempDoc);

                                        // if evaluator has not null comment.
                                        if (evaluator.doccomments != null && evaluator.doccomments.size() != 0)
                                        {
                                            String comment = evaluator.doccomments.get(0).getId();

                                            // if comment is present then create a DocCommentNode for the hostComponent variable
                                            if (comment != null)
                                            {
                                                DocCommentNode hostComponentComment =
                                                    AbstractSyntaxTreeUtil.generateDocComment(nodeFactory, comment.intern());

                                                if (hostComponentComment != null)
                                                {
                                                    statementList = nodeFactory.statementList(statementList, hostComponentComment);
View Full Code Here

        String otherPackage = null;
       
        //sorting all the comments and pulling out other classes that are out of the package
        for (int i = 0; i < comments.size(); i++)
        {
            DocCommentNode current = (DocCommentNode)comments.get(i);
            String pkg = ""//package name
            String cls = ""//class name
            String debug;
            if (current.def instanceof PackageDefinitionNode)
            {
View Full Code Here

        }
       
        int temp = comments.size();
        for (int i = 0; i < temp; i++)
        {
            DocCommentNode tempNode = comments.get(i);
            DocComment tempComment = table.addComment(tempNode);
           
            //keep a reference to the first packageEntry encountered for each package.
            if (packageTable.get(name.getNamespace()) == null && tempComment != null)
                if (tempComment.getType() == DocComment.PACKAGE)
View Full Code Here

        VariableDefinitionNode variableDefinition = generateBindingEventDispatcherVariable(nodeFactory);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, variableDefinition);

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

                                    ||  mdi.getId().equals(StandardDefs.MD_EXPERIMENTAL))
                            {
                                if (x+1 < numItems// if it has a comment, it will be the sequentially next DocCommentNode
                                {
                                    Node next = comment.def.metaData.items.at(x+1);
                                    DocCommentNode metaDataComment = (next instanceof DocCommentNode) ? (DocCommentNode)next : null;

                                    if (metaDataComment != null)
                                    {
                                        createMetaDataComment(fullname, mdi, false, metaDataComment);
                                        x++;
View Full Code Here

TOP

Related Classes of macromedia.asc.parser.DocCommentNode

Copyright © 2018 www.massapicom. 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.