public class PatchApplier extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PatchApplier.ApplyPatchOptions
应用补丁选项
|
| 构造器和说明 |
|---|
PatchApplier() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
applyPatch(String source,
String patch)
应用补丁到源文本
|
static String |
applyPatch(String source,
StructuredPatch patch)
应用结构化补丁到源文本
|
static String |
applyPatch(String source,
StructuredPatch patch,
PatchApplier.ApplyPatchOptions options)
应用结构化补丁到源文本(带选项)
|
public static String applyPatch(String source, String patch)
source - 源文本patch - 补丁(字符串或结构化补丁)public static String applyPatch(String source, StructuredPatch patch)
source - 源文本patch - 结构化补丁public static String applyPatch(String source, StructuredPatch patch, PatchApplier.ApplyPatchOptions options)
source - 源文本patch - 结构化补丁options - 应用选项Copyright © 2025. All rights reserved.