-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOrder.java
69 lines (53 loc) · 1.23 KB
/
Order.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import java.util.*;
public class Order {
int index;
int level;
String opcode = "";
String type = "";
int while_index;
public ArrayList<Long> opers = new ArrayList<>();
public int getindex() {
return this.index;
}
public String type() {
return this.type;
}
public void addOper(Long number){
opers.add(number);
}
public void setOpcode(String name){
this.opcode=name;
}
public void setlevel(int level) { this.level = level; }
public String getOpcode() {
return this.opcode;
}
public int get_level(){
return this.level;
}
public Long get_oper(){
int len=opers.size();
return opers.get(len-1);
}
public String get_opcode(){
return this.opcode;
}
public String get_type(){
return this.type;
}
public Order() {
}
public Order(int index, String opcode) {
this.index = index;
this.opcode = opcode;
this.level = level;
}
public Order(String opcode , int level) {
this.opcode = opcode;
this.level = level;
}
public long last_oper(){
int len = opers.size();
return opers.get(len-1);
}
}