mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
api doc
This commit is contained in:
parent
8d37faa81d
commit
396bafa234
@ -176,12 +176,12 @@ public class ModuleGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare all needed methods/functions and scan the content for more needed stuff.
|
* Scan all needed methods/functions in a loop. If the scan find more needed content then the loop continue.
|
||||||
*
|
*
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* if any I/O error occur
|
* if any I/O error occur
|
||||||
*/
|
*/
|
||||||
private void prepareFunctions() throws IOException {
|
private void scanFunctions() throws IOException {
|
||||||
FunctionName next;
|
FunctionName next;
|
||||||
NEXT:
|
NEXT:
|
||||||
while( (next = functions.nextScannLater()) != null ) {
|
while( (next = functions.nextScannLater()) != null ) {
|
||||||
@ -239,7 +239,7 @@ public class ModuleGenerator {
|
|||||||
* if any I/O error occur
|
* if any I/O error occur
|
||||||
*/
|
*/
|
||||||
public void prepareFinish() throws IOException {
|
public void prepareFinish() throws IOException {
|
||||||
prepareFunctions();
|
scanFunctions();
|
||||||
|
|
||||||
// write only the needed imports to the output
|
// write only the needed imports to the output
|
||||||
for( Iterator<FunctionName> iterator = functions.getNeededImports(); iterator.hasNext(); ) {
|
for( Iterator<FunctionName> iterator = functions.getNeededImports(); iterator.hasNext(); ) {
|
||||||
@ -270,7 +270,7 @@ public class ModuleGenerator {
|
|||||||
|
|
||||||
JWebAssembly.LOGGER.fine( "scan finsih" );
|
JWebAssembly.LOGGER.fine( "scan finsih" );
|
||||||
types.prepareFinish( writer, functions, classFileLoader );
|
types.prepareFinish( writer, functions, classFileLoader );
|
||||||
prepareFunctions(); // prepare of types can add some override methods as needed
|
scanFunctions(); // prepare of types can add some override methods as needed
|
||||||
functions.prepareFinish();
|
functions.prepareFinish();
|
||||||
strings.prepareFinish( writer );
|
strings.prepareFinish( writer );
|
||||||
writer.prepareFinish();
|
writer.prepareFinish();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user