Examples of StandardDefs


Examples of flex2.compiler.mxml.lang.StandardDefs

            ThreadLocalToolkit.addResolvedPath(path, asset.assetSource);
      }

        try
        {
            StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();

            String templateName = standardDefs.getEmbedClassTemplate();
            Template template = VelocityManager.getTemplate(CODEGEN_TEMPLATE_PATH + templateName);
            if (template == null)
            {
                throw new TemplateException( templateName );
            }
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

        // of framework.swc, but this prevents customers from using
        // skin assets from framework.swc in their runtime CSS
        // modules.
      if (!configuration.archiveClassesAndAssets())
      {
          StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();
         
            configuration.addExtern(standardDefs.CLASS_CSSSTYLEDECLARATION);
            configuration.addExtern(standardDefs.CLASS_DOWNLOADPROGRESSBAR);
            configuration.addExtern(standardDefs.CLASS_FLEXEVENT);
            configuration.addExtern(standardDefs.CLASS_FLEXSPRITE);
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

    }

    private VirtualFile generateSourceCodeFile(CompilationUnit compilationUnit, StyleModule styleModule)
    {
        Template template;
        StandardDefs standardDefs = compilationUnit.getStandardDefs();
        String templateName = TEMPLATE_PATH + (!configuration.archiveClassesAndAssets() ? standardDefs.getStyleModuleTemplate() : standardDefs.getStyleLibraryTemplate());

        try
        {
            template = VelocityManager.getTemplate(templateName);
        }
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

    }

    private String generateSource(String fullClassName, String baseClassName, ClassInfo classInfo)
        throws TranscoderException
    {
        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();

        boolean needsIBorder = !classInfo.implementsInterface(standardDefs.getCorePackage(), "IBorder");
        boolean needsBorderMetrics = !classInfo.definesGetter("borderMetrics", true);
        boolean needsIFlexDisplayObject = !classInfo.implementsInterface(standardDefs.getCorePackage(),
                                                                         "IFlexDisplayObject");
        boolean needsMeasuredHeight = !classInfo.definesGetter("measuredHeight", true);
        boolean needsMeasuredWidth = !classInfo.definesGetter("measuredWidth", true);
        boolean needsMove = !classInfo.definesFunction("move", true);
        boolean needsSetActualSize = !classInfo.definesFunction("setActualSize", true);
        boolean flexMovieClipOrSprite = (classInfo.extendsClass(NameFormatter.toColon(standardDefs.getCorePackage(),
                                                                                      "FlexMovieClip")) ||
                                         classInfo.extendsClass(NameFormatter.toColon(standardDefs.getCorePackage(),
                                                                                      "FlexSprite")));

        return generateSource(fullClassName, baseClassName, needsIBorder, needsBorderMetrics,
                              needsIFlexDisplayObject, needsMeasuredHeight, needsMeasuredWidth,
                              needsMove, needsSetActualSize, flexMovieClipOrSprite);
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

                                        boolean needsSetActualSize, boolean flexMovieClipOrSprite)
        throws TranscoderException
    {
        String result = null;

        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();

        try
        {
            String templateName = CODEGEN_TEMPLATE_PATH + standardDefs.getSkinClassTemplate();
            Template template = VelocityManager.getTemplate(templateName);

            if (template == null)
            {
                throw new TemplateException( templateName );
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

        }

        CompilerConfiguration compilerConfiguration = configuration.getCompilerConfiguration();
        int compatibilityVersion = compilerConfiguration.getCompatibilityVersion();

        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();
        TypeAnalyzer typeAnalyzer = symbolTable.getTypeAnalyzer();
        assert(typeAnalyzer != null);
       
        for (int i = 0, length = units.size(); i < length; i++)
        {
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

    private String codegenFlexInit(String flexInitClassName, Set<String> accessibilityList,
                                   Map<String, String> remoteClassAliases, Map<String, String> effectTriggers,
                                   Set<String> inheritingStyles, Configuration configuration)
    {
        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();
        CompilerConfiguration compilerConfig = configuration.getCompilerConfiguration();
        ServicesDependencies servicesDependencies = compilerConfig.getServicesDependencies();

        StringBuilder sb = new StringBuilder();
        sb.append("package {\n");
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

            {
                sb.append(", ");
            }
        }

        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();

        sb.append("];\n\n");
        sb.append("       for (var i:int = 0; i < styleNames.length; i++)\n");
        sb.append("       {\n");
        sb.append("          styleManager.registerInheritingStyle(styleNames[i]);\n");
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

                                        CompilerSwcContext swcContext,
                                        boolean isLibraryCompile)
    {
        String lineSep = System.getProperty("line.separator");
        boolean hasFonts = (fonts == null ? false : fonts.size() > 0);
        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();

        String[] codePieces = new String[]
        {
            "package", lineSep,
            "{", lineSep, lineSep,
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

            sourcePath.displayWarnings();
        }

        ThreadLocalToolkit.setCompatibilityVersion(configuration.getCompatibilityVersion());

        StandardDefs standardDefs = StandardDefs.getStandardDefs(configuration.getFramework());
        ThreadLocalToolkit.setStandardDefs(standardDefs);

        LocalizationManager l10n = ThreadLocalToolkit.getLocalizationManager();

        if (configuration.getBenchmarkCompilerDetails() > 0 &&
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.