FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java_util/Sources/Enumeration.swift at 1.0.10 · SwiftJava/java_util · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
SwiftJava
/
java_util
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
7
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
java_util
/
Sources
/
Enumeration.swift
Copy path
More file actions
More file actions
Latest commit
History
History
History
55 lines (32 loc) · 1.86 KB
Breadcrumbs
java_util
/
Sources
/
Enumeration.swift
Copy path
File metadata and controls
55 lines (32 loc) · 1.86 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
java_swift
import
java_lang
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// JAVA_HOME: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home ///
/// Tue Dec 20 11:30:12 GMT 2016 ///
/// interface java.util.Enumeration ///
public
protocol
Enumeration
:
JavaProtocol
{
/// public abstract boolean java.util.Enumeration.hasMoreElements()
func
hasMoreElements
(
)
->
Bool
/// public abstract java.lang.Object java.util.Enumeration.nextElement()
func
nextElement
(
)
->
java_lang
.
JavaObject
!
}
open
class
EnumerationForward
:
JNIObjectForward
,
Enumeration
{
private
static
var
EnumerationJNIClass
:
jclass
?
/// public abstract boolean java.util.Enumeration.hasMoreElements()
private
static
var
hasMoreElements_MethodID_3
:
jmethodID
?
open
func
hasMoreElements
(
)
->
Bool
{
var
__args
=
[
jvalue
]
(
repeating
:
jvalue
(
)
,
count
:
1
)
var
__locals
=
[
jobject
]
(
)
let
__return
=
JNIMethod
.
CallBooleanMethod
(
object
:
javaObject
,
methodName
:
"
hasMoreElements
"
,
methodSig
:
"
()Z
"
,
methodCache
:
&
EnumerationForward
.
hasMoreElements_MethodID_3
,
args
:
&
__args
,
locals
:
&
__locals
)
return
JNIType
.
decode
(
type
:
Bool
(
)
,
from
:
__return
)
}
/// public abstract java.lang.Object java.util.Enumeration.nextElement()
private
static
var
nextElement_MethodID_4
:
jmethodID
?
open
func
nextElement
(
)
->
java_lang
.
JavaObject
!
{
var
__args
=
[
jvalue
]
(
repeating
:
jvalue
(
)
,
count
:
1
)
var
__locals
=
[
jobject
]
(
)
let
__return
=
JNIMethod
.
CallObjectMethod
(
object
:
javaObject
,
methodName
:
"
nextElement
"
,
methodSig
:
"
()Ljava/lang/Object;
"
,
methodCache
:
&
EnumerationForward
.
nextElement_MethodID_4
,
args
:
&
__args
,
locals
:
&
__locals
)
defer
{
JNI
.
DeleteLocalRef
(
__return
)
}
return
__return
!=
nil
?
java_lang
.
JavaObject
(
javaObject
:
__return
)
:
nil
}
}
Back
|
FazBrowse Home
|
New Git URL