Package edu.umd.cs.findbugs.classfile
Class FieldOrMethodDescriptor
java.lang.Object
edu.umd.cs.findbugs.classfile.FieldOrMethodDescriptor
- All Implemented Interfaces:
FieldOrMethodName
- Direct Known Subclasses:
FieldDescriptor
,MethodDescriptor
Common superclass for FieldDescriptor and MethodDescriptor.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FieldOrMethodDescriptor
(String slashedClassName, String name, String signature, boolean isStatic) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareTo
(FieldOrMethodDescriptor thas, FieldOrMethodDescriptor that) protected int
getName()
int
static int
getNameSigHashCode
(String name, String signature) final int
hashCode()
protected boolean
boolean
isStatic()
toString()
-
Field Details
-
slashedClassName
-
name
-
signature
-
isStatic
private final boolean isStatic -
cachedHashCode
private int cachedHashCode -
nameSigHashCode
private final int nameSigHashCode
-
-
Constructor Details
-
FieldOrMethodDescriptor
protected FieldOrMethodDescriptor(@SlashedClassName String slashedClassName, String name, String signature, boolean isStatic)
-
-
Method Details
-
getNameSigHashCode
-
getNameSigHashCode
public int getNameSigHashCode() -
getSlashedClassName
- Returns:
- Returns the class name
-
getClassDescriptor
- Specified by:
getClassDescriptor
in interfaceFieldOrMethodName
- Returns:
- a ClassDescriptor for the method's class
-
getName
- Specified by:
getName
in interfaceFieldOrMethodName
- Returns:
- Returns the method name
-
getSignature
- Specified by:
getSignature
in interfaceFieldOrMethodName
- Returns:
- Returns the method signature
-
isStatic
public boolean isStatic()- Specified by:
isStatic
in interfaceFieldOrMethodName
- Returns:
- Returns true if method is static, false if not
-
compareTo
-
haveEqualFields
-
hashCode
public final int hashCode() -
toString
-
compareTo
-