Examples of ITypeDefinition


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

                return ClassDefinition.getAnyTypeClassDefinition();
        }

        String name = type.getName();
       
        ITypeDefinition definition = (ITypeDefinition)getScope().findDefinitionByName(name);

        // Don't have playerglobal.abc/swc with float yet.
        assert definition != null
                : "Error, builtin type '"+ type.getName()+ "' can't be found!";
View Full Code Here

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

     * @return the definition for the specified qualified name or
     * <code>null</code> if definition cannot be resolved.
     */
    private ITypeDefinition getDefinition(String qname)
    {
        ITypeDefinition definition = dependencies.get(qname);
       
        if(definition == null)
        {
            ASProjectScope scope = (ASProjectScope)project.getScope();
            definition = (ITypeDefinition)scope.findDefinitionByName(Multiname.crackDottedQName(project, qname , true), true);
View Full Code Here

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

                String thisAttrib = null;
               
                IDefinition propertyDefinition = ((FlexProject)project).resolveProperty(type, attribName);
                if (propertyDefinition != null) //is it a property?
                {
                    ITypeDefinition propertyType = propertyDefinition.resolveType(project);
                    if (propertyType.isInstanceOf(stringType, project)
                        || propertyType == objectType
                        || propertyType == anyType)
                    {
                        thisAttrib = attribName + " = \"" + attribValue + "\"";
                    }
View Full Code Here

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

    {
        MXMLCompilerDirectiveNodeBase result = null;
        if (IMetaAttributeConstants.ATTRIBUTE_EMBED.equals(functionName))
        {
            FlexProject project = builder.getProject();
            ITypeDefinition stringType = (ITypeDefinition)project.getBuiltinType(BuiltinType.STRING);
            ITypeDefinition classType = (ITypeDefinition)project.getBuiltinType(BuiltinType.CLASS);
            ITypeDefinition anyType = (ITypeDefinition)project.getBuiltinType(BuiltinType.ANY_TYPE);

            // @Embed requires that lvalue accept String, Class.
            if (stringType.isInstanceOf(type, project) || classType.isInstanceOf(type, project) ||
                type == anyType)
            {
View Full Code Here

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

                                          MXMLNodeInfo info)
    {
        NodeBase expressionNode = parseExpressionNodeFromFragments(builder, tag, info, DEFAULT);
        setExpressionNode(expressionNode);

        ITypeDefinition functionType = builder.getBuiltinType(IASLanguageConstants.Function);
        checkExpressionType(builder, functionType);

        super.initializationComplete(builder, tag, info);
    }
View Full Code Here

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

                                          MXMLNodeInfo info)
    {
        NodeBase expressionNode = parseExpressionNodeFromFragments(builder, tag, info, DEFAULT);
        setExpressionNode(expressionNode);

        ITypeDefinition regExpType = builder.getBuiltinType(IASLanguageConstants.RegExp);
        checkExpressionType(builder, regExpType);

        super.initializationComplete(builder, tag, info);
    }
View Full Code Here

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

        return definition.resolveType(project);
    }

    protected String getPropertyTypeName(MXMLTreeBuilder builder)
    {
        ITypeDefinition propertyType = getPropertyType(builder);

        // If there is no property definition, this is a dynamic property with type "*".
        if (propertyType == null)
            return IASLanguageConstants.ANY_TYPE;

        return propertyType.getQualifiedName();
    }
View Full Code Here

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

    private void processFragments(MXMLTreeBuilder builder,
                                  ISourceLocation sourceLocation,
                                  MXMLNodeInfo info)
    {
        ITypeDefinition propertyType = getPropertyType(builder);

        ISourceFragment[] fragments = info.getSourceFragments();

        ISourceLocation location = info.getSourceLocation();
        if (location == null)
View Full Code Here

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

    private MXMLInstanceNode createInstanceNode(MXMLTreeBuilder builder,
                                                ISourceFragment[] fragments,
                                                ISourceLocation location)
    {
        ITypeDefinition anyType = ClassDefinition.getAnyTypeClassDefinition();
        MXMLClassDefinitionNode classNode =
                (MXMLClassDefinitionNode)getClassDefinitionNode();
        return builder.createInstanceNode(this, anyType, fragments, location, FLAGS, classNode);
    }
View Full Code Here

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

    {
        ISourceFragment[] fragments = info.getSourceFragments();
        String text = SourceFragmentsReader.concatLogicalText(fragments);
        if (!builder.getMXMLDialect().isWhitespace(text))
        {
            ITypeDefinition type = builder.getBuiltinType(IASLanguageConstants.ANY_TYPE);
            SourceLocation location = info.getSourceLocation();
            MXMLClassDefinitionNode classNode =
                    (MXMLClassDefinitionNode)getClassDefinitionNode();

            MXMLInstanceNode instanceNode =
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.