Package edu.umd.cs.findbugs.classfile
Class FieldDescriptor
java.lang.Object
edu.umd.cs.findbugs.classfile.FieldOrMethodDescriptor
edu.umd.cs.findbugs.classfile.FieldDescriptor
- All Implemented Interfaces:
ComparableField
,FieldOrMethodName
,Comparable<ComparableField>
- Direct Known Subclasses:
FieldInfo
Descriptor uniquely identifying a field in a class.
- Author:
- David Hovemeyer
-
Constructor Summary
ConstructorDescriptionFieldDescriptor
(String className, String fieldName, String fieldSignature, boolean isStatic) Constructor. -
Method Summary
Methods inherited from class edu.umd.cs.findbugs.classfile.FieldOrMethodDescriptor
compareTo, compareTo, getClassDescriptor, getName, getNameSigHashCode, getNameSigHashCode, getSignature, getSlashedClassName, hashCode, haveEqualFields, isStatic
-
Constructor Details
-
FieldDescriptor
public FieldDescriptor(@SlashedClassName String className, String fieldName, String fieldSignature, boolean isStatic) Constructor.- Parameters:
className
- the name of the class the field belongs tofieldName
- the name of the fieldfieldSignature
- the field signature (type)isStatic
- true if field is static, false if not
-
-
Method Details
-
toString
- Overrides:
toString
in classFieldOrMethodDescriptor
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ComparableField>
-
equals
-