KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > core > search > indexing > IIndexConstants


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.core.search.indexing;
12
13 import org.eclipse.jdt.core.search.IJavaSearchConstants;
14
15 public interface IIndexConstants {
16
17     /* index encoding */
18     char[] REF= "ref".toCharArray(); //$NON-NLS-1$
19
char[] METHOD_REF= "methodRef".toCharArray(); //$NON-NLS-1$
20
char[] CONSTRUCTOR_REF= "constructorRef".toCharArray(); //$NON-NLS-1$
21
char[] SUPER_REF = "superRef".toCharArray(); //$NON-NLS-1$
22
char[] TYPE_DECL = "typeDecl".toCharArray(); //$NON-NLS-1$
23
char[] METHOD_DECL= "methodDecl".toCharArray(); //$NON-NLS-1$
24
char[] CONSTRUCTOR_DECL= "constructorDecl".toCharArray(); //$NON-NLS-1$
25
char[] FIELD_DECL= "fieldDecl".toCharArray(); //$NON-NLS-1$
26
char[] OBJECT = "Object".toCharArray(); //$NON-NLS-1$
27
char[][] COUNTS=
28         new char[][] { new char[] {'/', '0'}, new char[] {'/', '1'}, new char[] {'/', '2'}, new char[] {'/', '3'}, new char[] {'/', '4'},
29             new char[] {'/', '5'}, new char[] {'/', '6'}, new char[] {'/', '7'}, new char[] {'/', '8'}, new char[] {'/', '9'}
30     };
31     char CLASS_SUFFIX = 'C';
32     char INTERFACE_SUFFIX = 'I';
33     char ENUM_SUFFIX = 'E';
34     char ANNOTATION_TYPE_SUFFIX = 'A';
35     char TYPE_SUFFIX = 0;
36     char CLASS_AND_ENUM_SUFFIX = IJavaSearchConstants.CLASS_AND_ENUM;
37     char CLASS_AND_INTERFACE_SUFFIX = IJavaSearchConstants.CLASS_AND_INTERFACE;
38     char INTERFACE_AND_ANNOTATION_SUFFIX = IJavaSearchConstants.INTERFACE_AND_ANNOTATION;
39     char SEPARATOR= '/';
40     char SECONDARY_SUFFIX = 'S';
41
42     char[] ONE_STAR = new char[] {'*'};
43     char[][] ONE_STAR_CHAR = new char[][] {ONE_STAR};
44
45     // used as special marker for enclosing type name of local and anonymous classes
46
char ZERO_CHAR = '0';
47     char[] ONE_ZERO = new char[] { ZERO_CHAR };
48     char[][] ONE_ZERO_CHAR = new char[][] {ONE_ZERO};
49
50     int PKG_REF_PATTERN = 0x0001;
51     int PKG_DECL_PATTERN = 0x0002;
52     int TYPE_REF_PATTERN = 0x0004;
53     int TYPE_DECL_PATTERN = 0x0008;
54     int SUPER_REF_PATTERN = 0x0010;
55     int CONSTRUCTOR_PATTERN = 0x0020;
56     int FIELD_PATTERN = 0x0040;
57     int METHOD_PATTERN = 0x0080;
58     int OR_PATTERN = 0x0100;
59     int LOCAL_VAR_PATTERN = 0x0200;
60     int TYPE_PARAM_PATTERN = 0x0400;
61 }
62
Popular Tags