Record Class MethodNamePattern
java.lang.Object
java.lang.Record
org.scandroid.spec.MethodNamePattern
- Record Components:
descriptor- null = match any types
-
Constructor Summary
ConstructorsConstructorDescriptionMethodNamePattern(String c, String m) MethodNamePattern(String className, String memberName, String descriptor) Creates an instance of aMethodNamePatternrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Usedescriptor()insteadDeprecated, for removal: This API element is subject to removal in a future version.UsememberName()insteadReturns a Collection of IMethods which are found in the following ClassLoaders: Application, Primordial, Extensionfinal inthashCode()Returns a hash code value for this object.Returns the value of thememberNamerecord component.static MethodNamePatternpatternForReference(MethodReference methodRef) toString()Returns a string representation of this record class.
-
Constructor Details
-
MethodNamePattern
-
MethodNamePattern
Creates an instance of aMethodNamePatternrecord class.- Parameters:
className- the value for theclassNamerecord componentmemberName- the value for thememberNamerecord componentdescriptor- the value for thedescriptorrecord component
-
-
Method Details
-
getPossibleTargets
Returns a Collection of IMethods which are found in the following ClassLoaders: Application, Primordial, Extension -
toString
-
getDescriptor
Deprecated, for removal: This API element is subject to removal in a future version.Usedescriptor()instead -
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
getClassName
Deprecated, for removal: This API element is subject to removal in a future version.UseclassName()instead -
getMemberName
Deprecated, for removal: This API element is subject to removal in a future version.UsememberName()instead -
patternForReference
public static MethodNamePattern patternForReference(MethodReference methodRef) throws UTFDataFormatException - Throws:
UTFDataFormatException
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
memberName
Returns the value of thememberNamerecord component.- Returns:
- the value of the
memberNamerecord component
-
className()instead