Package proguard.classfile
Class BasicMethodInfo
java.lang.Object
proguard.classfile.BasicMethodInfo
- All Implemented Interfaces:
MethodInfo
A minimal implementation of
MethodInfo.-
Constructor Summary
ConstructorsConstructorDescriptionBasicMethodInfo(@NotNull String methodName, @NotNull MethodDescriptor descriptor) Creates aBasicMethodInfogiven a method name and descriptor.BasicMethodInfo(MethodInfo method) Creates aBasicMethodInfogiven aMethodInfo. -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull MethodDescriptorReturns the method's descriptor.@NotNull StringReturns the method's name.inthashCode()toString()
-
Constructor Details
-
BasicMethodInfo
public BasicMethodInfo(@NotNull @NotNull String methodName, @NotNull @NotNull MethodDescriptor descriptor) Creates aBasicMethodInfogiven a method name and descriptor.- Parameters:
descriptor- a method descriptormethodName- a method name
-
BasicMethodInfo
Creates aBasicMethodInfogiven aMethodInfo.- Parameters:
method- a method info
-
-
Method Details
-
getMethodName
Description copied from interface:MethodInfoReturns the method's name.- Specified by:
getMethodNamein interfaceMethodInfo
-
getDescriptor
Description copied from interface:MethodInfoReturns the method's descriptor.- Specified by:
getDescriptorin interfaceMethodInfo
-
equals
-
hashCode
public int hashCode() -
toString
-