| Constructor and Description |
|---|
OEMReport(List<Source> sources,
SimpleMovie movie,
Configuration configuration,
SourceList sourceList,
String configurationReport,
List<Message> messages) |
OEMReport(List<Source> sources,
SimpleMovie movie,
Configuration configuration,
SourceList sourceList,
String configurationReport,
List<Message> messages,
Map<String,VirtualFile> archiveFiles) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentUpdated()
Checks whether the sources, assets and libraries have been updated since the report was created.
|
String[] |
getAssetNames(int frame)
Gets the names of all the assets that are in the specified frame.
|
String[] |
getAssetNames(Object report)
Gets the names of all the assets that are involved in the
Application or Library. |
int |
getBackgroundColor()
Gets the background color.
|
String |
getCompilerVersion()
Outputs the compiler version.
|
int |
getDefaultHeight()
Gets the default height of the application.
|
int |
getDefaultWidth()
Gets the default width of the application.
|
String[] |
getDefinitionNames(int frame)
Gets the list of all the top-level, externally-visible definitions in the specified frame.
|
String[] |
getDefinitionNames(String sourceName)
Gets the list of all the top-level, externally-visible definitions in the specified
source file.
|
String[] |
getDependencies(String definition)
Gets the list of definitions that the specified definition depends on during run time.
|
int |
getFrameCount()
Gets the number of frames in the movie.
|
int |
getHeight()
Gets the user-defined height.
|
double |
getHeightPercent()
Gets the user-defined height percentage.
|
String[] |
getLibraryNames(Object report)
Gets the name of all the libraries that are involved in the
Application or Library. |
String |
getLocation(String definition)
Gets the location of the specified definition.
|
Message[] |
getMessages()
Reports the errors and warnings that were generated during the compilation.
|
String |
getPageTitle()
Gets the page title.
|
String[] |
getPrerequisites(String definition)
Gets the list of definitions that the specified definition depends on during initialization.
|
String[] |
getResourceBundleNames()
Gets the name of all the resource bundles that are involved in the Application/Library.
|
String[] |
getSourceNames(Object report)
Gets the name of all the sources that are involved in the
Application or Library. |
int |
getWidth()
Gets the user-defined width.
|
double |
getWidthPercent()
Gets the user-defined width percentage.
|
long |
writeConfigurationReport(Writer out)
Writes the configuration report to the specified output.
|
long |
writeLinkReport(Writer out)
Writes the linker report to the specified output.
|
long |
writeSizeReport(Writer out)
Writes the linker size report to the specified output.
|
public OEMReport(List<Source> sources, SimpleMovie movie, Configuration configuration, SourceList sourceList, String configurationReport, List<Message> messages)
public OEMReport(List<Source> sources, SimpleMovie movie, Configuration configuration, SourceList sourceList, String configurationReport, List<Message> messages, Map<String,VirtualFile> archiveFiles)
public boolean contentUpdated()
ReportcontentUpdated in interface Reportpublic String[] getSourceNames(Object report)
ReportApplication or Library.
The getSourceNames(Report.COMPILER) method returns the name of all the source files
that are involved in the compilation.
The getSourceNames(Report.LINKER) method returns the name of all the source files
that are eventually output by the linker.
The getSourceNames(Report.COMPILER)
and getSourceNames(Report.LINKER) methods can yield different results if the linker is
instructed to exclude certain definitions from the final output.
getSourceNames in interface Reportreport - The COMPILER or LINKER.Report.COMPILER,
Report.LINKERpublic String[] getAssetNames(int frame)
ReportgetFrameCount().
If the compilation did not generate a movie, this method returns null.
getAssetNames in interface Reportframe - frame number. The number is 1-based.Report.getFrameCount()public String[] getAssetNames(Object report)
ReportApplication or Library.
The getAssetNames(Report.COMPILER) method returns the names of all the asset files
that are involved in the compilation.
The getAssetNames(Report.LINKER) method returns the names of all the asset files
that are eventually output by the linker.
The getAssetNames(Report.COMPILER)
and getAssetNames(Report.LINKER) methods can yield different results if the linker is
instructed to exclude certain definitions from the final output.
getAssetNames in interface Reportreport - The COMPILER or LINKER.Report.COMPILER,
Report.LINKERpublic String[] getLibraryNames(Object report)
ReportApplication or Library.
The getLibraryNames(Report.COMPILER) method returns the name of all the library files
that are involved in the compilation.
The getLibraryNames(Report.LINKER) method returns the name of all the library files
that are eventually output by the linker.
The getLibraryNames(Report.COMPILER)
and getLibraryNames(Report.LINKER) methods can yield different results if the linker is
instructed to exclude certain definitions from the final output.
getLibraryNames in interface Reportreport - The COMPILER or LINKER.Report.COMPILER,
Report.LINKERpublic String[] getResourceBundleNames()
ReportgetResourceBundleNames() method returns a list of names that
can be passed to the Library.addResourceBundle() method.
The returned value should match the output from the resource-bundle-list compiler option.
getResourceBundleNames in interface Reportpublic String[] getDefinitionNames(int frame)
ReportgetFrameCount().
If the compilation did not generate a movie, this method returns null.
getDefinitionNames in interface Reportframe - frame number. The number is 1-based.Report.getFrameCount()public String[] getDefinitionNames(String sourceName)
ReportgetSourceNames() method.
The output definition names are in the QName format; for example: mx.controls:Button.
getDefinitionNames in interface ReportsourceName - Source file name.null if there is no definition in the source file.public String getLocation(String definition)
Report
The specified definition name must be in the QName format; for example: mx.controls:Button.
getLocation in interface Reportdefinition - A definition is a class, function, variable, or namespace.null if the definition is not found.public String[] getDependencies(String definition)
Report
The specified definition name must be in the QName format; for example: mx.controls:Button.
getDependencies in interface Reportdefinition - A definition is a class, function, variable, or namespace.null if there is no dependency.public String[] getPrerequisites(String definition)
Report
The specified definition name must be in the QName format; for example: mx.controls:Button.
getPrerequisites in interface Reportdefinition - A class.null if there is no dependency.public long writeLinkReport(Writer out) throws IOException
ReportReport was generated before linking,
this method returns 0. You should provide a BufferedWriter, if possible.
You should be sure to close the specified Writer.
To use this method, you must call the Configuration.keepLinkReport() method
before the compilation.
writeLinkReport in interface Reportout - An instance of Writer.IOException - Thrown when an I/O error occurs while the link report is being written.Configuration.keepLinkReport(boolean)public long writeSizeReport(Writer out) throws IOException
ReportReport was generated before linking,
this method returns 0. You should provide a BufferedWriter, if possible.
You should be sure to close the specified Writer.
To use this method, you must call the Configuration.keepSizeReport() method
before the compilation.
writeSizeReport in interface Reportout - An instance of Writer.IOException - Thrown when an I/O error occurs while the link report is being written.Configuration.keepSizeReport(boolean)public long writeConfigurationReport(Writer out) throws IOException
ReportBufferedWriter, if possible.
Be sure to close the specified Writer.
To use this method, you must call the Configuration.keepConfigurationReport() method
before the compilation.
writeConfigurationReport in interface Reportout - An instance of Writer.IOException - Thrown when an I/O error occurs during writing the configuration report.Configuration.keepConfigurationReport(boolean)public int getBackgroundColor()
Report0x869CA7.
If the Report was generated before linking, this method returns 0.getBackgroundColor in interface Reportpublic String getPageTitle()
ReportReport was generated before linking, this method returns null.getPageTitle in interface Reportnull if it was not specified.public int getDefaultWidth()
Report500.getDefaultWidth in interface Reportpublic int getDefaultHeight()
Report375.getDefaultHeight in interface Reportpublic int getWidth()
ReportReport was generated before linking, this method returns 0.public int getHeight()
ReportReport was generated before linking, this method returns 0.public double getWidthPercent()
ReportReport was generated before linking, this method returns 0.0.getWidthPercent in interface Report0.0 if it was not specified.public double getHeightPercent()
ReportReport was generated before linking, this method returns 0.0.getHeightPercent in interface Report0.0 if it was not specified.public String getCompilerVersion()
ReportgetCompilerVersion in interface Reportpublic Message[] getMessages()
ReportMessage objects are errors and warnings.getMessages in interface Reportnull if there were no errors or warnings.public int getFrameCount()
ReportApplication, the returned
value is the number of frames in the movie. For Library, the returned
value is the number of frames in library.swf.
If the compilation did not generate a movie, the returned value will be 0.
getFrameCount in interface ReportCopyright © 2016 The Apache Software Foundation. All rights reserved.