轉譯器
Renderer
是工廠類別,整合轉譯器的所有其他元件。
其中包含用來建立常數提供者、轉譯資訊、路徑物件和導覽匣的方法。當中包含轉譯區塊,
如果只想變更現有轉譯器的某個部分 (例如常數),可以將相關的工廠方法設為子類別。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-07-24 (世界標準時間)。
[null,null,["上次更新時間:2023-07-24 (世界標準時間)。"],[[["The `Renderer` is a factory class that groups together all the components of a renderer, including methods for creating constant providers, render info, path objects, and drawers."],["It manages the process of connecting and utilizing these components when rendering a block."],["Customizing specific aspects of a renderer, like constants, can be achieved by subclassing the corresponding factory method."]]],["The `Renderer` class acts as a central factory, managing components like the constant provider, render info, path object, and drawer. It includes methods for creating these elements and orchestrates their interaction during block rendering. Customization of existing renderers is achievable by subclassing specific factory methods within the `Renderer` class, allowing modification of individual parts, like constants. This class essentially bundles and connects all the elements required for rendering a block.\n"]]