FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mercury/java/runtime/TypeFunctors.java at master · Mercury-Language/mercury · GitHub
Mercury-Language
/
mercury
Public
Notifications
You must be signed in to change notification settings
Fork
71
Star
1.1k
Code
Issues
13
Pull requests
8
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mercury
/
java
/
runtime
/
TypeFunctors.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (32 loc) · 1.24 KB
Breadcrumbs
mercury
/
java
/
runtime
/
TypeFunctors.java
Copy path
File metadata and controls
35 lines (32 loc) · 1.24 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
// vim: ts=4 sw=4 expandtab ft=java
//
// Copyright (C) 2001-2003, 2007 The University of Melbourne.
// Copyright (C) 2018 The Mercury team.
// This file is distributed under the terms specified in COPYING.LIB.
//
package
jmercury
.
runtime
;
// XXX In the C backend this was a union.
// It might (eventually) be better to have derived classes for each of
// the unions constructors, and make them all extend this class
// (rather like we do with the generated code from the Mercury compiler.
// That way, we can just use the `instanceof' operator to work out
// what each instance is.
public
class
TypeFunctors
implements
java
.
io
.
Serializable
{
public
java
.
lang
.
Object
functors_init
;
// the above field should contain one of the following types:
public
DuFunctorDesc
[]
functors_du
() {
return
(
DuFunctorDesc
[])
functors_init
;
}
public
EnumFunctorDesc
[]
functors_enum
() {
return
(
EnumFunctorDesc
[])
functors_init
;
}
public
ForeignEnumFunctorDesc
[]
functors_foreign_enum
() {
return
(
ForeignEnumFunctorDesc
[])
functors_init
;
}
public
NotagFunctorDesc
functors_notag
() {
return
(
NotagFunctorDesc
)
functors_init
;
}
public
TypeFunctors
(
java
.
lang
.
Object
init
) {
functors_init
=
init
;
}
}
Back
|
FazBrowse Home
|
New Git URL