Constructor and Description |
---|
DSwfInfo(int index,
int isolateId) |
Modifier and Type | Method and Description |
---|---|
void |
addSource(int i,
DModule m) |
boolean |
containsSource(SourceFile f)
Returns true if the given source file is contained
within this SWF.
|
void |
freshen(long id,
String path,
String url,
String host,
long port,
boolean swdLoading,
long swfSize,
long swdSize,
long bpCount,
long offsetCount,
long scriptCount,
Map<Long,Integer> map,
int minId,
int maxId) |
int |
getFirstSourceId() |
String |
getHost() |
long |
getId() |
int |
getIsolateId()
Return the worker ID to which this SWF belongs.
|
int |
getLastSourceId() |
String |
getPath()
SwfInfo interface
|
int |
getPort() |
int |
getRefreshCount() |
int |
getSourceCount() |
int |
getSourceCount(Session s)
Return the number of sources that we have
|
int |
getSourceExpectedCount() |
SourceFile[] |
getSourceList(Session s)
Return a list of our sources
|
byte[] |
getSwd() |
int |
getSwdSize() |
int |
getSwdSize(Session s)
The size of the debug SWD file, if any
This may also be zero if the SWD load is in progress
|
byte[] |
getSwf() |
int |
getSwfSize()
The size of this SWF in bytes
|
String |
getUrl()
The URL for the SWF.
|
int |
getVmVersion() |
boolean |
hasAllSource()
This method returns true once we have all the scripts
that we expect to ever have.
|
boolean |
isPopulated() |
boolean |
isProcessingComplete()
Indicates whether the contents of the SWF file
have been completely processed.
|
boolean |
isSwdLoading() |
boolean |
isUnloaded()
Indication that this SWF, which was previously loaded into
the Player, is now currently unloaded.
|
ActionLocation |
locate(int offset)
Locate the given offset within the swf
|
ActionLocation |
locateSourceLineEnd(ActionLocation l)
Ask the container to locate the next line
record following the location specified in the
location, without spilling over into the next
action list
|
ActionLocation |
locateSourceLineEnd(ActionLocation l,
int stopAt) |
void |
parseSwfSwd(DManager manager)
Extracts information out of the SWF/SWD in order to populate
function line number tables in SourceFile variabels.
|
void |
processLineRecord(ActionLocation where,
flash.swf.debug.LineRecord r)
This is a callback function from LineFunctionContainer.combForLineRecords()
We extract what we want and then update the associated module
|
void |
setPopulated() |
void |
setSourceExpectedCount(int c) |
void |
setSwd(byte[] swd) |
void |
setSwf(byte[] swf) |
void |
setUnloaded() |
void |
setVmVersion(int vmVersion) |
String |
toString() |
public String getUrl()
SwfInfo
public int getSwfSize()
SwfInfo
getSwfSize
in interface SwfInfo
public int getSwdSize(Session s) throws InProgressException
SwfInfo
getSwdSize
in interface SwfInfo
InProgressException
- if the SWD has not yet been loadedpublic boolean isUnloaded()
SwfInfo
isUnloaded
in interface SwfInfo
public boolean isProcessingComplete()
SwfInfo
isProcessingComplete
in interface SwfInfo
public boolean containsSource(SourceFile f)
SwfInfo
containsSource
in interface SwfInfo
public long getId()
public String getHost()
public int getPort()
public int getSwdSize()
public int getRefreshCount()
public boolean isSwdLoading()
public boolean isPopulated()
public byte[] getSwf()
public byte[] getSwd()
public int getSourceExpectedCount()
public int getVmVersion()
public int getSourceCount()
public int getFirstSourceId()
public int getLastSourceId()
public void setVmVersion(int vmVersion)
public void setUnloaded()
public void setSwf(byte[] swf)
public void setSwd(byte[] swd)
public void setPopulated()
public void setSourceExpectedCount(int c)
public void addSource(int i, DModule m)
public int getSourceCount(Session s) throws InProgressException
getSourceCount
in interface SwfInfo
InProgressException
- if the SWD has not yet been loadedpublic SourceFile[] getSourceList(Session s) throws InProgressException
getSourceList
in interface SwfInfo
InProgressException
- if the SWD has not yet been loadedpublic boolean hasAllSource()
public void freshen(long id, String path, String url, String host, long port, boolean swdLoading, long swfSize, long swdSize, long bpCount, long offsetCount, long scriptCount, Map<Long,Integer> map, int minId, int maxId)
public ActionLocation locate(int offset)
public ActionLocation locateSourceLineEnd(ActionLocation l)
public ActionLocation locateSourceLineEnd(ActionLocation l, int stopAt)
public void parseSwfSwd(DManager manager)
public void processLineRecord(ActionLocation where, flash.swf.debug.LineRecord r)
public int getIsolateId()
SwfInfo
getIsolateId
in interface SwfInfo
Copyright © 2016 The Apache Software Foundation. All rights reserved.