Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 32-37
Link Here
|
32 |
CATEGORIES = { REF, ANNOTATION_REF }, |
32 |
CATEGORIES = { REF, ANNOTATION_REF }, |
33 |
CATEGORIES_ANNOT_REF = { ANNOTATION_REF }; |
33 |
CATEGORIES_ANNOT_REF = { ANNOTATION_REF }; |
34 |
private char[][] categories; |
34 |
private char[][] categories; |
|
|
35 |
char typeSuffix = TYPE_SUFFIX; |
35 |
|
36 |
|
36 |
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) { |
37 |
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) { |
37 |
this(matchRule); |
38 |
this(matchRule); |
Lines 58-71
Link Here
|
58 |
* Instantiate a type reference pattern with additional information for generics search |
59 |
* Instantiate a type reference pattern with additional information for generics search |
59 |
*/ |
60 |
*/ |
60 |
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int matchRule) { |
61 |
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int matchRule) { |
61 |
this(qualification, simpleName, typeSignature, 0, matchRule); |
62 |
this(qualification, simpleName, typeSignature, 0, TYPE_SUFFIX, matchRule); |
|
|
63 |
} |
64 |
/* |
65 |
* Instantiate a type reference pattern with additional information for generics search and search elements nature |
66 |
*/ |
67 |
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, char typeSuffix, int matchRule) { |
68 |
this(qualification, simpleName, typeSignature, 0, typeSuffix, matchRule); |
62 |
} |
69 |
} |
63 |
|
70 |
|
64 |
/* |
71 |
/* |
65 |
* Instanciate a type reference pattern with additional information for generics search and fine grain information |
72 |
* Instanciate a type reference pattern with additional information for generics search, search elements nature and fine grain information |
66 |
*/ |
73 |
*/ |
67 |
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int limitTo, int matchRule) { |
74 |
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int limitTo, char typeSuffix, int matchRule) { |
68 |
this(qualification, simpleName,matchRule); |
75 |
this(qualification, simpleName,matchRule); |
|
|
76 |
this.typeSuffix = typeSuffix; |
69 |
if (typeSignature != null) { |
77 |
if (typeSignature != null) { |
70 |
// store type signatures and arguments |
78 |
// store type signatures and arguments |
71 |
this.typeSignatures = Util.splitTypeLevelsSignature(typeSignature); |
79 |
this.typeSignatures = Util.splitTypeLevelsSignature(typeSignature); |