com.ibm.dtfj.java
Interface JavaMember
- All Known Subinterfaces:
- JavaField, JavaMethod
- public interface JavaMember
Abstract interface which both JavaField and JavaMethod inherit from.
It defines APIs which are common to both types of members.
It is modelled on java.lang.reflect.Member
getModifiers
public int getModifiers()
throws CorruptDataException
- 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
public JavaClass getDeclaringClass()
throws CorruptDataException,
DataUnavailable
- Returns:
- the JavaClass which declared this field or method
- Throws:
CorruptDataException
DataUnavailable
getName
public java.lang.String getName()
throws CorruptDataException
- Returns:
- the name of the field or method
- Throws:
CorruptDataException
getSignature
public java.lang.String getSignature()
throws CorruptDataException
- Returns:
- the signature of the field or method.
e.g. "(Ljava/lang/String;)V"
- Throws:
CorruptDataException
equals
public boolean equals(java.lang.Object obj)
- Parameters:
obj
-
- Returns:
- True obj refers to the same Java Member in the image
hashCode
public int hashCode()