Klasse ResolvedBinaryField

Alle implementierten Schnittstellen:
IAnnotatable, IField, IJavaElement, IMember, IParent, ISourceManipulation, ISourceReference, org.eclipse.core.runtime.IAdaptable

public class ResolvedBinaryField extends BinaryMember
Handle representing a binary field that is resolved. The uniqueKey contains the genericSignature of the resolved field. Use BindingKey to decode it.
  • Konstruktordetails

  • Methodendetails

    • getKey

      public String getKey()
      Beschreibung aus Schnittstelle kopiert: 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.

      Angegeben von:
      getKey in Schnittstelle IField
      Setzt außer Kraft:
      getKey in Klasse BinaryMember
      Gibt zurück:
      the binding key for this field
      Siehe auch:
    • getKey

      public String getKey(boolean forceOpen)
      Siehe auch:
    • isResolved

      public boolean isResolved()
      Beschreibung aus Schnittstelle kopiert: IField
      Returns whether this field represents a resolved field. If a field is resolved, its key contains resolved information.
      Angegeben von:
      isResolved in Schnittstelle IField
      Gibt zurück:
      whether this field represents a resolved field.
    • toStringInfo

      protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo)
      Beschreibung aus Klasse kopiert: JavaElement
      Debugging purposes
      Parameter:
      showResolvedInfo - TODO
    • unresolved

      public JavaElement unresolved()
      Setzt außer Kraft:
      unresolved in Klasse JavaElement
    • equals

      public boolean equals(Object o)
      Beschreibung aus Klasse kopiert: JavaElement
      Returns true if this handle represents the same Java element as the given handle. By default, two handles represent the same element if they are identical or if they represent the same type of element, have equal names, parents, and occurrence counts.

      If a subclass has other requirements for equality, this method must be overridden.

      Setzt außer Kraft:
      equals in Klasse SourceRefElement
      Siehe auch:
    • getAnnotations

      public IAnnotation[] getAnnotations() throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IAnnotatable
      Returns the annotations for this element. Returns an empty array if this element has no annotations.
      Angegeben von:
      getAnnotations in Schnittstelle IAnnotatable
      Setzt außer Kraft:
      getAnnotations in Klasse SourceRefElement
      Gibt zurück:
      the annotations of this element, in the order declared in the source, or an empty array if none
      Löst aus:
      JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource.
    • getConstant

      public Object getConstant() throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IField
      Returns the constant value associated with this field or null if this field has none. To have a constant value, the field needs to be final and initialized with a compile-time constant expression.

      For types from source, this currently only works if the field initializer is a literal (returns null for more complex constant expressions).

      For primitive types, returns the boxed value.

      Angegeben von:
      getConstant in Schnittstelle IField
      Gibt zurück:
      the constant value associated with this field, or null if not available
      Löst aus:
      JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource
    • getFlags

      public int getFlags() throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IMember
      Returns the modifier flags for this member. The flags can be examined using class Flags.

      For binary members, flags from the class file as well as derived flags Flags.AccAnnotationDefault and Flags.AccDefaultMethod are included.

      For source members, only flags as indicated in the source are returned. Thus if an interface defines a method void myMethod();, the flags don't include the 'public' flag. Source flags include Flags.AccAnnotationDefault as well.

      Angegeben von:
      getFlags in Schnittstelle IMember
      Setzt außer Kraft:
      getFlags in Klasse Member
      Gibt zurück:
      the modifier flags for this member
      Löst aus:
      JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource.
      Siehe auch:
    • getElementType

      public int getElementType()
      Beschreibung aus Schnittstelle kopiert: IJavaElement
      Returns this element's kind encoded as an integer. This is a handle-only method.
      Angegeben von:
      getElementType in Schnittstelle IJavaElement
      Gibt zurück:
      the kind of element; one of the constants declared in IJavaElement
      Siehe auch:
    • getHandleMementoDelimiter

      protected char getHandleMementoDelimiter()
      Beschreibung aus Klasse kopiert: JavaElement
      Returns the char that marks the start of this handles contribution to a memento.
      Setzt außer Kraft:
      getHandleMementoDelimiter in Klasse Member
      Siehe auch:
    • getTypeSignature

      public String getTypeSignature() throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IField
      Returns the type signature of this field. For enum constants, this returns the signature of the declaring enum class.

      The type signature may be either unresolved (for source types) or resolved (for binary types), and either basic (for basic types) or rich (for parameterized types). See Signature for details.

      Angegeben von:
      getTypeSignature in Schnittstelle IField
      Gibt zurück:
      the type signature of this field
      Löst aus:
      JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource
      Siehe auch:
    • isEnumConstant

      public boolean isEnumConstant() throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IField
      Returns whether this field represents an enum constant.
      Angegeben von:
      isEnumConstant in Schnittstelle IField
      Gibt zurück:
      whether this field represents an enum constant
      Löst aus:
      JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource
    • resolved

      public JavaElement resolved(Binding binding)
      Setzt außer Kraft:
      resolved in Klasse JavaElement
    • getAttachedJavadoc

      public String getAttachedJavadoc(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IJavaElement

      Returns the Javadoc as HTML source if this element has attached Javadoc, null otherwise.

      This should be used only for binary elements. Source elements will always return null.

      The encoding used to read the Javadoc is the one defined by the content type of the file. If none is defined, then the project's encoding of this Java element is used. If the project's encoding cannot be retrieved, then the platform encoding is used.

      In case the Javadoc doesn't exist for this element, null is returned.

      The HTML is extracted from the attached Javadoc and provided as is. No transformation or validation is done.

      Angegeben von:
      getAttachedJavadoc in Schnittstelle IJavaElement
      Setzt außer Kraft:
      getAttachedJavadoc in Klasse JavaElement
      Parameter:
      monitor - the given progress monitor, can be null
      Gibt zurück:
      the extracted javadoc from the attached javadoc, null if none
      Löst aus:
      JavaModelException - if:
      • this element does not exist
      • retrieving the attached javadoc fails (timed-out, invalid URL, ...)
      • the format of the javadoc doesn't match expected standards (different anchors,...)
      Siehe auch:
    • isRecordComponent

      public boolean isRecordComponent() throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IField
      Returns whether this field represents a record component.
      Angegeben von:
      isRecordComponent in Schnittstelle IField
      Gibt zurück:
      whether this field represents a record component.
      Löst aus:
      JavaModelException