1986 lines
98 KiB
HTML
1986 lines
98 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>
|
|
Compiler (Compiler)
|
|
</TITLE>
|
|
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../dev_javadoc.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Compiler (Compiler)";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<HR>
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilationLevel.html" title="enum in com.google.javascript.jscomp"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../../com/google/javascript/jscomp/Compiler.CodeBuilder.html" title="class in com.google.javascript.jscomp"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../index.html?com/google/javascript/jscomp/Compiler.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="Compiler.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
com.google.javascript.jscomp</FONT>
|
|
<BR>
|
|
Class Compiler</H2>
|
|
<PRE>
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
|
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">com.google.javascript.jscomp.AbstractCompiler</A>
|
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.google.javascript.jscomp.Compiler</B>
|
|
</PRE>
|
|
<DL>
|
|
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/javascript/jscomp/SourceExcerptProvider.html" title="interface in com.google.javascript.jscomp">SourceExcerptProvider</A></DD>
|
|
</DL>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public class <B>Compiler</B><DT>extends <A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
Compiler (and the other classes in this package) does the following:
|
|
<ul>
|
|
<li>parses JS code
|
|
<li>checks for undefined variables
|
|
<li>performs optimizations such as constant folding and constants inlining
|
|
<li>renames variables (to short names)
|
|
<li>outputs compact javascript code
|
|
</ul>
|
|
|
|
External variables are declared in 'externs' files. For instance, the file
|
|
may include definitions for global javascript/browser objects such as
|
|
window, document.
|
|
<P>
|
|
|
|
<P>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
|
|
<A NAME="nested_class_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Nested Class Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.CodeBuilder.html" title="class in com.google.javascript.jscomp">Compiler.CodeBuilder</A></B></CODE>
|
|
|
|
<BR>
|
|
Stores a buffer of text to which more can be appended.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.IntermediateState.html" title="class in com.google.javascript.jscomp">Compiler.IntermediateState</A></B></CODE>
|
|
|
|
<BR>
|
|
Stores the internal compiler state just before optimization is performed.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="nested_classes_inherited_from_class_com.google.javascript.jscomp.SourceExcerptProvider"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Nested classes/interfaces inherited from interface com.google.javascript.jscomp.<A HREF="../../../../com/google/javascript/jscomp/SourceExcerptProvider.html" title="interface in com.google.javascript.jscomp">SourceExcerptProvider</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../../com/google/javascript/jscomp/SourceExcerptProvider.ExcerptFormatter.html" title="interface in com.google.javascript.jscomp">SourceExcerptProvider.ExcerptFormatter</A>, <A HREF="../../../../com/google/javascript/jscomp/SourceExcerptProvider.SourceExcerpt.html" title="enum in com.google.javascript.jscomp">SourceExcerptProvider.SourceExcerpt</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../../com/google/javascript/jscomp/DiagnosticType.html" title="class in com.google.javascript.jscomp">DiagnosticType</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#MOTION_ITERATIONS_ERROR">MOTION_ITERATIONS_ERROR</A></B></CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../../com/google/javascript/jscomp/DiagnosticType.html" title="class in com.google.javascript.jscomp">DiagnosticType</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#OPTIMIZE_LOOP_ERROR">OPTIMIZE_LOOP_ERROR</A></B></CODE>
|
|
|
|
<BR>
|
|
Error strings used for reporting JSErrors</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../../com/google/javascript/jscomp/CodeChangeHandler.RecentChange.html" title="class in com.google.javascript.jscomp">CodeChangeHandler.RecentChange</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#recentChange">recentChange</A></B></CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/PerformanceTracker.html" title="class in com.google.javascript.jscomp">PerformanceTracker</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#tracker">tracker</A></B></CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#Compiler()">Compiler</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Creates a Compiler that reports errors and warnings to its logger.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#Compiler(com.google.javascript.jscomp.ErrorManager)">Compiler</A></B>(<A HREF="../../../../com/google/javascript/jscomp/ErrorManager.html" title="interface in com.google.javascript.jscomp">ErrorManager</A> errorManager)</CODE>
|
|
|
|
<BR>
|
|
Creates a Compiler that uses a custom error manager.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#Compiler(java.io.PrintStream)">Compiler</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/PrintStream.html?is-external=true" title="class or interface in java.io">PrintStream</A> stream)</CODE>
|
|
|
|
<BR>
|
|
Creates n Compiler that reports errors and warnings to an output
|
|
stream.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#acceptConstKeyword()">acceptConstKeyword</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#acceptEcmaScript5()">acceptEcmaScript5</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#addNewScript(com.google.javascript.jscomp.JsAst)">addNewScript</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JsAst.html" title="class in com.google.javascript.jscomp">JsAst</A> ast)</CODE>
|
|
|
|
<BR>
|
|
Adds a new Script AST to the compile state.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/SymbolTable.html" title="class in com.google.javascript.jscomp">SymbolTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#buildKnownSymbolTable()">buildKnownSymbolTable</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#check()">check</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#compile(com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.JSModule[], com.google.javascript.jscomp.CompilerOptions)">compile</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] externs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>[] modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
Compiles a list of modules.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#compile(com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.CompilerOptions)">compile</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] externs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] inputs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
Compiles a list of inputs.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#compile(com.google.javascript.jscomp.JSSourceFile, com.google.javascript.jscomp.JSModule[], com.google.javascript.jscomp.CompilerOptions)">compile</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A> extern,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>[] modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><T1 extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>,T2 extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>>
|
|
<BR>
|
|
<A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A></CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#compile(java.util.List, java.util.List, com.google.javascript.jscomp.CompilerOptions)">compile</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T1> externs,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T2> inputs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
Compiles a list of inputs.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#compile(com.google.javascript.jscomp.SourceFile, com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.CompilerOptions)">compile</A></B>(<A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A> extern,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] input,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#compile(com.google.javascript.jscomp.SourceFile, com.google.javascript.jscomp.SourceFile, com.google.javascript.jscomp.CompilerOptions)">compile</A></B>(<A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A> extern,
|
|
<A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A> input,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><T extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>>
|
|
<BR>
|
|
<A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A></CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#compileModules(java.util.List, java.util.List, com.google.javascript.jscomp.CompilerOptions)">compileModules</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T> externs,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>> modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
Compiles a list of modules.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#disableThreads()">disableThreads</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Disable threads.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getAstDotGraph()">getAstDotGraph</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the DOT graph of the AST generated at the end of compilation.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/CodingConvention.html" title="interface in com.google.javascript.jscomp">CodingConvention</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getCodingConvention()">getCodingConvention</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the current coding convention.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../../com/google/javascript/jscomp/DiagnosticGroups.html" title="class in com.google.javascript.jscomp">DiagnosticGroups</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getDiagnosticGroups()">getDiagnosticGroups</A></B>()</CODE>
|
|
|
|
<BR>
|
|
The warning classes that are available from the command-line, and
|
|
are suppressable by the <code>@suppress</code> annotation.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getErrorCount()">getErrorCount</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the number of errors.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/CheckLevel.html" title="enum in com.google.javascript.jscomp">CheckLevel</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getErrorLevel(com.google.javascript.jscomp.JSError)">getErrorLevel</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A> error)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/ErrorManager.html" title="interface in com.google.javascript.jscomp">ErrorManager</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getErrorManager()">getErrorManager</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the error manager.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A>[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getErrors()">getErrors</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the array of errors (never null).</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/CompilerInput.html" title="class in com.google.javascript.jscomp">CompilerInput</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getInput(com.google.javascript.rhino.InputId)">getInput</A></B>(<A HREF="../../../../com/google/javascript/rhino/InputId.html" title="class in com.google.javascript.rhino">InputId</A> id)</CODE>
|
|
|
|
<BR>
|
|
Looks up an input (possibly an externs input) by name.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../com/google/javascript/rhino/InputId.html" title="class in com.google.javascript.rhino">InputId</A>,<A HREF="../../../../com/google/javascript/jscomp/CompilerInput.html" title="class in com.google.javascript.jscomp">CompilerInput</A>></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getInputsById()">getInputsById</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns an unmodifiable view of the compiler inputs indexed by id.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A>[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getMessages()">getMessages</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns an array constructed from errors + temporary warnings.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> double</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getProgress()">getProgress</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getResult()">getResult</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the result of the compilation.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> com.google.javascript.jscomp.ReverseAbstractInterpreter</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getReverseAbstractInterpreter()">getReverseAbstractInterpreter</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get an interpreter for type analysis.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getRoot()">getRoot</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the root node of the AST, which includes both externs and source.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getSourceLine(java.lang.String, int)">getSourceLine</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> sourceName,
|
|
int lineNumber)</CODE>
|
|
|
|
<BR>
|
|
Get the line indicated by the line number.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/SourceMap.html" title="class in com.google.javascript.jscomp">SourceMap</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getSourceMap()">getSourceMap</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/Region.html" title="interface in com.google.javascript.jscomp">Region</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getSourceRegion(java.lang.String, int)">getSourceRegion</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> sourceName,
|
|
int lineNumber)</CODE>
|
|
|
|
<BR>
|
|
Get a region around the indicated line number.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/Compiler.IntermediateState.html" title="class in com.google.javascript.jscomp">Compiler.IntermediateState</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getState()">getState</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the current internal state, excluding the input files and modules.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/Scope.html" title="class in com.google.javascript.jscomp">Scope</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getTopScope()">getTopScope</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the top scope.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> com.google.javascript.jscomp.MemoizedScopeCreator</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getTypedScopeCreator()">getTypedScopeCreator</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets a memoized scope creator with type information.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/rhino/jstype/JSTypeRegistry.html" title="class in com.google.javascript.rhino.jstype">JSTypeRegistry</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getTypeRegistry()">getTypeRegistry</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets a central registry of type information from the compiled JS.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getWarningCount()">getWarningCount</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the number of warnings.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A>[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#getWarnings()">getWarnings</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the array of warnings (never null).</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#hasErrors()">hasErrors</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Consults the <A HREF="../../../../com/google/javascript/jscomp/ErrorManager.html" title="interface in com.google.javascript.jscomp"><CODE>ErrorManager</CODE></A> to see if we've encountered errors
|
|
that should halt compilation.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#init(com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.JSModule[], com.google.javascript.jscomp.CompilerOptions)">init</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] externs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>[] modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
Initializes the instance state needed for a compile job if the sources
|
|
are in modules.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#init(com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.CompilerOptions)">init</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] externs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] inputs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
Initializes the instance state needed for a compile job.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><T1 extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>,T2 extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>>
|
|
<BR>
|
|
void</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#init(java.util.List, java.util.List, com.google.javascript.jscomp.CompilerOptions)">init</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T1> externs,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T2> inputs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
Initializes the instance state needed for a compile job.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><T extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>>
|
|
<BR>
|
|
void</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#initModules(java.util.List, java.util.List, com.google.javascript.jscomp.CompilerOptions)">initModules</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T> externs,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>> modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
Initializes the instance state needed for a compile job if the sources
|
|
are in modules.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#initOptions(com.google.javascript.jscomp.CompilerOptions)">initOptions</A></B>(<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</CODE>
|
|
|
|
<BR>
|
|
Initialize the compiler options.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#isIdeMode()">isIdeMode</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns true if compiling in IDE mode.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#isTypeCheckingEnabled()">isTypeCheckingEnabled</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns true if type checking is enabled.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.LanguageMode.html" title="enum in com.google.javascript.jscomp">CompilerOptions.LanguageMode</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#languageMode()">languageMode</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#newCompilerOptions()">newCompilerOptions</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Allow subclasses to override the default CompileOptions object.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/jscomp/CompilerInput.html" title="class in com.google.javascript.jscomp">CompilerInput</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#newExternInput(java.lang.String)">newExternInput</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE>
|
|
|
|
<BR>
|
|
Creates a new externs file.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#normalize()">normalize</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#optimize()">optimize</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#parse()">parse</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#parse(com.google.javascript.jscomp.SourceFile)">parse</A></B>(<A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A> file)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#processDefines()">processDefines</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Reprocesses the current defines over the AST.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#rebuildInputsFromModules()">rebuildInputsFromModules</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Rebuilds the internal list of inputs by iterating over all modules.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#removeExternInput(com.google.javascript.rhino.InputId)">removeExternInput</A></B>(<A HREF="../../../../com/google/javascript/rhino/InputId.html" title="class in com.google.javascript.rhino">InputId</A> id)</CODE>
|
|
|
|
<BR>
|
|
Removes an input file from AST.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#replaceScript(com.google.javascript.jscomp.JsAst)">replaceScript</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JsAst.html" title="class in com.google.javascript.jscomp">JsAst</A> ast)</CODE>
|
|
|
|
<BR>
|
|
Replaces one file in a hot-swap mode.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#report(com.google.javascript.jscomp.JSError)">report</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A> error)</CODE>
|
|
|
|
<BR>
|
|
Report an error or warning.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#reportCodeChange()">reportCodeChange</A></B>()</CODE>
|
|
|
|
<BR>
|
|
All passes should call reportCodeChange() when they alter
|
|
the JS tree structure.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#setErrorManager(com.google.javascript.jscomp.ErrorManager)">setErrorManager</A></B>(<A HREF="../../../../com/google/javascript/jscomp/ErrorManager.html" title="interface in com.google.javascript.jscomp">ErrorManager</A> errorManager)</CODE>
|
|
|
|
<BR>
|
|
Sets the error manager.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#setLoggingLevel(java.util.logging.Level)">setLoggingLevel</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</A> level)</CODE>
|
|
|
|
<BR>
|
|
Sets the logging level for the com.google.javascript.jscomp package.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#setPassConfig(com.google.javascript.jscomp.PassConfig)">setPassConfig</A></B>(<A HREF="../../../../com/google/javascript/jscomp/PassConfig.html" title="class in com.google.javascript.jscomp">PassConfig</A> passes)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#setState(com.google.javascript.jscomp.Compiler.IntermediateState)">setState</A></B>(<A HREF="../../../../com/google/javascript/jscomp/Compiler.IntermediateState.html" title="class in com.google.javascript.jscomp">Compiler.IntermediateState</A> state)</CODE>
|
|
|
|
<BR>
|
|
Sets the internal state to the capture given.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#toSource()">toSource</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Converts the main parse tree back to js code.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#toSource(com.google.javascript.jscomp.Compiler.CodeBuilder, int, com.google.javascript.rhino.Node)">toSource</A></B>(<A HREF="../../../../com/google/javascript/jscomp/Compiler.CodeBuilder.html" title="class in com.google.javascript.jscomp">Compiler.CodeBuilder</A> cb,
|
|
int inputSeqNum,
|
|
<A HREF="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</A> root)</CODE>
|
|
|
|
<BR>
|
|
Writes out js code from a root node.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#toSource(com.google.javascript.jscomp.JSModule)">toSource</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A> module)</CODE>
|
|
|
|
<BR>
|
|
Converts the parse tree for a module back to js code.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#toSourceArray()">toSourceArray</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Converts the parse tree for each input back to js code.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/javascript/jscomp/Compiler.html#toSourceArray(com.google.javascript.jscomp.JSModule)">toSourceArray</A></B>(<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A> module)</CODE>
|
|
|
|
<BR>
|
|
Converts the parse tree for each input in a module back to js code.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
<A NAME="field_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Field Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="tracker"><!-- --></A><H3>
|
|
tracker</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/PerformanceTracker.html" title="class in com.google.javascript.jscomp">PerformanceTracker</A> <B>tracker</B></PRE>
|
|
<DL>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="OPTIMIZE_LOOP_ERROR"><!-- --></A><H3>
|
|
OPTIMIZE_LOOP_ERROR</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../../com/google/javascript/jscomp/DiagnosticType.html" title="class in com.google.javascript.jscomp">DiagnosticType</A> <B>OPTIMIZE_LOOP_ERROR</B></PRE>
|
|
<DL>
|
|
<DD>Error strings used for reporting JSErrors
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="MOTION_ITERATIONS_ERROR"><!-- --></A><H3>
|
|
MOTION_ITERATIONS_ERROR</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../../com/google/javascript/jscomp/DiagnosticType.html" title="class in com.google.javascript.jscomp">DiagnosticType</A> <B>MOTION_ITERATIONS_ERROR</B></PRE>
|
|
<DL>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="recentChange"><!-- --></A><H3>
|
|
recentChange</H3>
|
|
<PRE>
|
|
protected final <A HREF="../../../../com/google/javascript/jscomp/CodeChangeHandler.RecentChange.html" title="class in com.google.javascript.jscomp">CodeChangeHandler.RecentChange</A> <B>recentChange</B></PRE>
|
|
<DL>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="Compiler()"><!-- --></A><H3>
|
|
Compiler</H3>
|
|
<PRE>
|
|
public <B>Compiler</B>()</PRE>
|
|
<DL>
|
|
<DD>Creates a Compiler that reports errors and warnings to its logger.
|
|
<P>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="Compiler(java.io.PrintStream)"><!-- --></A><H3>
|
|
Compiler</H3>
|
|
<PRE>
|
|
public <B>Compiler</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/PrintStream.html?is-external=true" title="class or interface in java.io">PrintStream</A> stream)</PRE>
|
|
<DL>
|
|
<DD>Creates n Compiler that reports errors and warnings to an output
|
|
stream.
|
|
<P>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="Compiler(com.google.javascript.jscomp.ErrorManager)"><!-- --></A><H3>
|
|
Compiler</H3>
|
|
<PRE>
|
|
public <B>Compiler</B>(<A HREF="../../../../com/google/javascript/jscomp/ErrorManager.html" title="interface in com.google.javascript.jscomp">ErrorManager</A> errorManager)</PRE>
|
|
<DL>
|
|
<DD>Creates a Compiler that uses a custom error manager.
|
|
<P>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="setErrorManager(com.google.javascript.jscomp.ErrorManager)"><!-- --></A><H3>
|
|
setErrorManager</H3>
|
|
<PRE>
|
|
public void <B>setErrorManager</B>(<A HREF="../../../../com/google/javascript/jscomp/ErrorManager.html" title="interface in com.google.javascript.jscomp">ErrorManager</A> errorManager)</PRE>
|
|
<DL>
|
|
<DD>Sets the error manager.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>errorManager</CODE> - the error manager, it cannot be <code>null</code></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="initOptions(com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
initOptions</H3>
|
|
<PRE>
|
|
public void <B>initOptions</B>(<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD>Initialize the compiler options. Only necessary if you're not doing
|
|
a normal compile() job.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="init(com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
init</H3>
|
|
<PRE>
|
|
public void <B>init</B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] externs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] inputs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD>Initializes the instance state needed for a compile job.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="init(java.util.List, java.util.List, com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
init</H3>
|
|
<PRE>
|
|
public <T1 extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>,T2 extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>> void <B>init</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T1> externs,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T2> inputs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD>Initializes the instance state needed for a compile job.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="init(com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.JSModule[], com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
init</H3>
|
|
<PRE>
|
|
public void <B>init</B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] externs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>[] modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD>Initializes the instance state needed for a compile job if the sources
|
|
are in modules.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="initModules(java.util.List, java.util.List, com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
initModules</H3>
|
|
<PRE>
|
|
public <T extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>> void <B>initModules</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T> externs,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>> modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD>Initializes the instance state needed for a compile job if the sources
|
|
are in modules.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rebuildInputsFromModules()"><!-- --></A><H3>
|
|
rebuildInputsFromModules</H3>
|
|
<PRE>
|
|
public void <B>rebuildInputsFromModules</B>()</PRE>
|
|
<DL>
|
|
<DD>Rebuilds the internal list of inputs by iterating over all modules.
|
|
This is necessary if inputs have been added to or removed from a module
|
|
after the <A HREF="../../../../com/google/javascript/jscomp/Compiler.html#init(com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.JSModule[], com.google.javascript.jscomp.CompilerOptions)"><CODE>init(JSSourceFile[], JSModule[], CompilerOptions)</CODE></A> call.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="compile(com.google.javascript.jscomp.SourceFile, com.google.javascript.jscomp.SourceFile, com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
compile</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A> <B>compile</B>(<A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A> extern,
|
|
<A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A> input,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="compile(com.google.javascript.jscomp.SourceFile, com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
compile</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A> <B>compile</B>(<A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A> extern,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] input,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="compile(com.google.javascript.jscomp.JSSourceFile, com.google.javascript.jscomp.JSModule[], com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
compile</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A> <B>compile</B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A> extern,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>[] modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="compile(com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
compile</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A> <B>compile</B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] externs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] inputs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD>Compiles a list of inputs.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="compile(java.util.List, java.util.List, com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
compile</H3>
|
|
<PRE>
|
|
public <T1 extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>,T2 extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>> <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A> <B>compile</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T1> externs,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T2> inputs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD>Compiles a list of inputs.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="compile(com.google.javascript.jscomp.JSSourceFile[], com.google.javascript.jscomp.JSModule[], com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
compile</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A> <B>compile</B>(<A HREF="../../../../com/google/javascript/jscomp/JSSourceFile.html" title="class in com.google.javascript.jscomp">JSSourceFile</A>[] externs,
|
|
<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>[] modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD>Compiles a list of modules.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="compileModules(java.util.List, java.util.List, com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
|
|
compileModules</H3>
|
|
<PRE>
|
|
public <T extends <A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A>> <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A> <B>compileModules</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><T> externs,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A>> modules,
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> options)</PRE>
|
|
<DL>
|
|
<DD>Compiles a list of modules.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="disableThreads()"><!-- --></A><H3>
|
|
disableThreads</H3>
|
|
<PRE>
|
|
public void <B>disableThreads</B>()</PRE>
|
|
<DL>
|
|
<DD>Disable threads. This is for clients that run on AppEngine and
|
|
don't have threads.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="parse()"><!-- --></A><H3>
|
|
parse</H3>
|
|
<PRE>
|
|
public void <B>parse</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setPassConfig(com.google.javascript.jscomp.PassConfig)"><!-- --></A><H3>
|
|
setPassConfig</H3>
|
|
<PRE>
|
|
public void <B>setPassConfig</B>(<A HREF="../../../../com/google/javascript/jscomp/PassConfig.html" title="class in com.google.javascript.jscomp">PassConfig</A> passes)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>passes</CODE> - The PassConfig to use with this Compiler.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if passes is null
|
|
<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this.passes has already been assigned</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="check()"><!-- --></A><H3>
|
|
check</H3>
|
|
<PRE>
|
|
public void <B>check</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getResult()"><!-- --></A><H3>
|
|
getResult</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/Result.html" title="class in com.google.javascript.jscomp">Result</A> <B>getResult</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the result of the compilation.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getMessages()"><!-- --></A><H3>
|
|
getMessages</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A>[] <B>getMessages</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns an array constructed from errors + temporary warnings.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getErrors()"><!-- --></A><H3>
|
|
getErrors</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A>[] <B>getErrors</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the array of errors (never null).
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getWarnings()"><!-- --></A><H3>
|
|
getWarnings</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A>[] <B>getWarnings</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the array of warnings (never null).
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getRoot()"><!-- --></A><H3>
|
|
getRoot</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</A> <B>getRoot</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getRoot()">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Returns the root node of the AST, which includes both externs and source.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getInput(com.google.javascript.rhino.InputId)"><!-- --></A><H3>
|
|
getInput</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/CompilerInput.html" title="class in com.google.javascript.jscomp">CompilerInput</A> <B>getInput</B>(<A HREF="../../../../com/google/javascript/rhino/InputId.html" title="class in com.google.javascript.rhino">InputId</A> id)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getInput(com.google.javascript.rhino.InputId)">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Looks up an input (possibly an externs input) by name. May return null.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getInput(com.google.javascript.rhino.InputId)">getInput</A></CODE> in class <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="removeExternInput(com.google.javascript.rhino.InputId)"><!-- --></A><H3>
|
|
removeExternInput</H3>
|
|
<PRE>
|
|
protected void <B>removeExternInput</B>(<A HREF="../../../../com/google/javascript/rhino/InputId.html" title="class in com.google.javascript.rhino">InputId</A> id)</PRE>
|
|
<DL>
|
|
<DD>Removes an input file from AST.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>id</CODE> - The id of the input to be removed.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="newExternInput(java.lang.String)"><!-- --></A><H3>
|
|
newExternInput</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/CompilerInput.html" title="class in com.google.javascript.jscomp">CompilerInput</A> <B>newExternInput</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#newExternInput(java.lang.String)">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Creates a new externs file.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - A name for the new externs file.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTypeRegistry()"><!-- --></A><H3>
|
|
getTypeRegistry</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/rhino/jstype/JSTypeRegistry.html" title="class in com.google.javascript.rhino.jstype">JSTypeRegistry</A> <B>getTypeRegistry</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getTypeRegistry()">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Gets a central registry of type information from the compiled JS.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getTypeRegistry()">getTypeRegistry</A></CODE> in class <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTypedScopeCreator()"><!-- --></A><H3>
|
|
getTypedScopeCreator</H3>
|
|
<PRE>
|
|
public com.google.javascript.jscomp.MemoizedScopeCreator <B>getTypedScopeCreator</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getTypedScopeCreator()">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Gets a memoized scope creator with type information.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="buildKnownSymbolTable()"><!-- --></A><H3>
|
|
buildKnownSymbolTable</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/SymbolTable.html" title="class in com.google.javascript.jscomp">SymbolTable</A> <B>buildKnownSymbolTable</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTopScope()"><!-- --></A><H3>
|
|
getTopScope</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/Scope.html" title="class in com.google.javascript.jscomp">Scope</A> <B>getTopScope</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getTopScope()">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Gets the top scope.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getTopScope()">getTopScope</A></CODE> in class <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getReverseAbstractInterpreter()"><!-- --></A><H3>
|
|
getReverseAbstractInterpreter</H3>
|
|
<PRE>
|
|
public com.google.javascript.jscomp.ReverseAbstractInterpreter <B>getReverseAbstractInterpreter</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getReverseAbstractInterpreter()">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Get an interpreter for type analysis.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getReverseAbstractInterpreter()">getReverseAbstractInterpreter</A></CODE> in class <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="parse(com.google.javascript.jscomp.SourceFile)"><!-- --></A><H3>
|
|
parse</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</A> <B>parse</B>(<A HREF="../../../../com/google/javascript/jscomp/SourceFile.html" title="class in com.google.javascript.jscomp">SourceFile</A> file)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="newCompilerOptions()"><!-- --></A><H3>
|
|
newCompilerOptions</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html" title="class in com.google.javascript.jscomp">CompilerOptions</A> <B>newCompilerOptions</B>()</PRE>
|
|
<DL>
|
|
<DD>Allow subclasses to override the default CompileOptions object.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toSource()"><!-- --></A><H3>
|
|
toSource</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toSource</B>()</PRE>
|
|
<DL>
|
|
<DD>Converts the main parse tree back to js code.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toSourceArray()"><!-- --></A><H3>
|
|
toSourceArray</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>toSourceArray</B>()</PRE>
|
|
<DL>
|
|
<DD>Converts the parse tree for each input back to js code.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toSource(com.google.javascript.jscomp.JSModule)"><!-- --></A><H3>
|
|
toSource</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toSource</B>(<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A> module)</PRE>
|
|
<DL>
|
|
<DD>Converts the parse tree for a module back to js code.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toSourceArray(com.google.javascript.jscomp.JSModule)"><!-- --></A><H3>
|
|
toSourceArray</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>toSourceArray</B>(<A HREF="../../../../com/google/javascript/jscomp/JSModule.html" title="class in com.google.javascript.jscomp">JSModule</A> module)</PRE>
|
|
<DL>
|
|
<DD>Converts the parse tree for each input in a module back to js code.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toSource(com.google.javascript.jscomp.Compiler.CodeBuilder, int, com.google.javascript.rhino.Node)"><!-- --></A><H3>
|
|
toSource</H3>
|
|
<PRE>
|
|
public void <B>toSource</B>(<A HREF="../../../../com/google/javascript/jscomp/Compiler.CodeBuilder.html" title="class in com.google.javascript.jscomp">Compiler.CodeBuilder</A> cb,
|
|
int inputSeqNum,
|
|
<A HREF="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</A> root)</PRE>
|
|
<DL>
|
|
<DD>Writes out js code from a root node. If printing input delimiters, this
|
|
method will attach a comment to the start of the text indicating which
|
|
input the output derived from. If there were any preserve annotations
|
|
within the root's source, they will also be printed in a block comment
|
|
at the beginning of the output.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optimize()"><!-- --></A><H3>
|
|
optimize</H3>
|
|
<PRE>
|
|
public void <B>optimize</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="processDefines()"><!-- --></A><H3>
|
|
processDefines</H3>
|
|
<PRE>
|
|
public void <B>processDefines</B>()</PRE>
|
|
<DL>
|
|
<DD>Reprocesses the current defines over the AST. This is used by GwtCompiler
|
|
to generate N outputs for different targets from the same (checked) AST.
|
|
For each target, we apply the target-specific defines by calling
|
|
<code>processDefines</code> and then <code>optimize</code> to optimize the AST
|
|
specifically for that target.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="normalize()"><!-- --></A><H3>
|
|
normalize</H3>
|
|
<PRE>
|
|
public void <B>normalize</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="reportCodeChange()"><!-- --></A><H3>
|
|
reportCodeChange</H3>
|
|
<PRE>
|
|
public void <B>reportCodeChange</B>()</PRE>
|
|
<DL>
|
|
<DD>All passes should call reportCodeChange() when they alter
|
|
the JS tree structure. This is verified by CompilerTestCase.
|
|
This allows us to optimize to a fixed point.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#reportCodeChange()">reportCodeChange</A></CODE> in class <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getCodingConvention()"><!-- --></A><H3>
|
|
getCodingConvention</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/CodingConvention.html" title="interface in com.google.javascript.jscomp">CodingConvention</A> <B>getCodingConvention</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getCodingConvention()">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Gets the current coding convention.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getCodingConvention()">getCodingConvention</A></CODE> in class <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isIdeMode()"><!-- --></A><H3>
|
|
isIdeMode</H3>
|
|
<PRE>
|
|
public boolean <B>isIdeMode</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#isIdeMode()">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Returns true if compiling in IDE mode.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="acceptEcmaScript5()"><!-- --></A><H3>
|
|
acceptEcmaScript5</H3>
|
|
<PRE>
|
|
public boolean <B>acceptEcmaScript5</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Whether the compiler is in ES5Mode.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="languageMode()"><!-- --></A><H3>
|
|
languageMode</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.LanguageMode.html" title="enum in com.google.javascript.jscomp">CompilerOptions.LanguageMode</A> <B>languageMode</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="acceptConstKeyword()"><!-- --></A><H3>
|
|
acceptConstKeyword</H3>
|
|
<PRE>
|
|
public boolean <B>acceptConstKeyword</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Whether the compiler accepts `const' keyword.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isTypeCheckingEnabled()"><!-- --></A><H3>
|
|
isTypeCheckingEnabled</H3>
|
|
<PRE>
|
|
public boolean <B>isTypeCheckingEnabled</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#isTypeCheckingEnabled()">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Returns true if type checking is enabled.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getDiagnosticGroups()"><!-- --></A><H3>
|
|
getDiagnosticGroups</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../../com/google/javascript/jscomp/DiagnosticGroups.html" title="class in com.google.javascript.jscomp">DiagnosticGroups</A> <B>getDiagnosticGroups</B>()</PRE>
|
|
<DL>
|
|
<DD>The warning classes that are available from the command-line, and
|
|
are suppressable by the <code>@suppress</code> annotation.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="report(com.google.javascript.jscomp.JSError)"><!-- --></A><H3>
|
|
report</H3>
|
|
<PRE>
|
|
public void <B>report</B>(<A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A> error)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#report(com.google.javascript.jscomp.JSError)">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Report an error or warning.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#report(com.google.javascript.jscomp.JSError)">report</A></CODE> in class <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getErrorLevel(com.google.javascript.jscomp.JSError)"><!-- --></A><H3>
|
|
getErrorLevel</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/CheckLevel.html" title="enum in com.google.javascript.jscomp">CheckLevel</A> <B>getErrorLevel</B>(<A HREF="../../../../com/google/javascript/jscomp/JSError.html" title="class in com.google.javascript.jscomp">JSError</A> error)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The error level the given error object will be reported at.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getErrorCount()"><!-- --></A><H3>
|
|
getErrorCount</H3>
|
|
<PRE>
|
|
public int <B>getErrorCount</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the number of errors.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getWarningCount()"><!-- --></A><H3>
|
|
getWarningCount</H3>
|
|
<PRE>
|
|
public int <B>getWarningCount</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the number of warnings.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="hasErrors()"><!-- --></A><H3>
|
|
hasErrors</H3>
|
|
<PRE>
|
|
public boolean <B>hasErrors</B>()</PRE>
|
|
<DL>
|
|
<DD>Consults the <A HREF="../../../../com/google/javascript/jscomp/ErrorManager.html" title="interface in com.google.javascript.jscomp"><CODE>ErrorManager</CODE></A> to see if we've encountered errors
|
|
that should halt compilation. <p>
|
|
|
|
If <A HREF="../../../../com/google/javascript/jscomp/CompilerOptions.html#ideMode"><CODE>CompilerOptions.ideMode</CODE></A> is <code>true</code>, this function
|
|
always returns <code>false</code> without consulting the error manager. The
|
|
error manager will continue to be told about new errors and warnings, but
|
|
the compiler will complete compilation of all inputs.<p>
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getSourceLine(java.lang.String, int)"><!-- --></A><H3>
|
|
getSourceLine</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getSourceLine</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> sourceName,
|
|
int lineNumber)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/javascript/jscomp/SourceExcerptProvider.html#getSourceLine(java.lang.String, int)">SourceExcerptProvider</A></CODE></B></DD>
|
|
<DD>Get the line indicated by the line number. This call will return only the
|
|
specific line.
|
|
<P>
|
|
<DD><DL>
|
|
<DD><CODE>lineNumber</CODE> - the line number, 1 being the first line of the file
|
|
<DT><B>Returns:</B><DD>the line indicated, or <code>null</code> if it does not exist</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getSourceRegion(java.lang.String, int)"><!-- --></A><H3>
|
|
getSourceRegion</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/Region.html" title="interface in com.google.javascript.jscomp">Region</A> <B>getSourceRegion</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> sourceName,
|
|
int lineNumber)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/javascript/jscomp/SourceExcerptProvider.html#getSourceRegion(java.lang.String, int)">SourceExcerptProvider</A></CODE></B></DD>
|
|
<DD>Get a region around the indicated line number. The exact definition of a
|
|
region is implementation specific, but it must contain the line indicated
|
|
by the line number. A region must not start or end by a carriage return.
|
|
<P>
|
|
<DD><DL>
|
|
<DD><CODE>lineNumber</CODE> - the line number, 1 being the first line of the file
|
|
<DT><B>Returns:</B><DD>the region around the line number indicated, or <code>null</null>
|
|
if it does not exist</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getSourceMap()"><!-- --></A><H3>
|
|
getSourceMap</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/SourceMap.html" title="class in com.google.javascript.jscomp">SourceMap</A> <B>getSourceMap</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setLoggingLevel(java.util.logging.Level)"><!-- --></A><H3>
|
|
setLoggingLevel</H3>
|
|
<PRE>
|
|
public static void <B>setLoggingLevel</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</A> level)</PRE>
|
|
<DL>
|
|
<DD>Sets the logging level for the com.google.javascript.jscomp package.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getAstDotGraph()"><!-- --></A><H3>
|
|
getAstDotGraph</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getAstDotGraph</B>()
|
|
throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
|
|
<DL>
|
|
<DD>Gets the DOT graph of the AST generated at the end of compilation.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getErrorManager()"><!-- --></A><H3>
|
|
getErrorManager</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/ErrorManager.html" title="interface in com.google.javascript.jscomp">ErrorManager</A> <B>getErrorManager</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getErrorManager()">AbstractCompiler</A></CODE></B></DD>
|
|
<DD>Gets the error manager.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getErrorManager()">getErrorManager</A></CODE> in class <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getInputsById()"><!-- --></A><H3>
|
|
getInputsById</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../com/google/javascript/rhino/InputId.html" title="class in com.google.javascript.rhino">InputId</A>,<A HREF="../../../../com/google/javascript/jscomp/CompilerInput.html" title="class in com.google.javascript.jscomp">CompilerInput</A>> <B>getInputsById</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns an unmodifiable view of the compiler inputs indexed by id.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getState()"><!-- --></A><H3>
|
|
getState</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/javascript/jscomp/Compiler.IntermediateState.html" title="class in com.google.javascript.jscomp">Compiler.IntermediateState</A> <B>getState</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the current internal state, excluding the input files and modules.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setState(com.google.javascript.jscomp.Compiler.IntermediateState)"><!-- --></A><H3>
|
|
setState</H3>
|
|
<PRE>
|
|
public void <B>setState</B>(<A HREF="../../../../com/google/javascript/jscomp/Compiler.IntermediateState.html" title="class in com.google.javascript.jscomp">Compiler.IntermediateState</A> state)</PRE>
|
|
<DL>
|
|
<DD>Sets the internal state to the capture given. Note that this assumes that
|
|
the input files are already set up.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getProgress()"><!-- --></A><H3>
|
|
getProgress</H3>
|
|
<PRE>
|
|
public double <B>getProgress</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html#getProgress()">getProgress</A></CODE> in class <CODE><A HREF="../../../../com/google/javascript/jscomp/AbstractCompiler.html" title="class in com.google.javascript.jscomp">AbstractCompiler</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>a number in [0,1] range indicating an approximate progress of the
|
|
last compile. Note this should only be used as a hint and no assumptions
|
|
should be made on accuracy, even a completed compile may choose not to set
|
|
this to 1.0 at the end.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="replaceScript(com.google.javascript.jscomp.JsAst)"><!-- --></A><H3>
|
|
replaceScript</H3>
|
|
<PRE>
|
|
public void <B>replaceScript</B>(<A HREF="../../../../com/google/javascript/jscomp/JsAst.html" title="class in com.google.javascript.jscomp">JsAst</A> ast)</PRE>
|
|
<DL>
|
|
<DD>Replaces one file in a hot-swap mode. The given JsAst should be made
|
|
from a new version of a file that already was present in the last compile
|
|
call. If the file is new, this will silently ignored.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>ast</CODE> - the ast of the file that is being replaced</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="addNewScript(com.google.javascript.jscomp.JsAst)"><!-- --></A><H3>
|
|
addNewScript</H3>
|
|
<PRE>
|
|
public void <B>addNewScript</B>(<A HREF="../../../../com/google/javascript/jscomp/JsAst.html" title="class in com.google.javascript.jscomp">JsAst</A> ast)</PRE>
|
|
<DL>
|
|
<DD>Adds a new Script AST to the compile state. If a script for the same file
|
|
already exists the script will not be added, instead a call to
|
|
#replaceScript should be used.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>ast</CODE> - the ast of the new file</DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../com/google/javascript/jscomp/CompilationLevel.html" title="enum in com.google.javascript.jscomp"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../../com/google/javascript/jscomp/Compiler.CodeBuilder.html" title="class in com.google.javascript.jscomp"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../index.html?com/google/javascript/jscomp/Compiler.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="Compiler.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
|
|
<div id="footer">
|
|
<div id="footerlogo">
|
|
<img src="http://www.google.com/images/art.gif"
|
|
alt="Google colored balls">
|
|
</div>
|
|
|
|
<div id="copyright">
|
|
<p>© 2009 Google -
|
|
<a href="http://www.google.com/privacy.html">Privacy Policy</a> -
|
|
<a href="http://www.google.com/terms_of_service.html">Terms and Conditions</a> -
|
|
<a href="http://www.google.com/about.html">About Google</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</BODY>
|
|
</HTML>
|