public class ResolvedSourceType extends SourceType
localOccurrenceCountnameoccurrenceCountJEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_DELIMITER_ESCAPE, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LAMBDA_EXPRESSION, JEM_LAMBDA_METHOD, JEM_LOCALVARIABLE, JEM_METHOD, JEM_MODULAR_CLASSFILE, JEM_MODULE, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_STRING, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, NO_STRINGS, parentANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_MODULE, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER| Constructor and Description |
|---|
ResolvedSourceType(JavaElement parent,
java.lang.String name,
java.lang.String uniqueKey) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFullyQualifiedParameterizedName()
Returns this type's fully qualified name using a '.' enclosing type separator
followed by its type parameters between angle brackets if it is a generic type.
|
java.lang.String |
getKey()
Returns the binding key for this type only if the given type is
resolved. |
boolean |
isResolved()
Returns whether this type represents a resolved type.
|
protected void |
toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
Debugging purposes
|
JavaElement |
unresolved() |
closing, codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, createField, createInitializer, createMethod, createType, equals, findMethods, getAnnotations, getChildrenForCategory, getClassFile, getDeclaringType, getElementType, getField, getFields, getFullyQualifiedName, getFullyQualifiedName, getHandleFromMemento, getInitializer, getInitializers, getMethod, getMethods, getOccurrenceCountSignature, getPackageFragment, getPrimaryElement, getSuperclassName, getSuperclassTypeSignature, getSuperInterfaceNames, getSuperInterfaceTypeSignatures, getType, getTypeParameter, getTypeParameters, getTypeParameterSignatures, getTypeQualifiedName, getTypeQualifiedName, getTypes, isAnnotation, isAnonymous, isClass, isEnum, isInterface, isLambda, isLocal, isMember, isRecord, loadTypeHierachy, loadTypeHierachy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, resolvedgetElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getKey, getTypeQualifiedName, resolveType, resolveTypeareSimilarMethods, convertConstant, findMethods, getCategories, getFlags, getHandleMementoDelimiter, getJavadocRange, getNameRange, getOuterMostLocalContext, getType, getTypeRoot, isBinary, isMainMethod, isReadOnly, readableNamecopy, createElementInfo, delete, findNode, generateInfos, getAnnotation, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, resource, toStringNameappendEscapedDelimiter, close, escapeMementoName, exists, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, hashCode, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringWithAncestors, toStringWithAncestors, validateAndCacheclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetElementName, resolveType, resolveTypegetCategories, getCompilationUnit, getFlags, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinaryexists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownexists, getNameRange, getSource, getSourceRangecopy, delete, move, renamegetChildren, hasChildrengetAnnotationpublic ResolvedSourceType(JavaElement parent, java.lang.String name, java.lang.String uniqueKey)
public java.lang.String getFullyQualifiedParameterizedName()
throws JavaModelException
ITypegetFullyQualifiedParameterizedName in interface ITypegetFullyQualifiedParameterizedName in class SourceTypeJavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource.public java.lang.String getKey()
ITyperesolved.
A binding key is a key that uniquely identifies this type. It allows access
to generic info for parameterized types.
If the given type is not resolved, the returned key is simply the java element's key.
getKey in interface ITypegetKey in class SourceTypeIBinding.getKey(),
BindingKey,
IType.isResolved()public boolean isResolved()
ITypeisResolved in interface ITypeisResolved in class SourceTypeprotected void toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
JavaElementtoStringInfo in class SourceTypeshowResolvedInfo - TODOpublic JavaElement unresolved()
unresolved in class JavaElement