Class ResolvedSourceType

All Implemented Interfaces:
IAnnotatable, IJavaElement, IMember, IParent, ISourceManipulation, ISourceReference, IType, org.eclipse.core.runtime.IAdaptable
Direct Known Subclasses:
AssistSourceType

public class ResolvedSourceType extends SourceType
Handle representing a source type that is resolved. The uniqueKey contains the genericTypeSignature of the resolved type. Use BindingKey to decode it.
  • Constructor Details

  • Method Details

    • getFullyQualifiedParameterizedName

      public String getFullyQualifiedParameterizedName() throws JavaModelException
      Description copied from interface: IType
      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. For example, "p.X<T>", "java.util.Map<java.lang.String, p.X>"
      Specified by:
      getFullyQualifiedParameterizedName in interface IType
      Overrides:
      getFullyQualifiedParameterizedName in class SourceType
      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

      public String getKey()
      Description copied from interface: IType
      Returns the binding key for this type only if the given type is resolved. 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:
      getKey in interface IType
      Overrides:
      getKey in class SourceType
      Returns:
      the binding key for this type
      See Also:
      IBinding.getKey(), BindingKey, IType.isResolved()
    • isResolved

      public boolean isResolved()
      Description copied from interface: IType
      Returns whether this type represents a resolved type. If a type is resolved, its key contains resolved information.
      Specified by:
      isResolved in interface IType
      Overrides:
      isResolved in class SourceType
      Returns:
      whether this type represents a resolved type.
    • toStringInfo

      protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo)
      Description copied from class: JavaElement
      Debugging purposes
      Overrides:
      toStringInfo in class SourceType
      showResolvedInfo - TODO
    • unresolved

      public JavaElement unresolved()
      Overrides:
      unresolved in class JavaElement