Class LayoutDiagnostics
java.lang.Object
io.leandev.appfuse.report.internal.layout.LayoutDiagnostics
一次 render 的 diagnostic 收集器
同一代碼、同一 location 只記一次;缺字以 code point 去重。ERROR 以 fail(String, String, String) 回報並立即停止排版。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription回報 ERROR 並停止排版voidlist()voidmissingGlyph(int codePoint, String location) 缺字以 code point 去重,location 記第一次出現的位置void
-
Constructor Details
-
LayoutDiagnostics
public LayoutDiagnostics()
-
-
Method Details
-
warn
-
info
-
missingGlyph
缺字以 code point 去重,location 記第一次出現的位置 -
fail
回報 ERROR 並停止排版- Returns:
- 永不回傳;宣告回傳型別讓呼叫端可寫
throw diagnostics.fail(...)
-
list
-