public interface SourceFile
Modifier and Type | Method and Description |
---|---|
String |
getBasePath()
Base path for this filename, without the package-name portion.
|
String |
getFullPath()
Full path and file name, if its exists, for this SourceFile.
|
String |
getFunctionNameForLine(Session s,
int lineNum)
Return the function name for a given line number, or
null
if not known or if the line matches more than one function. |
String[] |
getFunctionNames(Session s)
Get a list of all function names for this SourceFile
|
int |
getId()
Return a unique identifier for this SourceFile.
|
String |
getLine(int lineNum)
Obtains the textual content of the given line
from within a source file.
|
int |
getLineCount()
Returns the number of source lines in the given file
|
int |
getLineForFunctionName(Session s,
String name)
Return the line number for the given function name
if it doesn't exists -1 is returned
|
String |
getName()
File name of this SourceFile.
|
int |
getOffsetForLine(int lineNum)
Return the offset within the SWF for a given line
number.
|
String |
getPackageName()
Get the package name portion of the path for this file.
|
String |
getRawName()
Raw, unprocessed file name for this SourceFile.
|
String getBasePath()
String getPackageName()
String getName()
String getFullPath()
getBasePath + slash + getPackageName() + slash + getName()
where "slash" is a platform-specific slash character.String getRawName()
int getLineCount()
int getId()
String getLine(int lineNum)
String getFunctionNameForLine(Session s, int lineNum)
null
if not known or if the line matches more than one function.int getLineForFunctionName(Session s, String name)
String[] getFunctionNames(Session s)
int getOffsetForLine(int lineNum)
Copyright © 2016 The Apache Software Foundation. All rights reserved.