1 12 package org.eclipse.jdt.core; 13 14 import java.io.InputStream ; 15 16 import org.eclipse.core.runtime.IProgressMonitor; 17 18 39 public interface IType extends IMember { 40 66 void codeComplete( 67 char[] snippet, 68 int insertion, 69 int position, 70 char[][] localVariableTypeNames, 71 char[][] localVariableNames, 72 int[] localVariableModifiers, 73 boolean isStatic, 74 ICompletionRequestor requestor) 75 throws JavaModelException; 76 77 111 void codeComplete( 112 char[] snippet, 113 int insertion, 114 int position, 115 char[][] localVariableTypeNames, 116 char[][] localVariableNames, 117 int[] localVariableModifiers, 118 boolean isStatic, 119 ICompletionRequestor requestor, 120 WorkingCopyOwner owner) 121 throws JavaModelException; 122 123 148 void codeComplete( 149 char[] snippet, 150 int insertion, 151 int position, 152 char[][] localVariableTypeNames, 153 char[][] localVariableNames, 154 int[] localVariableModifiers, 155 boolean isStatic, 156 CompletionRequestor requestor) 157 throws JavaModelException; 158 159 192 void codeComplete( 193 char[] snippet, 194 int insertion, 195 int position, 196 char[][] localVariableTypeNames, 197 char[][] localVariableNames, 198 int[] localVariableModifiers, 199 boolean isStatic, 200 CompletionRequestor requestor, 201 WorkingCopyOwner owner) 202 throws JavaModelException; 203 204 205 235 IField createField(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor) 236 throws JavaModelException; 237 238 260 IInitializer createInitializer(String contents, IJavaElement sibling, IProgressMonitor monitor) 261 throws JavaModelException; 262 263 294 IMethod createMethod(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor) 295 throws JavaModelException; 296 297 327 IType createType(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor) 328 throws JavaModelException; 329 330 345 IMethod[] findMethods(IMethod method); 346 347 356 IJavaElement[] getChildrenForCategory(String category) throws JavaModelException; 357 358 364 String getElementName(); 365 366 374 IField getField(String name); 375 376 386 IField[] getFields() throws JavaModelException; 387 388 398 String getFullyQualifiedName(); 399 400 427 String getFullyQualifiedName(char enclosingTypeSeparator); 428 429 438 String getFullyQualifiedParameterizedName() throws JavaModelException; 439 440 449 IInitializer getInitializer(int occurrenceCount); 450 451 461 IInitializer[] getInitializers() throws JavaModelException; 462 463 473 String getKey(); 474 475 491 IMethod getMethod(String name, String [] parameterTypeSignatures); 492 493 505 IMethod[] getMethods() throws JavaModelException; 506 507 513 IPackageFragment getPackageFragment(); 514 515 534 String getSuperclassName() throws JavaModelException; 535 536 551 String getSuperclassTypeSignature() throws JavaModelException; 552 553 578 String [] getSuperInterfaceTypeSignatures() throws JavaModelException; 579 580 602 String [] getSuperInterfaceNames() throws JavaModelException; 603 604 619 String [] getTypeParameterSignatures() throws JavaModelException; 620 621 631 ITypeParameter[] getTypeParameters() throws JavaModelException; 632 633 640 IType getType(String name); 641 642 650 ITypeParameter getTypeParameter(String name); 651 652 664 String getTypeQualifiedName(); 665 666 695 String getTypeQualifiedName(char enclosingTypeSeparator); 696 697 705 IType[] getTypes() throws JavaModelException; 706 707 715 boolean isAnonymous() throws JavaModelException; 716 717 727 boolean isClass() throws JavaModelException; 728 729 741 boolean isEnum() throws JavaModelException; 742 743 753 boolean isInterface() throws JavaModelException; 754 755 767 boolean isAnnotation() throws JavaModelException; 768 769 777 boolean isLocal() throws JavaModelException; 778 779 787 boolean isMember() throws JavaModelException; 788 795 boolean isResolved(); 796 816 ITypeHierarchy loadTypeHierachy(InputStream input, IProgressMonitor monitor) throws JavaModelException; 817 826 ITypeHierarchy newSupertypeHierarchy(IProgressMonitor monitor) throws JavaModelException; 827 828 845 ITypeHierarchy newSupertypeHierarchy(ICompilationUnit[] workingCopies, IProgressMonitor monitor) 846 throws JavaModelException; 847 848 866 ITypeHierarchy newSupertypeHierarchy(IWorkingCopy[] workingCopies, IProgressMonitor monitor) 867 throws JavaModelException; 868 869 887 ITypeHierarchy newSupertypeHierarchy(WorkingCopyOwner owner, IProgressMonitor monitor) 888 throws JavaModelException; 889 890 903 ITypeHierarchy newTypeHierarchy(IJavaProject project, IProgressMonitor monitor) throws JavaModelException; 904 905 927 ITypeHierarchy newTypeHierarchy(IJavaProject project, WorkingCopyOwner owner, IProgressMonitor monitor) throws JavaModelException; 928 929 939 ITypeHierarchy newTypeHierarchy(IProgressMonitor monitor) throws JavaModelException; 940 941 958 ITypeHierarchy newTypeHierarchy(ICompilationUnit[] workingCopies, IProgressMonitor monitor) throws JavaModelException; 959 960 978 ITypeHierarchy newTypeHierarchy(IWorkingCopy[] workingCopies, IProgressMonitor monitor) throws JavaModelException; 979 980 999 ITypeHierarchy newTypeHierarchy(WorkingCopyOwner owner, IProgressMonitor monitor) throws JavaModelException; 1000 1001 1027 String [][] resolveType(String typeName) throws JavaModelException; 1028 1029 1062 String [][] resolveType(String typeName, WorkingCopyOwner owner) throws JavaModelException; 1063} 1064 | Popular Tags |