Serialized Form
-
Package org.matwoess.jsourceprofiler.tool.model
-
Class org.matwoess.jsourceprofiler.tool.model.Block
class Block extends Object implements Serializable-
Serialized Fields
-
beg
CodePosition beg
The start position of the block in the source file. -
blockType
BlockType blockType
The type of the block (one ofBlockType). -
clazz
JClass clazz
The class this block belongs to. -
codeRegions
List<CodeRegion> codeRegions
The code regions of this block. Should never be empty as long asBlockType.hasCounter()is true. -
controlBreak
ControlBreak controlBreak
The control flow break of this block. Null if this block is not ending with one. -
end
CodePosition end
The end position of the block in the source file. -
id
int id
The unique identifier of this block. -
incInsertOffset
int incInsertOffset
The offset for inserting the block's counter-statement. Important for constructor blocks. -
innerBlocks
List<Block> innerBlocks
The list of nested blocks for this block. Empty by default. -
isSingleStatement
boolean isSingleStatement
Whether this block is a single statement block (no curly braces). -
labels
List<String> labels
The labels associated with this block. Empty by default. -
method
Method method
The method this block belongs to. -
parentBlock
Block parentBlock
The outer block surrounding this block.
-
-
-
Record Class org.matwoess.jsourceprofiler.tool.model.CodePosition
class CodePosition extends Record implements Serializable -
Class org.matwoess.jsourceprofiler.tool.model.CodeRegion
class CodeRegion extends Object implements Serializable-
Serialized Fields
-
beg
CodePosition beg
The start position of the code region in the source file. -
block
Block block
The block this region belongs to. -
dependentBlocks
List<Block> dependentBlocks
The list of dependent control break blocks, used to calculate the effective hit-count of the current region. -
end
CodePosition end
The end position of the code region in the source file. -
id
int id
The unique identifier of this region.
-
-
-
Record Class org.matwoess.jsourceprofiler.tool.model.ControlBreak
class ControlBreak extends Record implements Serializable-
Serialized Fields
-
kind
ControlBreak.Kind kind
The field for thekindrecord component. -
label
String label
The field for thelabelrecord component.
-
-
-
Class org.matwoess.jsourceprofiler.tool.model.JavaFile
class JavaFile extends Object implements Serializable-
Serialization Methods
-
readObject
Custom deserialization method, reading paths from strings.- Parameters:
ois- the input stream- Throws:
IOException- if any IO error occursClassNotFoundException- if any class cannot be found
-
writeObject
Custom serialization method, storing paths as strings.- Parameters:
oos- the output stream- Throws:
IOException- if any IO error occurs
-
-
Serialized Fields
-
beginOfImports
int beginOfImports
The beginning of the imports section in the file (after the package declaration and comments/copyright). -
foundBlocks
List<Block> foundBlocks
The list of found blocks inside this file. -
packageName
String packageName
The package name of the file (if any). -
topLevelClasses
List<JClass> topLevelClasses
The list of all top-level classes in this file.
-
-
-
Class org.matwoess.jsourceprofiler.tool.model.JClass
class JClass extends Object implements Serializable-
Serialized Fields
-
classBlocks
List<Block> classBlocks
The list of class-level blocks inside this class. -
classType
ClassType classType
The type of the class (one ofClassType). -
innerClasses
List<JClass> innerClasses
The list of nested classes inside this class. -
methods
List<Method> methods
The list of methods in this class. -
name
String name
The name of the class. -
packageName
String packageName
The package name of the class (if any). -
parentClass
JClass parentClass
The parent class of this class (if nested).
-
-
-
Class org.matwoess.jsourceprofiler.tool.model.Method
class Method extends Object implements Serializable
-