Package org.teavm.debugging.information
Class DebugInformation
- java.lang.Object
-
- org.teavm.debugging.information.DebugInformation
-
public class DebugInformation extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DebugInformation()DebugInformation(ReferenceCache referenceCache)
-
Method Summary
-
-
-
Constructor Detail
-
DebugInformation
public DebugInformation()
-
DebugInformation
public DebugInformation(ReferenceCache referenceCache)
-
-
Method Detail
-
getFilesNames
public java.lang.String[] getFilesNames()
-
getVariableNames
public java.lang.String[] getVariableNames()
-
getFileName
public java.lang.String getFileName(int fileNameId)
-
getClassNames
public java.lang.String[] getClassNames()
-
getClassName
public java.lang.String getClassName(int classNameId)
-
getMethods
public MethodDescriptor[] getMethods()
-
getMethod
public MethodDescriptor getMethod(int methodId)
-
getExactMethods
public MethodReference[] getExactMethods()
-
getExactMethod
public MethodReference getExactMethod(int index)
-
getExactMethodId
public int getExactMethodId(int classNameId, int methodId)
-
layerCount
public int layerCount()
-
iterateOverExactMethods
public ExactMethodIterator iterateOverExactMethods(int layerIndex)
-
getGeneratedLocations
public java.util.Collection<GeneratedLocation> getGeneratedLocations(java.lang.String fileName, int line)
-
getGeneratedLocations
public java.util.Collection<GeneratedLocation> getGeneratedLocations(SourceLocation sourceLocation)
-
iterateOverSourceLocations
public SourceLocationIterator iterateOverSourceLocations()
-
getSourceLocation
public SourceLocation getSourceLocation(int line, int column)
-
getSourceLocation
public SourceLocation getSourceLocation(int line, int column, int layerIndex)
-
getSourceLocation
public SourceLocation getSourceLocation(GeneratedLocation generatedLocation)
-
getSourceLocation
public SourceLocation getSourceLocation(GeneratedLocation generatedLocation, int layerIndex)
-
getMethodAt
public MethodReference getMethodAt(GeneratedLocation generatedLocation)
-
getMethodAt
public MethodReference getMethodAt(GeneratedLocation generatedLocation, int layerIndex)
-
getMethodAt
public MethodReference getMethodAt(int line, int column)
-
getVariableMeaningAt
public java.lang.String[] getVariableMeaningAt(int line, int column, java.lang.String variable)
-
getVariableMeaningAt
public java.lang.String[] getVariableMeaningAt(GeneratedLocation location, java.lang.String variable)
-
getFollowingLines
public SourceLocation[] getFollowingLines(SourceLocation location)
-
getFieldMeaning
public java.lang.String getFieldMeaning(java.lang.String className, java.lang.String jsName)
-
getClassNameByJsName
public java.lang.String getClassNameByJsName(java.lang.String className)
-
getCallSite
public DebuggerCallSite getCallSite(GeneratedLocation location)
-
getCallSite
public DebuggerCallSite getCallSite(int line, int column)
-
getMethodEntrances
public GeneratedLocation[] getMethodEntrances(MethodReference methodRef)
-
getDirectOverridingMethods
public MethodReference[] getDirectOverridingMethods(MethodReference methodRef)
-
getOverridingMethods
public MethodReference[] getOverridingMethods(MethodReference methodRef)
-
getCallSites
public DebuggerCallSite[] getCallSites(SourceLocation location)
-
getStatementStartLocations
public java.util.List<GeneratedLocation> getStatementStartLocations()
-
getStatementLocation
public GeneratedLocation getStatementLocation(GeneratedLocation location)
-
getNextStatementLocation
public GeneratedLocation getNextStatementLocation(GeneratedLocation location)
-
write
public void write(java.io.OutputStream output) throws java.io.IOException- Throws:
java.io.IOException
-
writeAsSourceMaps
public void writeAsSourceMaps(java.io.Writer output, java.lang.String sourceRoot, java.lang.String sourceFile) throws java.io.IOException- Throws:
java.io.IOException
-
read
public static DebugInformation read(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public static DebugInformation read(java.io.InputStream input, ReferenceCache referenceCache) throws java.io.IOException
- Throws:
java.io.IOException
-
-