com.iohao.game.common.kit.asm.FieldRefInfo Maven / Gradle / Ivy
/*
* # iohao.com . 渔民小镇
* Copyright (C) 2021 - 2022 double joker ([email protected]) . All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License..
*/
package com.iohao.game.common.kit.asm;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.ToString;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import java.io.Serializable;
import java.lang.reflect.Field;
/**
* 字段信息 - 对应类的成员属性
*
* name
* age
*
*
* 不能提供私有属性的直接方法
* 属性必须拥有 getter setter
* 如果要调用私有属性, 使用 Field
*
*
* @author 渔民小镇
* @date 2022-01-02
*/
@ToString
@Getter
@Accessors(chain = true)
@FieldDefaults(level = AccessLevel.PACKAGE)
public class FieldRefInfo implements Serializable {
private static final long serialVersionUID = -5717006947739357125L;
/** 字段名 */
String fieldName;
/** 返回值类型 */
Class> returnType;
/** 字段对应的 get 方法下标 */
int methodGetIndex;
/** 字段对应的 set 方法下标 */
int methodSetIndex;
/** 字段对应的 get 方法名 */
String methodGetName;
/** 字段对应的 set 方法名 */
String methodSetName;
/** 原生字段 */
Field field;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy