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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
# File 'lib/javonet-ruby-sdk/utils/command_type.rb', line 40
def self.get_name(command_number)
case command_number
when 0
return 'VALUE'
when 1
return 'LOAD_LIBRARY'
when 2
return 'INVOKE_STATIC_METHOD'
when 3
return 'GET_STATIC_FIELD'
when 4
return 'SET_STATIC_FIELD'
when 5
return 'CREATE_CLASS_INSTANCE'
when 6
return 'GET_TYPE'
when 7
return 'REFERENCE'
when 8
return 'GET_MODULE'
when 9
return 'INVOKE_INSTANCE_METHOD'
when 10
return 'EXCEPTION'
when 11
return 'HEART_BEAT'
when 12
return 'CAST'
when 13
return 'GET_INSTANCE_FIELD'
when 14
return 'OPTIMIZE'
when 15
return 'GENERATE_LIB'
when 16
return 'INVOKE_GLOBAL_METHOD'
when 17
return 'DESTRUCT_REFERENCE'
when 18
return 'ARRAY_REFERENCE'
when 19
return 'ARRAY_GET_ITEM'
when 20
return 'ARRAY_GET_SIZE'
when 21
return 'ARRAY_GET_RANK'
when 22
return 'ARRAY_SET_ITEM'
when 23
return 'ARRAY'
when 24
return 'RETRIEVE_ARRAY'
when 25
return 'SET_INSTANCE_FIELD'
when 26
return 'INVOKE_GENERIC_STATIC_METHOD'
when 27
return 'INVOKE_GENERIC_METHOD'
when 28
return 'GET_ENUM_ITEM'
when 29
return 'GET_ENUM_NAME'
when 30
return 'GET_ENUM_VALUE'
when 31
return 'AS_REF'
when 32
return 'AS_OUT'
when 33
return 'GET_REF_VALUE'
when 34
return 'ENABLE_NAMESPACE'
when 35
return 'ENABLE_TYPE'
when 36
return 'CREATE_NULL'
else
raise 'Unknown command type'
end
end
|