Package org.apache.flex.compiler.definitions.references

Examples of org.apache.flex.compiler.definitions.references.IReference


        fillInNamespaceAndModifiers(definition);
        fillInMetadata(definition);

        // Set the variable's type. If a type annotation doesn't appear in the source,
        // the variable type in the definition will be null.
        IReference typeRef = hasExplicitType() ? typeNode.computeTypeReference() : null;
        definition.setTypeReference(typeRef);
    }
View Full Code Here


    {
        GetterDefinition getter = new SyntheticBindableGetterDefinition(definitionName);
        fillinDefinition(getter);
       
        // set up the return type for the getter
        IReference typeRef = getter.getTypeReference();
        getter.setReturnTypeReference(typeRef);

        return getter;
    }
View Full Code Here

            ICompilerProject project)
    {
        Object value = field.resolveInitialValue(project);
        if (value != null)
            return value.toString();
        IReference reference = field.getTypeReference();
        if (reference == null)
            return "undefined";
        if (reference.getName().equals("int")
                || reference.getName().equals("uint")
                || reference.getName().equals("Number"))
            return "0";
        return "null";
    }
View Full Code Here

        // write constructor
        emitConstructor((IFunctionNode) definition.getConstructor().getNode());
        writeNewline();

        // base class
        IReference baseClassReference = definition.getBaseClassReference();
        boolean hasSuper = baseClassReference != null
                && !baseClassReference.getName().equals("Object");
        if (hasSuper)
        {
            String baseName = baseClassReference.getName();
            write("var Super = (" + baseName + "._ || " + baseName
                    + "._$get());");
            writeNewline();
            write("var super$ = Super.prototype;");
            writeNewline();
View Full Code Here

        // write constructor
        emitConstructor((IFunctionNode) definition.getConstructor().getNode());
        writeNewline();

        // base class
        IReference baseClassReference = definition.getBaseClassReference();
        boolean hasSuper = baseClassReference != null
                && !baseClassReference.getName().equals("Object");
        if (hasSuper)
        {
            String baseName = baseClassReference.getName();
            write("var Super = (" + baseName + "._ || " + baseName
                    + "._$get());");
            writeNewline();
            write("var super$ = Super.prototype;");
            writeNewline();
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.definitions.references.IReference

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.