Interface JavaMember

All Known Subinterfaces:
JavaField, JavaMethod
All Known Implementing Classes:
DTFJJavaField, DTFJJavaFieldInstance, DTFJJavaFieldStatic, DTFJJavaMethod, JavaField, JavaInstanceField, JavaMethod, JavaStaticField, JCJavaMethod, PHDJavaMethod

public interface JavaMember

Base interface inherited by JavaField and JavaMethod.

This interface is modeled on java.lang.reflect.Member.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.
    Get the class which declares this field or method
    int
    Get the set of modifiers for this field or method - a set of bits
    Get the name of the field or method
    Get the signature of the field or method
    int
    Answers an integer hash code for the receiver.
  • Method Details

    • getModifiers

      int getModifiers() throws CorruptDataException
      Get the set of modifiers for this field or method - a set of bits
      Returns:
      the modifiers for this field or method. The values for the constants representing the modifiers can be obtained from java.lang.reflect.Modifier.
      Throws:
      CorruptDataException
    • getDeclaringClass

      JavaClass getDeclaringClass() throws CorruptDataException, DataUnavailable
      Get the class which declares this field or method
      Returns:
      the JavaClass which declared this field or method
      Throws:
      CorruptDataException
      DataUnavailable
    • getName

      String getName() throws CorruptDataException
      Get the name of the field or method
      Returns:
      the name of the field or method
      Throws:
      CorruptDataException
    • getSignature

      String getSignature() throws CorruptDataException
      Get the signature of the field or method
      Returns:
      the signature of the field or method. e.g. "(Ljava/lang/String;)V"
      Throws:
      CorruptDataException
    • equals

      boolean equals(Object obj)
      Description copied from class: java.lang.Object
      Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==).
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
      True if the given object refers to the same Java Member in the image
      See Also:
    • hashCode

      int hashCode()
      Description copied from class: java.lang.Object
      Answers an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.
      Overrides:
      hashCode in class Object
      Returns:
      the receiver's hash.
      See Also: