⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fieldinstruction.java

📁 代码是一个分类器的实现,其中使用了部分weka的源代码。可以将项目导入eclipse运行
💻 JAVA
字号:
package de.fub.bytecode.generic;import de.fub.bytecode.classfile.ConstantPool;import de.fub.bytecode.classfile.ConstantUtf8;import de.fub.bytecode.classfile.ConstantNameAndType;import de.fub.bytecode.classfile.ConstantCP;import de.fub.bytecode.classfile.*;/** * Super class for the GET/PUTxxx family of instructions. * * @version $Id: FieldInstruction.java,v 1.6 2001/07/03 08:20:18 dahm Exp $ * @author  <A HREF="http://www.berlin.de/~markus.dahm/">M. Dahm</A> */public abstract class FieldInstruction extends FieldOrMethod  implements TypedInstruction {  /**   * Empty constructor needed for the Class.newInstance() statement in   * Instruction.readInstruction(). Not to be used otherwise.   */  FieldInstruction() {}  /**   * @param index to constant pool   */  protected FieldInstruction(short opcode, int index) {    super(opcode, index);  }  /**   * @return mnemonic for instruction with symbolic references resolved   */  public String toString(ConstantPool cp) {    return de.fub.bytecode.Constants.OPCODE_NAMES[opcode] + " " +      cp.constantToString(index, de.fub.bytecode.Constants.CONSTANT_Fieldref);  }    /** @return size of field (1 or 2)   */  protected int getFieldSize(ConstantPoolGen cpg) {    return getType(cpg).getSize();  }  /** @return return type of referenced field   */  public Type getType(ConstantPoolGen cpg) {    return getFieldType(cpg);  }  /** @return type of field   */  public Type getFieldType(ConstantPoolGen cpg) {    return Type.getType(getSignature(cpg));  }  /** @return name of referenced field.   */  public String getFieldName(ConstantPoolGen cpg) {    return getName(cpg);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -