ppt4j 1.0
 
Loading...
Searching...
No Matches
ppt4j.analysis.bytecode.graph.InsnText Class Reference

Public Member Functions

List< String > toLines (AbstractInsnNode[] array)
 
List< String > toLines (AbstractInsnNode node)
 

Member Function Documentation

◆ toLines() [1/2]

List< String > ppt4j.analysis.bytecode.graph.InsnText.toLines ( AbstractInsnNode node)

Converts the given AbstractInsnNode into a list of strings representing the lines of code. The method uses a TraceMethodVisitor to visit the node and extract the text. Each line is trimmed and checked against a PRINT_LENGTH_LIMIT, truncating it if necessary. The final list of lines is returned.

Parameters
nodethe AbstractInsnNode to convert to lines
Returns
a list of strings representing the lines of code extracted from the node

◆ toLines() [2/2]

List< String > ppt4j.analysis.bytecode.graph.InsnText.toLines ( AbstractInsnNode[] array)

Converts an array of AbstractInsnNode objects into a list of strings representing each node.

Parameters
arraythe array of AbstractInsnNode objects to convert
Returns
a list of strings representing each AbstractInsnNode in the input array

The documentation for this class was generated from the following file: