Package org.apache.flex.compiler.definitions

Examples of org.apache.flex.compiler.definitions.IClassDefinition


            IDefinition classType = project.getBuiltinType(IASLanguageConstants.BuiltinType.CLASS);
            Iterator<IClassDefinition> iter = ((ClassDefinitionBase)classType).classIterator(project, true);
            while (iter.hasNext())
            {
                IClassDefinition cls = iter.next();
                if (cls == type)
                    return true;
            }
            return false;
        }
View Full Code Here


                }
            }
            else
            {
                // Not static, so resolve the super class and get it's scope
                IClassDefinition superClass = ((IClassDefinition) owningType).resolveBaseClass(project);
                if( superClass instanceof TypeDefinitionBase)
                {
                    IASScope superScope = superClass.getContainedScope();
                    if( superScope instanceof TypeScope )
                    {
                        switch (kind)
                        {
                            case INSTANCE_AND_STATIC:
View Full Code Here

            }
            if (vectorTypeName == null)
                vectorTypeName = IASLanguageConstants.Vector_object;
           
            IClassDefinition vectorImplClass = AppliedVectorDefinition.lookupVectorImplClass(project, vectorTypeName);
            AppliedVectorDefinition result = new AppliedVectorDefinition(project, vectorImplClass, elementType);
            vectorElementTypeToVectorClassMap.put(elementType, result);

            if (vectorTypeName == IASLanguageConstants.Vector_object)
                result.adjustVectorMethods(this.project);
View Full Code Here

        {
            ITypeDefinition iEventDispatcher = resolveType(IASLanguageConstants.IEventDispatcher, project, null);
            if (iEventDispatcher != null)
            {

                IClassDefinition baseClass = resolveBaseClass(project);
                if (baseClass != null)
                {
                    if (baseClass.isInstanceOf(iEventDispatcher, project))
                    {
                        // The base class already implements IEventDispatcher, so we don't need to implement
                        // it here
                        return false;
                    }
View Full Code Here

            // is derived from a specified class ('type').
            // Iterate the superclass chain looking for 'type'.
            Iterator<IClassDefinition> iter = classIterator(project, false);
            while (iter.hasNext())
            {
                IClassDefinition cls = iter.next();
                if (cls == type)
                    return true;
            }
            return false;
        }
View Full Code Here

        List<IMetaTag> list = new ArrayList<IMetaTag>();

        Iterator<IClassDefinition> classIterator = classIterator(project, true);
        while (classIterator.hasNext())
        {
            IClassDefinition c = classIterator.next();
            for (IMetaTag metaTag : c.getMetaTagsByName(name))
            {
                list.add(metaTag);
            }
        }
View Full Code Here

        public IClassDefinition next()
        {
            if (!hasNext())
                throw new NoSuchElementException();

            IClassDefinition next = nextClass;
            nextClass = nextClass.resolveBaseClass(project);

            // The RecursionGuard will detect a loop in the superclass chain.
            if (guard.isLoop(nextClass))
            {
View Full Code Here

    {
        if (eventNameNode == null)
            return null;
       
        IDefinitionNode classNode = getDecoratedDefinitionNode();
        IClassDefinition classDefinition = (IClassDefinition)classNode.getDefinition();
       
        return classDefinition.getEventDefinition(project.getWorkspace(), getEventName());
    }
View Full Code Here

        if (!(project instanceof FlexProject))
            return null;

        FlexProject flexProject = (FlexProject)project;
        IClassDefinition decoratedClass = (IClassDefinition)decoratedDefinition;
        return flexProject.resolveEvent(decoratedClass, event);
    }
View Full Code Here

            // This accessor is in a class, so look for a corresponding one
            // in this class and then in all superclasses.
            Iterator<IClassDefinition> iter = ((IClassDefinition)parent).classIterator(project, true);
            while (iter.hasNext())
            {
                IClassDefinition cls = iter.next();

                AccessorDefinition correspondingAccessor =
                        findCorrespondingAccessor(cls, project);

                if (correspondingAccessor != null)
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.definitions.IClassDefinition

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.