constantfieldref.java
来自「代码是一个分类器的实现,其中使用了部分weka的源代码。可以将项目导入eclip」· Java 代码 · 共 51 行
JAVA
51 行
package de.fub.bytecode.classfile;import de.fub.bytecode.Constants;import java.io.*;/** * This class represents a constant pool reference to a field. * * @version $Id: ConstantFieldref.java,v 1.3 2001/05/09 09:26:57 dahm Exp $ * @author <A HREF="http://www.berlin.de/~markus.dahm/">M. Dahm</A> */public final class ConstantFieldref extends ConstantCP { /** * Initialize from another object. */ public ConstantFieldref(ConstantFieldref c) { super(Constants.CONSTANT_Fieldref, c.getClassIndex(), c.getNameAndTypeIndex()); } /** * Initialize instance from file data. * * @param file input stream * @throw IOException */ ConstantFieldref(DataInputStream file) throws IOException { super(Constants.CONSTANT_Fieldref, file); } /** * @param class_index Reference to the class containing the Field * @param name_and_type_index and the Field signature */ public ConstantFieldref(int class_index, int name_and_type_index) { super(Constants.CONSTANT_Fieldref, class_index, name_and_type_index); } /** * Called by objects that are traversing the nodes of the tree implicitely * defined by the contents of a Java class. I.e., the hierarchy of Fields, * fields, attributes, etc. spawns a tree of objects. * * @param v Visitor object */ public void accept(Visitor v) { v.visitConstantFieldref(this); } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?