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 72-75
Link Here
|
72 |
* @see SourceRange#isAvailable(ISourceRange) |
72 |
* @see SourceRange#isAvailable(ISourceRange) |
73 |
*/ |
73 |
*/ |
74 |
ISourceRange getSourceRange() throws JavaModelException; |
74 |
ISourceRange getSourceRange() throws JavaModelException; |
|
|
75 |
|
76 |
/** |
77 |
* Returns the name range associated with this element. |
78 |
* |
79 |
* <p>If the element is an {@link IMember}, it returns |
80 |
* the source range of this member's simple name, |
81 |
* or <code>null</code> if this member does not have a name |
82 |
* (for example, an initializer), or if this member does not have |
83 |
* associated source code (for example, a binary type).</p> |
84 |
* |
85 |
* <p>If this element is an {@link IImportDeclaration}, the source range |
86 |
* of this import declaration's name, or <code>null</code> if this import |
87 |
* declaration does not have associated source code (for example, a binary type). |
88 |
* <br>The source range for the name includes the trailing '*' if the call to |
89 |
* {@link IImportDeclaration#isOnDemand()} returns true. |
90 |
* </p> |
91 |
* |
92 |
* <p>If this element is an {@link IPackageDeclaration}, the source range of |
93 |
* this package declaration's name, or <code>null</code> if this package |
94 |
* declaration does not have associated source code (for example, a binary type).</p> |
95 |
* |
96 |
* <p>If this element is an {@link IAnnotation}, the source range of |
97 |
* this annotation's name, or <code>null</code> if this annotation does not have |
98 |
* associated source code (for example, in a binary type).</p> |
99 |
* |
100 |
* <p>If this element is an {@link ITypeParameter}, the source range of this |
101 |
* type parameter's name, or <code>null</code> if this type parameter does not have |
102 |
* associated source code (for example, in a binary type).</p> |
103 |
* |
104 |
* <p>If this element is an {@link ITypeRoot} or {@link IImportContainer}, it |
105 |
* returns null.</p> |
106 |
* |
107 |
* @return the name range associated with this element |
108 |
* @since 3.7 |
109 |
*/ |
110 |
ISourceRange getNameRange() throws JavaModelException; |
75 |
} |
111 |
} |