Class ResolvedBinaryType
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JavaElement
org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
org.aspectj.org.eclipse.jdt.internal.core.Member
org.aspectj.org.eclipse.jdt.internal.core.NamedMember
org.aspectj.org.eclipse.jdt.internal.core.BinaryMember
org.aspectj.org.eclipse.jdt.internal.core.BinaryType
org.aspectj.org.eclipse.jdt.internal.core.ResolvedBinaryType
- All Implemented Interfaces:
IAnnotatable, IJavaElement, IMember, IParent, ISourceManipulation, ISourceReference, IType, SuffixConstants, org.eclipse.core.runtime.IAdaptable
Handle representing a binary type that is resolved.
The uniqueKey contains the genericTypeSignature of the resolved type. Use BindingKey to decode it.
-
Field Summary
Fields inherited from class BinaryType
EMPTY_JAVADOCFields inherited from class NamedMember
nameFields inherited from class JavaElement
JEM_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_STRINGSFields inherited from interface IJavaElement
ANNOTATION, 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_PARAMETERFields inherited from interface SuffixConstants
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA -
Constructor Summary
ConstructorsConstructorDescriptionResolvedBinaryType(JavaElement parent, String name, String uniqueKey) ResolvedBinaryType(JavaElement parent, String name, String uniqueKey, int occurrenceCount) -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.getKey()Returns the binding key for this type only if the given type isresolved.getKey(boolean forceOpen) booleanReturns whether this type represents a resolved type.protected voidtoStringInfo(int tab, StringBuilder buffer, Object info, boolean showResolvedInfo) for debugging onlyMethods inherited from class BinaryType
closing, codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, createField, createInitializer, createMethod, createType, equals, findMethods, getAnnotations, getAttachedJavadoc, getChildren, getChildrenForCategory, getClassFile, getClassFileInfo, getDeclaringType, getElementInfo, getElementInfo, getElementType, getField, getFields, getFlags, getFullyQualifiedName, getFullyQualifiedName, getHandleFromMemento, getInitializer, getInitializers, getJavadocContents, getMethod, getMethods, getPackageFragment, getPermittedSubtypeNames, getRecordComponent, getRecordComponents, getSourceFileName, getSuperclassName, getSuperclassTypeSignature, getSuperInterfaceNames, getSuperInterfaceTypeSignatures, getType, getTypeParameter, getTypeParameters, getTypeParameterSignatures, getTypeQualifiedName, getTypeQualifiedName, getTypes, isAnnotation, isAnonymous, isClass, isEnum, isImplicitlyDeclared, isInterface, isLambda, isLocal, isMember, isRecord, isSealed, loadTypeHierachy, loadTypeHierachy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, resolved, sourceFileName, toStringNameMethods inherited from class BinaryMember
copy, getAnnotations, getCategories, getNameRange, getSourceRange, getStandardAnnotations, isBinary, isStructureKnown, move, rename, setContentsMethods inherited from class NamedMember
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getKey, getOccurrenceCountSignature, getTypeQualifiedName, resolveType, resolveTypeMethods inherited from class Member
areSimilarMethods, convertConstant, findMethods, getHandleMementoDelimiter, getJavadocRange, getOuterMostLocalContext, getType, getTypeRoot, isMainMethod, isMainMethodCandidate, isReadOnly, readableNameMethods inherited from class SourceRefElement
calculateHashCode, createElementInfo, delete, findNode, generateInfos, getAnnotation, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getUnderlyingResource, hasChildren, incOccurrenceCount, resource, setOccurrenceCountMethods inherited from class JavaElement
appendEscapedDelimiter, close, escapeMementoName, exists, getAncestor, getChildrenOfType, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getPrimaryElement, getResource, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, hashCode, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, resetHashCode, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringWithAncestors, toStringWithAncestors, validateAndCacheMethods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface IAnnotatable
getAnnotationMethods inherited from interface IJavaElement
exists, getAncestor, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownMethods inherited from interface IMember
getCategories, getCompilationUnit, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinaryMethods inherited from interface IParent
hasChildrenMethods inherited from interface ISourceManipulation
copy, delete, move, renameMethods inherited from interface ISourceReference
exists, getNameRange, getSource, getSourceRangeMethods inherited from interface IType
getElementName, resolveType, resolveType
-
Constructor Details
-
ResolvedBinaryType
-
ResolvedBinaryType
-
-
Method Details
-
getFullyQualifiedParameterizedName
Description copied from interface:ITypeReturns 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. For example, "p.X<T>", "java.util.Map<java.lang.String, p.X>"- Specified by:
getFullyQualifiedParameterizedNamein interfaceIType- Overrides:
getFullyQualifiedParameterizedNamein classBinaryType- Returns:
- the fully qualified parameterized representation of this type
- Throws:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getKey
Description copied from interface:ITypeReturns the binding key for this type only if the given type isresolved. 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.
- Specified by:
getKeyin interfaceIType- Overrides:
getKeyin classBinaryMember- Returns:
- the binding key for this type
- See Also:
-
getKey
- Overrides:
getKeyin classBinaryType- Throws:
JavaModelException- See Also:
-
isResolved
public boolean isResolved()Description copied from interface:ITypeReturns whether this type represents a resolved type. If a type is resolved, its key contains resolved information.- Specified by:
isResolvedin interfaceIType- Overrides:
isResolvedin classBinaryType- Returns:
- whether this type represents a resolved type.
-
toStringInfo
for debugging only- Overrides:
toStringInfoin classBinaryType- Parameters:
showResolvedInfo- TODO
-
unresolved
- Overrides:
unresolvedin classJavaElement
-