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

« back to all changes in this revision

Viewing changes to src/vm/jvm/runtime/org/perl6/nqp/sixmodel/BoolificationSpec.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.sixmodel;
 
2
 
 
3
/**
 
4
 * Specification of how we turn something into a boolean.
 
5
 */
 
6
public class BoolificationSpec {
 
7
    /**
 
8
     * Boolification mode flags.
 
9
     */
 
10
    public static final int MODE_CALL_METHOD = 0;
 
11
    public static final int MODE_UNBOX_INT = 1;
 
12
    public static final int MODE_UNBOX_NUM = 2;
 
13
    public static final int MODE_UNBOX_STR_NOT_EMPTY = 3;
 
14
    public static final int MODE_UNBOX_STR_NOT_EMPTY_OR_ZERO = 4;
 
15
    public static final int MODE_NOT_TYPE_OBJECT = 5;
 
16
    public static final int MODE_BIGINT = 6;
 
17
    public static final int MODE_ITER = 7;
 
18
    public static final int MODE_HAS_ELEMS = 8;
 
19
    
 
20
    /**
 
21
     * Boolification mode.
 
22
     */
 
23
    public int Mode;
 
24
    
 
25
    /**
 
26
     * A method to call to boolify, if applicable.
 
27
     */
 
28
    public SixModelObject Method;
 
29
}