View | Details | Raw Unified | Return to bug 177386
Collapse All | Expand All

(-)search/org/eclipse/jdt/core/search/TypeNameMatchRequestor.java (-7 / +5 lines)
Lines 25-32 Link Here
25
 * 	org.eclipse.core.runtime.IProgressMonitor monitor)} method.
25
 * 	org.eclipse.core.runtime.IProgressMonitor monitor)} method.
26
 * Only top-level and member types are reported. Local types are not reported.
26
 * Only top-level and member types are reported. Local types are not reported.
27
 * <p>
27
 * <p>
28
 * Although {@link TypeNameRequestor} only reports type names information (e.g. package, enclosing types, simple name, modifiers, etc.),
28
 * While {@link TypeNameRequestor} only reports type names information (e.g. package, enclosing types, simple name, modifiers, etc.),
29
 * this one reports {@link TypeNameMatch} objects instead which stored these information.
29
 * this class reports {@link TypeNameMatch} objects instead, which store this information and can return
30
 * an {@link org.eclipse.jdt.core.IType} handle.
31
 * </p>
30
 * <p>
32
 * <p>
31
 * This class may be subclassed by clients.
33
 * This class may be subclassed by clients.
32
 * </p>
34
 * </p>
Lines 39-50 Link Here
39
	/**
41
	/**
40
	 * Accepts a type name match ({@link TypeNameMatch}) which contains top-level or a member type
42
	 * Accepts a type name match ({@link TypeNameMatch}) which contains top-level or a member type
41
	 * information as package name, enclosing types names, simple type name, modifiers, etc.
43
	 * information as package name, enclosing types names, simple type name, modifiers, etc.
42
	 * <p>
43
	 * The default implementation of this method does nothing.
44
	 * Subclasses should override.
45
	 * </p>
46
	 *
44
	 *
47
	 * @param match the match which contains all type information.
45
	 * @param match the match which contains all type information
48
	 */
46
	 */
49
	public abstract void acceptTypeNameMatch(TypeNameMatch match);
47
	public abstract void acceptTypeNameMatch(TypeNameMatch match);
50
}
48
}
(-)search/org/eclipse/jdt/core/search/TypeNameMatch.java (-7 / +7 lines)
Lines 13-25 Link Here
13
import org.eclipse.jdt.core.*;
13
import org.eclipse.jdt.core.*;
14
14
15
/**
15
/**
16
 * A match collected while searching for {@link SearchEngine}
16
 * A match collected while {@link SearchEngine searching} for 
17
 * all type names methods using a {@link TypeNameRequestor requestor}.
17
 * all type names methods using a {@link TypeNameRequestor requestor}.
18
 * <p>
18
 * <p>
19
 * User can get type from this match using {@link #getType()} method.
19
 * The type of this match is available from {@link #getType()}.
20
 * </p>
20
 * </p>
21
 * <p>
21
 * <p>
22
 * This class is intented to be overridden by clients.
22
 * This class is intended to be overridden by clients.
23
 * </p>
23
 * </p>
24
 * 
24
 * 
25
 * @see TypeNameMatchRequestor
25
 * @see TypeNameMatchRequestor
Lines 30-36 Link Here
30
public abstract class TypeNameMatch {
30
public abstract class TypeNameMatch {
31
31
32
/**
32
/**
33
 * Returns the matched type fully qualified name using '.' character
33
 * Returns the matched type's fully qualified name using '.' character
34
 * as separator (e.g. package name + '.' enclosing type names + '.' simple name).
34
 * as separator (e.g. package name + '.' enclosing type names + '.' simple name).
35
 * 
35
 * 
36
 * @see #getType()
36
 * @see #getType()
Lines 114-120 Link Here
114
 * @see IMember#getDeclaringType()
114
 * @see IMember#getDeclaringType()
115
 * 
115
 * 
116
 * @throws NullPointerException if matched type is <code> null</code>
116
 * @throws NullPointerException if matched type is <code> null</code>
117
 * @return Name of the type container
117
 * @return name of the type container
118
 */
118
 */
119
public String getTypeContainerName() {
119
public String getTypeContainerName() {
120
	IType outerType = getType().getDeclaringType();
120
	IType outerType = getType().getDeclaringType();
Lines 126-139 Link Here
126
}
126
}
127
127
128
/**
128
/**
129
 * Returns the matched type qualified name using '.' character
129
 * Returns the matched type's type qualified name using '.' character
130
 * as separator (e.g. enclosing type names + '.' + simple name).
130
 * as separator (e.g. enclosing type names + '.' + simple name).
131
 * 
131
 * 
132
 * @see #getType()
132
 * @see #getType()
133
 * @see IType#getTypeQualifiedName(char)
133
 * @see IType#getTypeQualifiedName(char)
134
 * 
134
 * 
135
 * @throws NullPointerException if matched type is <code> null</code>
135
 * @throws NullPointerException if matched type is <code> null</code>
136
 * @return Fully qualified type name of the type
136
 * @return fully qualified type name of the type
137
 */
137
 */
138
public String getTypeQualifiedName() {
138
public String getTypeQualifiedName() {
139
	return getType().getTypeQualifiedName('.');
139
	return getType().getTypeQualifiedName('.');

Return to bug 177386