~ubuntu-branches/ubuntu/vivid/nqp/vivid-proposed

« back to all changes in this revision

Viewing changes to src/vm/jvm/runtime/org/perl6/nqp/runtime/HLLConfig.java

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2013-11-01 12:09:18 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20131101120918-kx51sl0sxl3exsxi
Tags: 2013.10-1
* New upstream release
* Bump versioned (Build-)Depends on parrot
* Update patches
* Install new README.pod
* Fix vcs-field-not-canonical
* Do not install rubyish examples
* Do not Depends on parrot-devel anymore
* Add 07_disable-serialization-tests.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.perl6.nqp.runtime;
 
2
 
 
3
import org.perl6.nqp.sixmodel.SixModelObject;
 
4
 
 
5
/**
 
6
 * Contains configuration specific to a given HLL.
 
7
 */
 
8
public class HLLConfig {
 
9
    /* HLL type roles. */
 
10
    public static final int ROLE_NONE  = 0;
 
11
    public static final int ROLE_INT   = 1;
 
12
    public static final int ROLE_NUM   = 2;
 
13
    public static final int ROLE_STR   = 3;
 
14
    public static final int ROLE_ARRAY = 4;
 
15
    public static final int ROLE_HASH  = 5;
 
16
    public static final int ROLE_CODE  = 6;
 
17
    
 
18
    /**
 
19
     * HLL name.
 
20
     */
 
21
    public String name;
 
22
    
 
23
    /**
 
24
     * The types the languages wish to get things boxed as.
 
25
     */
 
26
    public SixModelObject intBoxType;
 
27
    public SixModelObject numBoxType;
 
28
    public SixModelObject strBoxType;
 
29
    
 
30
    /**
 
31
     * The type to use for nqp::list(...)
 
32
     */
 
33
    public SixModelObject listType;
 
34
    
 
35
    /**
 
36
     * The type to use for nqp::hash(...)
 
37
     */
 
38
    public SixModelObject hashType;
 
39
    
 
40
    /**
 
41
     * The type to use for slurpy arrays.
 
42
     */
 
43
    public SixModelObject slurpyArrayType;
 
44
    
 
45
    /**
 
46
     * The type to use for slurpy hashes.
 
47
     */
 
48
    public SixModelObject slurpyHashType;
 
49
    
 
50
    /**
 
51
     * The type to use for array iteration (should have VMIter REPR).
 
52
     */
 
53
    public SixModelObject arrayIteratorType;
 
54
    
 
55
    /**
 
56
     * The type to use for hash iteration (should have VMIter REPR).
 
57
     */
 
58
    public SixModelObject hashIteratorType;
 
59
    
 
60
    /**
 
61
     * The type to construct for exceptions (should have VMException REPR).
 
62
     */
 
63
    public SixModelObject exceptionType;
 
64
    
 
65
    /**
 
66
     * The type to construct for IO handles.
 
67
     */
 
68
    public SixModelObject ioType;
 
69
    
 
70
    /**
 
71
     * HLL interop types.
 
72
     */
 
73
    public SixModelObject foreignTypeInt;
 
74
    public SixModelObject foreignTypeNum;
 
75
    public SixModelObject foreignTypeStr;
 
76
    public SixModelObject nullValue;
 
77
    
 
78
    /**
 
79
     * HLL interop mappers.
 
80
     */
 
81
    public SixModelObject foreignTransformInt;
 
82
    public SixModelObject foreignTransformNum;
 
83
    public SixModelObject foreignTransformStr;
 
84
    public SixModelObject foreignTransformArray;
 
85
    public SixModelObject foreignTransformHash;
 
86
    public SixModelObject foreignTransformCode;
 
87
    public SixModelObject foreignTransformAny;
 
88
    
 
89
    /**
 
90
     * Block exit handler, for those that need it.
 
91
     */
 
92
    public SixModelObject exitHandler;
 
93
}