JVM学习笔记-方法信息(Method Information)

31 篇文章 0 订阅
9 篇文章 0 订阅

 

For each method declared in the type, the following information must be stored in the method area. As with fields, the order in which the methods are declared by the class or interface must be recorded as well as the data. Hereís the list:

对于类型中声明的每一个方法,方法区中必须保存下面的信息。和字段一样,这些方法在类或者接口中的生命顺序也必须保存。下面是方法信息的清单:

  • The method's name
  • 方法名
  • The method's return type (or void)
  • 方法的返回类型(或void)
  • The number and types (in order) of the method's parameters
  • 方法参数的数量和类型(按声明顺序)
  • The method's modifiers (some subset of public, private, protected, static, final, synchronized, native, abstract)
  • 方法的修饰符(public,private,protected,static,final,volatile,transient的某个子集)

In addition to the items listed above, the following information must also be stored with each method that is not abstract or native:

除上面的清单中列出的条目之外,如果某个方法不是抽象的和本地的,它还必须保存下列信息:

  • The method's bytecodes
  • 方法的字节码(bytecodes)
  • The sizes of the operand stack and local variables sections of the method's stack frame (these are described in a later section of this chapter)
  • 操作数栈和该方法的栈帧中的局部变量区的大小
  • An exception table (this is described in Chapter 17, "Exceptions")
  • 异常表

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值