Package org.auraframework.system

Examples of org.auraframework.system.SourceWriter


            throw new AuraRuntimeException("Cannot find location to save definition.");
        }
        // Before saving a new definition, clear the old definition in the
        // source.
        source.clearContents();
        SourceWriter writer = ParserFactory.getWriter(source.getFormat());
        writer.write(def, source);
    }
View Full Code Here


        if (descriptor.getDefType() == DefType.COMPONENT) {
            DefDescriptor<ComponentDef> javaDescriptor = DefDescriptorImpl.getAssociateDescriptor(descriptor,
                    ComponentDef.class, "java");
            Source<?> source = sourceFactory.getSource(javaDescriptor);
            if (source != null) {
                SourceWriter writer = ParserFactory.getWriter(source.getFormat());
                writer.write(def, source);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.auraframework.system.SourceWriter

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.