Google Dexmaker 代码解析(四)-- MethodId<D, R>
来源:互联网 发布:单身狗公仔淘宝 编辑:程序博客网 时间:2024/05/29 14:32
MethodId<D, R>
/** * Identifies a method or constructor. * * @param <D> the type declaring this field * @param <R> the return type of this method */
用来定义一个方法或者构造方法。
类结构图
构造方法
对外隐藏构造方法,无法直接new一个实例。
核心方法
- isConstructor方法
/** * Returns true if this method is a constructor for its declaring class. */ public boolean isConstructor() { return name.equals("<init>"); }
判断该方法是否是一个构造方法。
- getDeclaringType方法
public TypeId<D> getDeclaringType() { return declaringType; }
获取该方法所属class的type。
- getReturnType方法
public TypeId<R> getReturnType() { return returnType; }
获取该方法返回结果的type。
- getParameters方法
public List<TypeId<?>> getParameters() { return parameters.asList(); }
以List的形式返回该方法定义的参数type。
0 0
- Google Dexmaker 代码解析(四)-- MethodId<D, R>
- Google Dexmaker 代码解析(三)-- FieldId<D, V>
- Google Dexmaker 代码解析(二)-- TypeId<T>
- Google Dexmaker 代码解析(五)-- Local<T>
- R语言-代码规范(Google's R Style Guide)
- Ryu代码解析(四)
- R*树(四)
- k-d tree代码解析
- k-d tree代码解析
- Faster R-CNN 数据组织代码解析
- java代码 解析EXCEL(四)
- Linux进程状态解析之R、S、D、T、Z
- Linux进程状态解析之R、S、D、T、Z
- Linux进程状态解析之R、S、D、T、Z
- Linux进程状态解析之R、S、D、T、Z
- [进程管理]Linux进程状态解析之R、S、D
- Linux进程状态解析之R、S、D、T、Z
- Linux进程状态解析之R、S、D
- c++ 字符串的连接
- 数据库连接池代理实现(代理设计模式)-续数据库连接池
- 99-SVN 使用
- CentOS7 Vim自动补全插件----YouCompleteMe安装与配置
- ios xmpp研究探索:获取好友列表
- Google Dexmaker 代码解析(四)-- MethodId<D, R>
- 浅谈我对机器学习的理解
- 详细的介绍!CSS3 Transitions, Transforms和Animation使用简介与应用展示
- 100-git源代码管理
- EF6.0 生成的代码中没有注释的解决方法
- Web技术基础
- Burger - UVa 557 概率dp
- 谈谈我眼中的CSDN吧
- MySQL创建用户与授权方法