Lines 377-389
Link Here
|
377 |
* @deprecated Use {@link #validateJavaTypeName(String id, String sourceLevel, String complianceLevel)} instead |
377 |
* @deprecated Use {@link #validateJavaTypeName(String id, String sourceLevel, String complianceLevel)} instead |
378 |
*/ |
378 |
*/ |
379 |
public static IStatus validateJavaTypeName(String name) { |
379 |
public static IStatus validateJavaTypeName(String name) { |
380 |
return validateJavaTypeName(name, CompilerOptions.VERSION_1_3,CompilerOptions.VERSION_1_3); |
380 |
return validateJavaTypeName(name, JavaCore.VERSION_1_3, JavaCore.VERSION_1_3); |
381 |
} |
381 |
} |
382 |
|
382 |
|
383 |
/** |
383 |
/** |
384 |
* Validate the given Java type name, either simple or qualified, for the given source and compliance levels. |
384 |
* Validate the given Java type name, either simple or qualified, for the given source and compliance levels. |
385 |
* For example, <code>"java.lang.Object"</code>, or <code>"Object"</code>. |
385 |
* |
386 |
* <p> |
386 |
* <p>For example, <code>"java.lang.Object"</code>, or <code>"Object"</code>.</p> |
|
|
387 |
* |
388 |
* <p>The source level and compliance level values should be taken from the constant defined inside |
389 |
* {@link JavaCore} class. The constants are named <code>JavaCore#VERSION_1_x</code>, x being set |
390 |
* between '1' and '7'. |
391 |
* </p> |
387 |
* |
392 |
* |
388 |
* @param name the name of a type |
393 |
* @param name the name of a type |
389 |
* @param sourceLevel the source level |
394 |
* @param sourceLevel the source level |
Lines 395-400
Link Here
|
395 |
* otherwise a status object indicating what is wrong with |
400 |
* otherwise a status object indicating what is wrong with |
396 |
* the name |
401 |
* the name |
397 |
* @since 3.3 |
402 |
* @since 3.3 |
|
|
403 |
* @see JavaCore#VERSION_1_1 |
404 |
* @see JavaCore#VERSION_1_2 |
405 |
* @see JavaCore#VERSION_1_3 |
406 |
* @see JavaCore#VERSION_1_4 |
407 |
* @see JavaCore#VERSION_1_5 |
408 |
* @see JavaCore#VERSION_1_6 |
409 |
* @see JavaCore#VERSION_1_7 |
398 |
*/ |
410 |
*/ |
399 |
public static IStatus validateJavaTypeName(String name, String sourceLevel, String complianceLevel) { |
411 |
public static IStatus validateJavaTypeName(String name, String sourceLevel, String complianceLevel) { |
400 |
if (name == null) { |
412 |
if (name == null) { |