-
- All Known Subinterfaces:
JavaField,JavaMethod
public interface JavaMemberBase 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 booleanequals(Object obj)Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.JavaClassgetDeclaringClass()Get the class which declares this field or methodintgetModifiers()Get the set of modifiers for this field or method - a set of bitsStringgetName()Get the name of the field or methodStringgetSignature()Get the signature of the field or methodinthashCode()Answers an integer hash code for the receiver.
-
-
-
Method Detail
-
getModifiers
int getModifiers() throws CorruptDataExceptionGet 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:
CorruptDataExceptionDataUnavailable
-
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:ObjectCompares 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:
equalsin 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:ObjectAnswers an integer hash code for the receiver. Any two objects which answertruewhen passed to.equalsmust answer the same value for this method.- Overrides:
hashCodein classObject- Returns:
- the receiver's hash.
- See Also:
Object.equals(java.lang.Object)
-
-