org.apache.bcel.classfile.Method.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中org.apache.bcel.classfile.Method.<init>()方法的一些代码示例,展示了Method.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Method.<init>()方法的具体详情如下:
包路径:org.apache.bcel.classfile.Method
类名称:Method
方法名:<init>

Method.<init>介绍

[英]Empty constructor, all attributes have to be defined via `setXXX' methods. Use at your own risk.
[中]空构造函数,所有属性都必须通过“setXXX”方法定义。使用风险自负。

代码示例

代码示例来源:origin: org.apache.bcel/bcel

/**
 * Read information about the methods of the class.
 * @throws  IOException
 * @throws  ClassFormatException
 */
private void readMethods() throws IOException, ClassFormatException {
  final int methods_count = dataInputStream.readUnsignedShort();
  methods = new Method[methods_count];
  for (int i = 0; i < methods_count; i++) {
    methods[i] = new Method(dataInputStream, constant_pool);
  }
}

代码示例来源:origin: bcel/bcel

/**
 * Read information about the methods of the class.
 * @throws  IOException
 * @throws  ClassFormatException
 */
private final void readMethods() throws IOException, ClassFormatException
{
 int methods_count;
 methods_count = file.readUnsignedShort();
 methods       = new Method[methods_count];
 for(int i=0; i < methods_count; i++)
  methods[i] = new Method(file, constant_pool);
}      
/**

代码示例来源:origin: bcel/bcel

Method m = new Method(access_flags, name_index, signature_index,
     getAttributes(), cp.getConstantPool());

代码示例来源:origin: org.apache.bcel/bcel

final Method m = new Method(super.getAccessFlags(), name_index, signature_index, getAttributes(), _cp
    .getConstantPool());

相关文章