APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.tools.jdi

pack-priv Class SDE

extends Object
Class Inheritance
Imports
java.io.File, java.util.ArrayList, .List

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
pack-priv class
private static class
pack-priv class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final String
private int
private int
pack-priv String
private int
private int
private SDE.FileTableRecord[]
private static final int
private static final int
private static final int
pack-priv boolean
pack-priv String
private int
private SDE.LineTableRecord[]
pack-priv static final String
private int
pack-priv final String
private int
private SDE.StratumTableRecord[]

Constructor Summary

AccessConstructor and Description
pack-priv
SDE(String sourceDebugExtension)

pack-priv
SDE()

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
pack-priv void
pack-priv List<String>
pack-priv void
createJavaStratum()

A base "Java" stratum is always available, though it is not in the SourceDebugExtension.

pack-priv void
pack-priv void
decode()

Decode a SourceDebugExtension which is in SourceMap format.

private int
pack-priv void
pack-priv void
private int
fileTableIndex(int sti, int fileId)

pack-priv void
pack-priv void
ignoreSection()

Ignore a section we don't know about.

pack-priv void
ignoreWhite()

below functions/methods are written to compile under either Java or C Needed support functions: sdePeek() sdeRead() sdeAdvance() readLine() assureLineTableSize() assureFileTableSize() assureStratumTableSize() syntax() stratumTableIndex(String) Needed support variables: lineTable lineIndex fileTable fileIndex currentFileId Needed types: String Needed constants: NullString

pack-priv boolean
pack-priv void
lineLine()

Parse line translation info.

pack-priv void
pack-priv String
pack-priv int
pack-priv void
pack-priv char
pack-priv char
private int
stiFileTableIndex(int sti, int lti)

private int
stiLineNumber(int sti, int lti, int jplsLine)

private int
stiLineTableIndex(int sti, int jplsLine)

query functions

pack-priv void
storeFile(int fileId, String sourceName, String sourcePath)

pack-priv void
storeLine(int jplsStart, int jplsEnd, int jplsLineInc, int njplsStart, int njplsEnd, int fileId)

pack-priv void
storeStratum(String stratumId)

Until the next stratum section, everything after this is in stratumId - so, store the current indices.

pack-priv SDE.Stratum
stratum(String stratumID)

pack-priv void
stratumSection()

The beginning of a stratum's info

pack-priv int
pack-priv void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BASE_STRATUM_NAMEback to summary
pack-priv static final String BASE_STRATUM_NAME
baseStratumIndexback to summary
private int baseStratumIndex
currentFileIdback to summary
private int currentFileId
defaultStratumIdback to summary
pack-priv String defaultStratumId
defaultStratumIndexback to summary
private int defaultStratumIndex
fileIndexback to summary
private int fileIndex
fileTableback to summary
private SDE.FileTableRecord[] fileTable
INIT_SIZE_FILEback to summary
private static final int INIT_SIZE_FILE
INIT_SIZE_LINEback to summary
private static final int INIT_SIZE_LINE
INIT_SIZE_STRATUMback to summary
private static final int INIT_SIZE_STRATUM
isValidback to summary
pack-priv boolean isValid
jplsFilenameback to summary
pack-priv String jplsFilename
lineIndexback to summary
private int lineIndex
lineTableback to summary
private SDE.LineTableRecord[] lineTable
NullStringback to summary
pack-priv static final String NullString
sdePosback to summary
private int sdePos
sourceDebugExtensionback to summary
pack-priv final String sourceDebugExtension
stratumIndexback to summary
private int stratumIndex
stratumTableback to summary
private SDE.StratumTableRecord[] stratumTable

Constructor Detail

SDEback to summary
pack-priv SDE(String sourceDebugExtension)
SDEback to summary
pack-priv SDE()

Method Detail

assureFileTableSizeback to summary
pack-priv void assureFileTableSize()
assureLineTableSizeback to summary
pack-priv void assureLineTableSize()
assureStratumTableSizeback to summary
pack-priv void assureStratumTableSize()
availableStrataback to summary
pack-priv List<String> availableStrata()
createJavaStratumback to summary
pack-priv void createJavaStratum()

A base "Java" stratum is always available, though it is not in the SourceDebugExtension. Create the base stratum.

createProxyForAbsentSDEback to summary
pack-priv void createProxyForAbsentSDE()
decodeback to summary
pack-priv void decode()

Decode a SourceDebugExtension which is in SourceMap format. This is the entry point into the recursive descent parser.

defaultStratumTableIndexback to summary
private int defaultStratumTableIndex()
fileLineback to summary
pack-priv void fileLine()
fileSectionback to summary
pack-priv void fileSection()
fileTableIndexback to summary
private int fileTableIndex(int sti, int fileId)
ignoreLineback to summary
pack-priv void ignoreLine()
ignoreSectionback to summary
pack-priv void ignoreSection()

Ignore a section we don't know about.

ignoreWhiteback to summary
pack-priv void ignoreWhite()

below functions/methods are written to compile under either Java or C Needed support functions: sdePeek() sdeRead() sdeAdvance() readLine() assureLineTableSize() assureFileTableSize() assureStratumTableSize() syntax() stratumTableIndex(String) Needed support variables: lineTable lineIndex fileTable fileIndex currentFileId Needed types: String Needed constants: NullString

isValidback to summary
pack-priv boolean isValid()
lineLineback to summary
pack-priv void lineLine()

Parse line translation info. Syntax is [ # ] [ , ] : [ , ] CR

lineSectionback to summary
pack-priv void lineSection()
readLineback to summary
pack-priv String readLine()
readNumberback to summary
pack-priv int readNumber()
sdeAdvanceback to summary
pack-priv void sdeAdvance()
sdePeekback to summary
pack-priv char sdePeek()
sdeReadback to summary
pack-priv char sdeRead()
stiFileTableIndexback to summary
private int stiFileTableIndex(int sti, int lti)
stiLineNumberback to summary
private int stiLineNumber(int sti, int lti, int jplsLine)
stiLineTableIndexback to summary
private int stiLineTableIndex(int sti, int jplsLine)

query functions

storeFileback to summary
pack-priv void storeFile(int fileId, String sourceName, String sourcePath)
storeLineback to summary
pack-priv void storeLine(int jplsStart, int jplsEnd, int jplsLineInc, int njplsStart, int njplsEnd, int fileId)
storeStratumback to summary
pack-priv void storeStratum(String stratumId)

Until the next stratum section, everything after this is in stratumId - so, store the current indices.

stratumback to summary
pack-priv SDE.Stratum stratum(String stratumID)
stratumSectionback to summary
pack-priv void stratumSection()

The beginning of a stratum's info

stratumTableIndexback to summary
pack-priv int stratumTableIndex(String stratumId)
syntaxback to summary
pack-priv void syntax()
syntaxback to summary
pack-priv void syntax(String msg)
com.sun.tools.jdi back to summary

private Class SDE.FileTableRecord

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv boolean
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv String
getSourcePath(ReferenceTypeImpl refType)

Return the sourcePath, computing it if not set.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileIdback to summary
pack-priv int fileId
isConvertedback to summary
pack-priv boolean isConverted
sourceNameback to summary
pack-priv String sourceName
sourcePathback to summary
pack-priv String sourcePath

Constructor Detail

FileTableRecordback to summary
private FileTableRecord()

Method Detail

getSourcePathback to summary
pack-priv String getSourcePath(ReferenceTypeImpl refType)

Return the sourcePath, computing it if not set. If set, convert '/' in the sourcePath to the local file separator.

com.sun.tools.jdi back to summary

pack-priv Class SDE.LineStratum

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final ReferenceTypeImpl
private String
private String
private final int

Constructor Summary

AccessConstructor and Description
private
LineStratum(int sti, int lti, ReferenceTypeImpl refType, int jplsLine)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

pack-priv void
getSourceInfo()

Fetch the source name and source path for this line, converting or constructing the source path if needed.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

pack-priv int
pack-priv String
pack-priv String
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

jplsLineback to summary
private final int jplsLine
ltiback to summary
private final int lti
refTypeback to summary
private final ReferenceTypeImpl refType
sourceNameback to summary
private String sourceName
sourcePathback to summary
private String sourcePath
stiback to summary
private final int sti

Constructor Detail

LineStratumback to summary
private LineStratum(int sti, int lti, ReferenceTypeImpl refType, int jplsLine)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

getSourceInfoback to summary
pack-priv void getSourceInfo()

Fetch the source name and source path for this line, converting or constructing the source path if needed.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
lineNumberback to summary
pack-priv int lineNumber()
sourceNameback to summary
pack-priv String sourceName()
sourcePathback to summary
pack-priv String sourcePath()
com.sun.tools.jdi back to summary

private Class SDE.LineTableRecord

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileIdback to summary
pack-priv int fileId
jplsEndback to summary
pack-priv int jplsEnd
jplsLineIncback to summary
pack-priv int jplsLineInc
jplsStartback to summary
pack-priv int jplsStart
njplsEndback to summary
pack-priv int njplsEnd
Annotations
@SuppressWarnings:unused
njplsStartback to summary
pack-priv int njplsStart

Constructor Detail

LineTableRecordback to summary
private LineTableRecord()
com.sun.tools.jdi back to summary

pack-priv Class SDE.Stratum

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
private
Stratum(int sti)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
id()

pack-priv boolean
pack-priv SDE.LineStratum
lineStratum(ReferenceTypeImpl refType, int jplsLine)

pack-priv List<String>
sourceNames(ReferenceTypeImpl refType)

Return all the sourceNames for this stratum.

pack-priv List<String>
sourcePaths(ReferenceTypeImpl refType)

Return all the sourcePaths for this stratum.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

stiback to summary
private final int sti

Constructor Detail

Stratumback to summary
private Stratum(int sti)

Method Detail

idback to summary
pack-priv String id()
isJavaback to summary
pack-priv boolean isJava()
lineStratumback to summary
pack-priv SDE.LineStratum lineStratum(ReferenceTypeImpl refType, int jplsLine)
sourceNamesback to summary
pack-priv List<String> sourceNames(ReferenceTypeImpl refType)

Return all the sourceNames for this stratum. Look from our starting fileIndex up to the starting fileIndex of next stratum - can do this since there is always a terminator stratum. Default sourceName (the first one) must be first.

sourcePathsback to summary
pack-priv List<String> sourcePaths(ReferenceTypeImpl refType)

Return all the sourcePaths for this stratum. Look from our starting fileIndex up to the starting fileIndex of next stratum - can do this since there is always a terminator stratum. Default sourcePath (the first one) must be first.

com.sun.tools.jdi back to summary

private Class SDE.StratumTableRecord

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv String
pack-priv int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileIndexback to summary
pack-priv int fileIndex
idback to summary
pack-priv String id
lineIndexback to summary
pack-priv int lineIndex

Constructor Detail

StratumTableRecordback to summary
private StratumTableRecord()