PageRenderTime 24ms CodeModel.GetById 13ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/cpp/src/main/java/com/google/test/metric/cpp/CPPvariables.java

http://testability-explorer.googlecode.com/
Java | 98 lines | 29 code | 18 blank | 51 comment | 0 complexity | 0c3d48c7ef04c4fe76c8c481d226706d MD5 | raw file
 1package com.google.test.metric.cpp;
 2
 3import java.util.BitSet;
 4
 5/**
 6 * This class provides support for the grammar indexing of parsed tokens.
 7 */
 8class CPPvariables {
 9    /**
10     * Marks an invalid construct.
11     */
12    public static final BitSet QI_INVALID = new BitSet(8);
13
14    /**
15     * Marks a type (includes enum, class, typedefs).
16     */
17    public static final BitSet QI_TYPE = new BitSet(8);
18
19    /**
20     * Marks a destructor.
21     */
22    public static final BitSet QI_DTOR = new BitSet(8);
23
24    /**
25     * Marks a constructor.
26     */
27    public static final BitSet QI_CTOR = new BitSet(8);
28
29    /**
30     * Marks an operator.
31     */
32    public static final BitSet QI_OPERATOR = new BitSet(8);
33
34    /**
35     * Marks a pointer to member.
36     */
37    public static final BitSet QI_PTR_MEMBER = new BitSet(8);
38
39    /**
40     * Marks a variable.
41     */
42    public static final BitSet QI_VAR = new BitSet(8);
43
44    /**
45     * Marks a function.
46     */
47    public static final BitSet QI_FUN = new BitSet(8);
48
49    /**
50     * Marks a ID. Not a type, but could be a var, func...
51     */
52    public static final BitSet QI_ID = new BitSet(8);
53
54    /**
55     * Initialization of the above markers.
56     */
57    static {
58        QI_TYPE.set(0);
59        QI_DTOR.set(1);
60        QI_CTOR.set(2);
61        QI_OPERATOR.set(3);
62        QI_PTR_MEMBER.set(4);
63        QI_ID.set(5);
64        QI_VAR.set(6);
65        QI_FUN.set(7);
66    }
67
68    /**
69     * Maximum template token scan depth.
70     */
71    public static final int MAX_TEMPLATE_TOKEN_SCAN = 200;
72
73    /**
74     * Type def string identifier.
75     */
76    public static final String OT_TYPE_DEF = "otTypeDef";
77
78    /**
79     * Struct string identifier.
80     */
81    public static final String OT_STRUCT = "otStruct";
82
83    /**
84     * Union string identifier.
85     */
86    public static final String OT_UNION = "otUnion";
87
88    /**
89     * Enum string identifier.
90     */
91    public static final String OT_ENUM = "otEnum";
92
93    /**
94     * Class string identifier.
95     */
96    public static final String OT_CLASS = "otClass";
97
98}