Package proguard.classfile
Class BasicMethodInfo
- java.lang.Object
-
- proguard.classfile.BasicMethodInfo
-
- All Implemented Interfaces:
MethodInfo
public class BasicMethodInfo extends java.lang.Object implements MethodInfo
A minimal implementation ofMethodInfo.
-
-
Constructor Summary
Constructors Constructor Description BasicMethodInfo(@NotNull java.lang.String methodName, @NotNull MethodDescriptor descriptor)Creates aBasicMethodInfogiven a method name and descriptor.BasicMethodInfo(MethodInfo method)Creates aBasicMethodInfogiven aMethodInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)@NotNull MethodDescriptorgetDescriptor()Returns the method's descriptor.@NotNull java.lang.StringgetMethodName()Returns the method's name.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
BasicMethodInfo
public BasicMethodInfo(@NotNull @NotNull java.lang.String methodName, @NotNull @NotNull MethodDescriptor descriptor)Creates aBasicMethodInfogiven a method name and descriptor.- Parameters:
descriptor- a method descriptormethodName- a method name
-
BasicMethodInfo
public BasicMethodInfo(MethodInfo method)
Creates aBasicMethodInfogiven aMethodInfo.- Parameters:
method- a method info
-
-
Method Detail
-
getMethodName
@NotNull public @NotNull java.lang.String getMethodName()
Description copied from interface:MethodInfoReturns the method's name.- Specified by:
getMethodNamein interfaceMethodInfo
-
getDescriptor
@NotNull public @NotNull MethodDescriptor getDescriptor()
Description copied from interface:MethodInfoReturns the method's descriptor.- Specified by:
getDescriptorin interfaceMethodInfo
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-