Class ResolvedSourceField

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

public class ResolvedSourceField extends SourceField
Handle representing a source field that is resolved. The uniqueKey contains the genericSignature of the resolved field. Use BindingKey to decode it.
  • Constructor Details

  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: IField
      Returns the binding key for this field only if the given field is resolved. A binding key is a key that uniquely identifies this field. It allows access to generic info for parameterized fields.

      If the given field is not resolved, the returned key is simply the java element's key.

      Specified by:
      getKey in interface IField
      Overrides:
      getKey in class SourceField
      Returns:
      the binding key for this field
      See Also:
      IBinding.getKey(), BindingKey, IField.isResolved()
    • isResolved

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

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

      public JavaElement unresolved()
      Overrides:
      unresolved in class JavaElement