FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mercury/java/runtime/TypeClassConstraint.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
/
TypeClassConstraint.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (28 loc) · 1023 Bytes
Breadcrumbs
mercury
/
java
/
runtime
/
TypeClassConstraint.java
Copy path
File metadata and controls
33 lines (28 loc) · 1023 Bytes
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
// vim: ts=4 sw=4 expandtab ft=java
//
// Copyright (C) 2004 The University of Melbourne.
// Copyright (C) 2018 The Mercury team.
// This file is distributed under the terms specified in COPYING.LIB.
//
package
jmercury
.
runtime
;
// This corresponds to the C type MR_TypeClassConstraint
// in runtime/mercury_type_info.h.
public
class
TypeClassConstraint
implements
java
.
io
.
Serializable
{
public
TypeClassDeclStruct
tc_constr_type_class
;
public
PseudoTypeInfo
tc_constr_arg_ptis
[];
public
TypeClassConstraint
()
{
}
public
void
init
(
TypeClassDeclStruct
type_class
,
// XXX Object[] should be PseudoTypeInfo[],
// but mlds_to_java.m generates Object[] since
// init_array/1 doesn't give type info
Object
[]
ptis
)
{
tc_constr_type_class
=
type_class
;
tc_constr_arg_ptis
=
new
PseudoTypeInfo
[
ptis
.
length
];
for
(
int
i
=
0
;
i
<
ptis
.
length
;
i
++) {
tc_constr_arg_ptis
[
i
] = (
PseudoTypeInfo
)
ptis
[
i
];
}
}
}
Back
|
FazBrowse Home
|
New Git URL