类 StructuredLineNumberInfo
- java.lang.Object
-
- proguard.classfile.attribute.LineNumberInfo
-
- proguard.classfile.attribute.StructuredLineNumberInfo
-
public class StructuredLineNumberInfo extends LineNumberInfo
Line number info with extra information for lines that came from a different source than the current method (e.g. inlined from a different method). Tracking this information is necessary for printing a correct mapping file.The structured line number info contains:
- Source string indicating the originating class/method of the line.
- Optional start/end line number indicating the original line numbers for a block of inlined instructions.
- A list of origins, indicating the transformations these lines underwent, e.g. multiple levels of inlining
- A block ID, that identifies a group of lines that belongs to a singular block.
Since these transformations operate on blocks of lines, and the mapping file identifies blocks rather than singular lines,
StructuredLineNumberInfoobjects are generated through aStructuredLineNumberInfo.Blockobject, which is a factory object that generatesStructuredLineNumberInfos with consistent block IDs.
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classStructuredLineNumberInfo.BlockFactory forStructuredLineNumberInfoobjects.
-
字段概要
-
从类继承的字段 proguard.classfile.attribute.LineNumberInfo
LINE_RANGE_NO_SOURCE, SIMPLE_LINE_NUMBER_BLOCK_ID, u2lineNumber, u2startPC
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 LineNumberInfoBlockgetBlock()StructuredLineNumberInfo.BlockgetBlock(LineOrigin... addedOrigins)intgetBlockId()Get the block ID which identifies related line numbers which form a single block in the mapping file.java.util.List<LineOrigin>getOrigin()Get a chronological list of manipulations that this line went through.java.lang.StringgetSource()Returns a description of the source of the line, if known, or null otherwise.intgetSourceLineEnd()intgetSourceLineStart()java.lang.StringgetSourceMethod()
-
-
-
方法详细资料
-
getSourceMethod
public java.lang.String getSourceMethod()
- 覆盖:
getSourceMethod在类中LineNumberInfo
-
getSourceLineStart
public int getSourceLineStart()
- 覆盖:
getSourceLineStart在类中LineNumberInfo
-
getSourceLineEnd
public int getSourceLineEnd()
- 覆盖:
getSourceLineEnd在类中LineNumberInfo
-
getBlockId
public int getBlockId()
Get the block ID which identifies related line numbers which form a single block in the mapping file.- 覆盖:
getBlockId在类中LineNumberInfo
-
getOrigin
public java.util.List<LineOrigin> getOrigin()
Get a chronological list of manipulations that this line went through. True origin is the first element, followed by any subsequent manipulations (e.g. multiple levels of inlining, copying, etc.).- 覆盖:
getOrigin在类中LineNumberInfo
-
getSource
public java.lang.String getSource()
从类复制的说明:LineNumberInfoReturns a description of the source of the line, if known, or null otherwise. Standard line number entries don't contain information about their source; it is assumed to be the same source file.- 覆盖:
getSource在类中LineNumberInfo
-
getBlock
public LineNumberInfoBlock getBlock()
- 覆盖:
getBlock在类中LineNumberInfo
-
getBlock
public StructuredLineNumberInfo.Block getBlock(LineOrigin... addedOrigins)
-
-