Class ResolvedBinaryType

All Implemented Interfaces:
IAnnotatable, IJavaElement, IMember, IParent, ISourceManipulation, ISourceReference, IType, SuffixConstants, org.eclipse.core.runtime.IAdaptable

public class ResolvedBinaryType extends BinaryType
Handle representing a binary 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 BinaryType
      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 BinaryMember
      Returns:
      the binding key for this type
      See Also:
    • getKey

      public String getKey(boolean forceOpen) throws JavaModelException
      Overrides:
      getKey in class BinaryType
      Throws:
      JavaModelException
      See Also:
      • invalid reference
        org.eclipse.jdt.internal.compiler.lookup.Binding#computeUniqueKey()
    • 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 BinaryType
      Returns:
      whether this type represents a resolved type.
    • toStringInfo

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

      public BinaryType unresolved()
      Overrides:
      unresolved in class JavaElement