-
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object obj)
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.JavaClass
getDeclaringClass()
Get the class which declares this field or methodint
getModifiers()
Get the set of modifiers for this field or method - a set of bitsString
getName()
Get the name of the field or methodString
getSignature()
Get the signature of the field or methodint
hashCode()
Answers an integer hash code for the receiver.
-
-
-
Method Detail
-
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 classObject
- Parameters:
obj
-- Returns:
- True if the given object refers to the same Java Member in the image
- See Also:
Object.hashCode()
-
hashCode
int hashCode()
Description copied from class:java.lang.Object
Answers an integer hash code for the receiver. Any two objects which answertrue
when passed to.equals
must answer the same value for this method.- Overrides:
hashCode
in classObject
- Returns:
- the receiver's hash.
- See Also:
Object.equals(java.lang.Object)
-
-