Lines 862-879
Link Here
|
862 |
|
862 |
|
863 |
/** |
863 |
/** |
864 |
* Resolves the given type name within the context of this type (depending on the type hierarchy |
864 |
* Resolves the given type name within the context of this type (depending on the type hierarchy |
865 |
* and its imports). Multiple answers might be found in case there are ambiguous matches. |
865 |
* and its imports). |
866 |
* |
866 |
* <p> |
|
|
867 |
* Multiple answers might be found in case there are ambiguous matches. |
868 |
* </p> |
869 |
* <p> |
867 |
* Each matching type name is decomposed as an array of two strings, the first denoting the package |
870 |
* Each matching type name is decomposed as an array of two strings, the first denoting the package |
868 |
* name (dot-separated) and the second being the type name. |
871 |
* name (dot-separated) and the second being the type name. The package name is empty if it is the |
|
|
872 |
* default package. The type name is the type qualified name using a '.' enclosing type separator. |
873 |
* </p> |
874 |
* <p> |
869 |
* Returns <code>null</code> if unable to find any matching type. |
875 |
* Returns <code>null</code> if unable to find any matching type. |
870 |
* |
876 |
* </p> |
|
|
877 |
*<p> |
871 |
* For example, resolution of <code>"Object"</code> would typically return |
878 |
* For example, resolution of <code>"Object"</code> would typically return |
872 |
* <code>{{"java.lang", "Object"}}</code>. |
879 |
* <code>{{"java.lang", "Object"}}</code>. Another resolution that returns |
|
|
880 |
* <code>{{"", "X.Inner"}}</code> represents the inner type Inner defined in type X in the |
881 |
* default package. |
882 |
* </p> |
873 |
* |
883 |
* |
874 |
* @param typeName the given type name |
884 |
* @param typeName the given type name |
875 |
* @exception JavaModelException if code resolve could not be performed. |
885 |
* @exception JavaModelException if code resolve could not be performed. |
876 |
* @return the resolved type names or <code>null</code> if unable to find any matching type |
886 |
* @return the resolved type names or <code>null</code> if unable to find any matching type |
|
|
887 |
* @see #getTypeQualifiedName(char) |
877 |
*/ |
888 |
*/ |
878 |
String[][] resolveType(String typeName) throws JavaModelException; |
889 |
String[][] resolveType(String typeName) throws JavaModelException; |
879 |
|
890 |
|
Lines 891-908
Link Here
|
891 |
* </p> |
902 |
* </p> |
892 |
* <p> |
903 |
* <p> |
893 |
* Each matching type name is decomposed as an array of two strings, the first denoting the package |
904 |
* Each matching type name is decomposed as an array of two strings, the first denoting the package |
894 |
* name (dot-separated) and the second being the type name. |
905 |
* name (dot-separated) and the second being the type name. The package name is empty if it is the |
|
|
906 |
* default package. The type name is the type qualified name using a '.' enclosing type separator. |
907 |
* </p> |
908 |
* <p> |
895 |
* Returns <code>null</code> if unable to find any matching type. |
909 |
* Returns <code>null</code> if unable to find any matching type. |
896 |
*</p> |
910 |
*</p> |
897 |
*<p> |
911 |
*<p> |
898 |
* For example, resolution of <code>"Object"</code> would typically return |
912 |
* For example, resolution of <code>"Object"</code> would typically return |
899 |
* <code>{{"java.lang", "Object"}}</code>. |
913 |
* <code>{{"java.lang", "Object"}}</code>. Another resolution that returns |
|
|
914 |
* <code>{{"", "X.Inner"}}</code> represents the inner type Inner defined in type X in the |
915 |
* default package. |
900 |
* </p> |
916 |
* </p> |
901 |
* |
917 |
* |
902 |
* @param typeName the given type name |
918 |
* @param typeName the given type name |
903 |
* @param owner the owner of working copies that take precedence over their original compilation units |
919 |
* @param owner the owner of working copies that take precedence over their original compilation units |
904 |
* @exception JavaModelException if code resolve could not be performed. |
920 |
* @exception JavaModelException if code resolve could not be performed. |
905 |
* @return the resolved type names or <code>null</code> if unable to find any matching type |
921 |
* @return the resolved type names or <code>null</code> if unable to find any matching type |
|
|
922 |
* @see #getTypeQualifiedName(char) |
906 |
* @since 3.0 |
923 |
* @since 3.0 |
907 |
*/ |
924 |
*/ |
908 |
String[][] resolveType(String typeName, WorkingCopyOwner owner) throws JavaModelException; |
925 |
String[][] resolveType(String typeName, WorkingCopyOwner owner) throws JavaModelException; |