1 package jp.sourceforge.stigmata.birthmarks.wsp;
\r
3 import jp.sourceforge.stigmata.cflib.Opcode;
\r
8 * @author Haruaki Tamada
\r
10 public class WSPOpcode extends Opcode {
\r
11 private static final long serialVersionUID = 31469629831901737L;
\r
15 public WSPOpcode(int opcode, String name, int argumentCount,
\r
16 int act, Category category) {
\r
17 super(opcode, name, argumentCount, act, category);
\r
20 public WSPOpcode(int opcode, String name, int argumentCount,
\r
21 int act, String category) {
\r
22 super(opcode, name, argumentCount, act, category);
\r
25 public WSPOpcode(Opcode opcode) {
\r
29 public WSPOpcode(int opcode, String name, int argumentCount,
\r
30 int act, Category category, int weight){
\r
31 this(opcode, name, argumentCount, act, category);
\r
36 public WSPOpcode(Opcode opcode, int weight){
\r
42 public void setWeight(int weight){
\r
43 this.weight = weight;
\r
46 public int getWeight(){
\r
51 public String toString(){
\r
52 return String.format(
\r
53 "%d:%s:%d:%f(%s)", getOpcode(), getName(),
\r
54 getWeight(), getAct(), getCategory()
\r