Package macromedia.asc.parser

Examples of macromedia.asc.parser.ClassDefinitionNode


                mainClass.add(current);
                continue;
            }
            else if (current.def instanceof ClassDefinitionNode)
            {
                ClassDefinitionNode cd = (ClassDefinitionNode)current.def;
               
                debug = cd.debug_name;
                int colon = debug.indexOf(':');
                if (colon < 0) //empty package
                {
View Full Code Here


                {
                    processPackage((PackageDefinitionNode)comment.def);
                }
                else if (comment.def instanceof ClassDefinitionNode)
                {
                    ClassDefinitionNode cd = (ClassDefinitionNode)comment.def;
                   
                    processClassAndInterface(cd);
                }
                else if (comment.def instanceof FunctionDefinitionNode)
                {
                    processFunction((FunctionDefinitionNode)comment.def);
                }
                else if (comment.def instanceof VariableDefinitionNode)
                {
                    processField((VariableDefinitionNode)comment.def);
                }
                else
                {
                    //unsupported definition
                    this.key.name = "Unsupported";
                }
               
                if (this.key.type == -1)
                    return;
               
                this.key.isStatic = isStatic;
               
                //extracts @ tags.
                if (comment.getId() != null)
                    processTags(comment.getId());
               
                //only process inheritDoc when needed
                if (!exclude && hasInheritTag)
                {
                    processInheritDoc();
                }
               
                processMetadata(comment);

                // adding null check - for flash classes it can be null here
                if (comment.def instanceof ClassDefinitionNode && abcClass != null)
                {
                    // if this is a class definition and it doesn't have [DefaultProperty], may be its defined on its parent classes.
                    if(!hasDefaultProperty)
                    {
                        ClassDefinitionNode cd = (ClassDefinitionNode)comment.def;
                       
                        List<MetaData> metadataList = abcClass.getMetaData(StandardDefs.MD_DEFAULTPROPERTY, true);
                      
                        // if [DefaultProperty] found on the parent, lets inherit that.
                        if(metadataList.size() != 0)
View Full Code Here

            Node def = node.def;

            if (def instanceof ClassDefinitionNode)
            {
                unit.expressions.add(NameFormatter.toMultiName(node.getValue(0)));
                ClassDefinitionNode classDef = (ClassDefinitionNode) def;

                if (!classDeclaresIdentifier(cx, classDef, typeAnalyzer, SKINHOSTCOMPONENT))
                {
                    NodeFactory nodeFactory = cx.getNodeFactory();
                    MetaDataNode bindingMetaData = AbstractSyntaxTreeUtil.generateMetaData(nodeFactory, BINDABLE);
View Full Code Here

                mainClass.add(current);
                continue;
            }
            else if (current.def instanceof ClassDefinitionNode)
            {
                ClassDefinitionNode cd = (ClassDefinitionNode)current.def;
               
                debug = cd.debug_name;
                int colon = debug.indexOf(':');
                if (colon < 0) //empty package
                {
View Full Code Here

                {
                    processPackage((PackageDefinitionNode)comment.def);
                }
                else if (comment.def instanceof ClassDefinitionNode)
                {
                    ClassDefinitionNode cd = (ClassDefinitionNode)comment.def;
                   
                    processClassAndInterface(cd);
                }
                else if (comment.def instanceof FunctionDefinitionNode)
                {
                    processFunction((FunctionDefinitionNode)comment.def);
                }
                else if (comment.def instanceof VariableDefinitionNode)
                {
                    processField((VariableDefinitionNode)comment.def);
                }
                else
                {
                    //unsupported definition
                    this.key.name = "Unsupported";
                }
               
                if (this.key.type == -1)
                    return;
               
                this.key.isStatic = isStatic;
               
                //extracts @ tags.
                if (comment.getId() != null)
                    processTags(comment.getId());
               
                //only process inheritDoc when needed
                if (!exclude && hasInheritTag)
                {
                    processInheritDoc();
                }
               
                processMetadata(comment);

                // adding null check - for flash classes it can be null here
                if (comment.def instanceof ClassDefinitionNode && abcClass != null)
                {
                    // if this is a class definition and it doesn't have [DefaultProperty], may be its defined on its parent classes.
                    if(!hasDefaultProperty)
                    {
                        ClassDefinitionNode cd = (ClassDefinitionNode)comment.def;
                       
                        List<MetaData> metadataList = abcClass.getMetaData(StandardDefs.MD_DEFAULTPROPERTY, true);
                      
                        // if [DefaultProperty] found on the parent, lets inherit that.
                        if(metadataList.size() != 0)
View Full Code Here

TOP

Related Classes of macromedia.asc.parser.ClassDefinitionNode

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.