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()
Report
contentUpdated
in interface Report
public String[] getSourceNames(Object report)
Report
Application
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 Report
report
- The COMPILER
or LINKER
.Report.COMPILER
,
Report.LINKER
public String[] getAssetNames(int frame)
Report
getFrameCount()
.
If the compilation did not generate a movie, this method returns null
.
getAssetNames
in interface Report
frame
- frame number. The number is 1-based.Report.getFrameCount()
public String[] getAssetNames(Object report)
Report
Application
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 Report
report
- The COMPILER
or LINKER
.Report.COMPILER
,
Report.LINKER
public String[] getLibraryNames(Object report)
Report
Application
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 Report
report
- The COMPILER
or LINKER
.Report.COMPILER
,
Report.LINKER
public String[] getResourceBundleNames()
Report
getResourceBundleNames()
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 Report
public String[] getDefinitionNames(int frame)
Report
getFrameCount()
.
If the compilation did not generate a movie, this method returns null
.
getDefinitionNames
in interface Report
frame
- frame number. The number is 1-based.Report.getFrameCount()
public String[] getDefinitionNames(String sourceName)
Report
getSourceNames()
method.
The output definition names are in the QName format; for example: mx.controls:Button
.
getDefinitionNames
in interface Report
sourceName
- 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 Report
definition
- 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 Report
definition
- 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 Report
definition
- A class.null
if there is no dependency.public long writeLinkReport(Writer out) throws IOException
Report
Report
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 Report
out
- 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
Report
Report
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 Report
out
- 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
Report
BufferedWriter
, 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 Report
out
- An instance of Writer
.IOException
- Thrown when an I/O error occurs during writing the configuration report.Configuration.keepConfigurationReport(boolean)
public int getBackgroundColor()
Report
0x869CA7
.
If the Report
was generated before linking, this method returns 0
.getBackgroundColor
in interface Report
public String getPageTitle()
Report
Report
was generated before linking, this method returns null
.getPageTitle
in interface Report
null
if it was not specified.public int getDefaultWidth()
Report
500
.getDefaultWidth
in interface Report
public int getDefaultHeight()
Report
375
.getDefaultHeight
in interface Report
public int getWidth()
Report
Report
was generated before linking, this method returns 0
.public int getHeight()
Report
Report
was generated before linking, this method returns 0
.public double getWidthPercent()
Report
Report
was generated before linking, this method returns 0.0
.getWidthPercent
in interface Report
0.0
if it was not specified.public double getHeightPercent()
Report
Report
was generated before linking, this method returns 0.0
.getHeightPercent
in interface Report
0.0
if it was not specified.public String getCompilerVersion()
Report
getCompilerVersion
in interface Report
public Message[] getMessages()
Report
Message
objects are errors and warnings.getMessages
in interface Report
null
if there were no errors or warnings.public int getFrameCount()
Report
Application
, 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 Report
Copyright © 2016 The Apache Software Foundation. All rights reserved.