Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
third_party
bloaty
third_party
capstone
bindings
java
capstone
Systemz.java
Go to the documentation of this file.
1
// Capstone Java binding
2
// By Nguyen Anh Quynh & Dang Hoang Vu, 2013
3
4
package
capstone;
5
6
import
com
.sun.jna.Structure;
7
import
com
.sun.jna.Union;
8
9
import
java
.util.List;
10
import
java
.util.Arrays;
11
12
import
static
capstone
.
Sysz_const
.*;
13
14
public
class
Systemz
{
15
16
public
static
class
MemType
extends
Structure {
17
public
byte
base
;
18
public
byte
index
;
19
public
long
length
;
20
public
long
disp
;
21
22
@Override
23
public
List
getFieldOrder
() {
24
return
Arrays.asList(
"base"
,
"index"
,
"length"
,
"disp"
);
25
}
26
}
27
28
public
static
class
OpValue
extends
Union {
29
public
int
reg
;
30
public
long
imm
;
31
public
MemType
mem
;
32
}
33
34
public
static
class
Operand
extends
Structure {
35
public
int
type
;
36
public
OpValue
value
;
37
38
public
void
read
() {
39
readField(
"type"
);
40
if
(
type
==
SYSZ_OP_MEM
)
41
value
.setType(
MemType
.class);
42
if
(
type
==
SYSZ_OP_IMM
)
43
value
.setType(Long.TYPE);
44
if
(
type
==
SYSZ_OP_REG
||
type
==
SYSZ_OP_ACREG
)
45
value
.setType(Integer.TYPE);
46
if
(
type
==
SYSZ_OP_INVALID
)
47
return
;
48
readField(
"value"
);
49
}
50
51
@Override
52
public
List
getFieldOrder
() {
53
return
Arrays.asList(
"type"
,
"value"
);
54
}
55
}
56
57
public
static
class
UnionOpInfo
extends
Capstone.
UnionOpInfo
{
58
public
int
cc
;
59
public
byte
op_count
;
60
61
public
Operand
[]
op
;
62
63
public
UnionOpInfo
() {
64
op
=
new
Operand
[6];
65
}
66
67
public
void
read
() {
68
readField(
"cc"
);
69
readField(
"op_count"
);
70
op
=
new
Operand
[
op_count
];
71
if
(
op_count
!= 0)
72
readField(
"op"
);
73
}
74
75
@Override
76
public
List
getFieldOrder
() {
77
return
Arrays.asList(
"cc"
,
"op_count"
,
"op"
);
78
}
79
}
80
81
public
static
class
OpInfo
extends
Capstone.
OpInfo
{
82
public
int
cc
;
83
84
public
Operand
[]
op
;
85
86
public
OpInfo
(
UnionOpInfo
op_info) {
87
cc
= op_info.
cc
;
88
op
= op_info.
op
;
89
}
90
}
91
}
capstone.Systemz.UnionOpInfo.getFieldOrder
List getFieldOrder()
Definition:
Systemz.java:76
capstone.Systemz.OpValue.imm
long imm
Definition:
Systemz.java:30
capstone.Systemz.Operand.read
void read()
Definition:
Systemz.java:38
capstone.Systemz.UnionOpInfo.read
void read()
Definition:
Systemz.java:67
capstone.Systemz.OpInfo.OpInfo
OpInfo(UnionOpInfo op_info)
Definition:
Systemz.java:86
capstone.Systemz.OpValue.reg
int reg
Definition:
Systemz.java:29
capstone.Systemz.UnionOpInfo.cc
int cc
Definition:
Systemz.java:58
capstone.Systemz.Operand.type
int type
Definition:
Systemz.java:35
SYSZ_OP_REG
@ SYSZ_OP_REG
= CS_OP_REG (Register operand).
Definition:
systemz.h:40
capstone.Systemz
Definition:
Systemz.java:14
capstone.Systemz.MemType.length
long length
Definition:
Systemz.java:19
SYSZ_OP_ACREG
@ SYSZ_OP_ACREG
Access register operand.
Definition:
systemz.h:43
capstone.Systemz.MemType
Definition:
Systemz.java:16
capstone.Systemz.OpInfo.op
Operand[] op
Definition:
Systemz.java:84
capstone.Systemz.OpInfo
Definition:
Systemz.java:81
capstone.Systemz.Operand.value
OpValue value
Definition:
Systemz.java:36
capstone.Systemz.OpValue.mem
MemType mem
Definition:
Systemz.java:31
capstone.Systemz.MemType.base
byte base
Definition:
Systemz.java:17
capstone
Definition:
Arm.java:4
capstone.Systemz.MemType.getFieldOrder
List getFieldOrder()
Definition:
Systemz.java:23
SYSZ_OP_MEM
@ SYSZ_OP_MEM
= CS_OP_MEM (Memory operand).
Definition:
systemz.h:42
capstone.Systemz.UnionOpInfo
Definition:
Systemz.java:57
java
capstone.Systemz.Operand
Definition:
Systemz.java:34
SYSZ_OP_INVALID
@ SYSZ_OP_INVALID
= CS_OP_INVALID (Uninitialized).
Definition:
systemz.h:39
capstone.Systemz.Operand.getFieldOrder
List getFieldOrder()
Definition:
Systemz.java:52
capstone.Systemz.OpValue
Definition:
Systemz.java:28
SYSZ_OP_IMM
@ SYSZ_OP_IMM
= CS_OP_IMM (Immediate operand).
Definition:
systemz.h:41
capstone.Systemz.OpInfo.cc
int cc
Definition:
Systemz.java:82
capstone.Systemz.UnionOpInfo.op_count
byte op_count
Definition:
Systemz.java:59
com
capstone.Systemz.UnionOpInfo.op
Operand[] op
Definition:
Systemz.java:61
capstone.Systemz.UnionOpInfo.UnionOpInfo
UnionOpInfo()
Definition:
Systemz.java:63
capstone.Sysz_const
Definition:
Sysz_const.java:4
capstone.Systemz.MemType.index
byte index
Definition:
Systemz.java:18
capstone.Systemz.MemType.disp
long disp
Definition:
Systemz.java:20
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:28