Examples of IAccessorDefinition


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

            addProblem(new BadSetterReturnTypeProblem(iNode.getReturnTypeNode()));
        }

        if( def instanceof IAccessorDefinition )
        {
            IAccessorDefinition accessorDef = (IAccessorDefinition)def;
            ITypeDefinition thisType = accessorDef.resolveType(project);
            IAccessorDefinition other = null;
            if( (other = accessorDef.resolveCorrespondingAccessor(project)) != null)
            {
                ITypeDefinition otherType = other.resolveType(project);
               
                IDefinition anyType = project.getBuiltinType(BuiltinType.ANY_TYPE);

                if( otherType != thisType
                        // Don't complain if one of the types is '*'
 
View Full Code Here

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

        for (int i = 0; i < n; i++)
        {
            IDefinition d = definitionSet.getDefinition(i);
            if (d instanceof IAccessorDefinition)
            {
                final IAccessorDefinition definition = (IAccessorDefinition)d;
               
                // If this is a static accessor, we want another static accessor.
                // If this is an instance accessor, we want another instance accessor.
                if (definition.isStatic() == isStatic)
                {
                    // If this is a getter, we want a setter, and vice versa.
                    if (this instanceof IGetterDefinition && definition instanceof ISetterDefinition ||
                        this instanceof ISetterDefinition && definition instanceof IGetterDefinition)
                    {
                        INamespaceReference testDefRef = definition.getNamespaceReference();
                        INamespaceDefinition testNamespaceDef = testDefRef.resolveNamespaceReference(project);
                        final boolean testBindable = ((NamespaceDefinition)testNamespaceDef).getAETNamespace().getName().equals(
                                BindableHelper.bindableNamespaceDefinition.getAETNamespace().getName());
                        /* aharui: namespaces shouldn't have to match.  A subclass may only override
                         * one of the protected methods, and it was legal to have a public getter with
View Full Code Here

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

        // If we don't find it, and we're a getter or setter,
        // look on the corresponding setter or getter.
        if (metaTag == null && this instanceof IAccessorDefinition)
        {
            IAccessorDefinition correspondingAccessor =
                    ((IAccessorDefinition)this).resolveCorrespondingAccessor(project);
            if (correspondingAccessor != null)
                metaTag = correspondingAccessor.getMetaTagByName(metadataName);
        }

        return metaTag;
    }
View Full Code Here

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

            return;

        foundAccessors.put(node.getName(), node);

        ICompilerProject project = getWalker().getProject();
        IAccessorDefinition getter = (IAccessorDefinition) node.getDefinition();
        IAccessorDefinition setter = getter
                .resolveCorrespondingAccessor(project);

        emitGetterSetterPair(getter, setter);
    }
View Full Code Here

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

            return;

        foundAccessors.put(node.getName(), node);

        ICompilerProject project = getWalker().getProject();
        IAccessorDefinition setter = (IAccessorDefinition) node.getDefinition();
        IAccessorDefinition getter = setter
                .resolveCorrespondingAccessor(project);

        emitGetterSetterPair(getter, setter);
    }
View Full Code Here

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

            return;

        foundAccessors.put(node.getName(), node);

        ICompilerProject project = getWalker().getProject();
        IAccessorDefinition getter = (IAccessorDefinition) node.getDefinition();
        IAccessorDefinition setter = getter
                .resolveCorrespondingAccessor(project);

        emitGetterSetterPair(getter, setter);
    }
View Full Code Here

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

            return;

        foundAccessors.put(node.getName(), node);

        ICompilerProject project = getWalker().getProject();
        IAccessorDefinition setter = (IAccessorDefinition) node.getDefinition();
        IAccessorDefinition getter = setter
                .resolveCorrespondingAccessor(project);

        emitGetterSetterPair(getter, setter);
    }
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.