Files
schemaCheck/src/main/java/com/codechecker/cache/schema/FieldSchema.java
2026-08-03 14:48:29 +08:00

24 lines
599 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.codechecker.cache.schema;
import lombok.Value;
/**
* 扁平化后的单个字段节点。path 使用点号分隔,数组元素以 {@code []} 标记。
* 例如:{@code vo.linkList[].id}。
*/
@Value
public class FieldSchema {
/** 字段路径,如 {@code vo.linkList[].id} */
String path;
/** 映射到的 JSON 类型OBJECT / ARRAY / STRING 等) */
JsonType jsonType;
/** 原始 Java 类型简单名或 FQN 片段 */
String javaType;
@Override
public String toString() {
return path + ":" + jsonType + "(" + javaType + ")";
}
}