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 aBasicMethodInfo
given a method name and descriptor.BasicMethodInfo(MethodInfo method)
Creates aBasicMethodInfo
given aMethodInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
@NotNull MethodDescriptor
getDescriptor()
Returns the method's descriptor.@NotNull java.lang.String
getMethodName()
Returns the method's name.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
BasicMethodInfo
public BasicMethodInfo(@NotNull @NotNull java.lang.String methodName, @NotNull @NotNull MethodDescriptor descriptor)
Creates aBasicMethodInfo
given a method name and descriptor.- Parameters:
descriptor
- a method descriptormethodName
- a method name
-
BasicMethodInfo
public BasicMethodInfo(MethodInfo method)
Creates aBasicMethodInfo
given aMethodInfo
.- Parameters:
method
- a method info
-
-
Method Detail
-
getMethodName
@NotNull public @NotNull java.lang.String getMethodName()
Description copied from interface:MethodInfo
Returns the method's name.- Specified by:
getMethodName
in interfaceMethodInfo
-
getDescriptor
@NotNull public @NotNull MethodDescriptor getDescriptor()
Description copied from interface:MethodInfo
Returns the method's descriptor.- Specified by:
getDescriptor
in interfaceMethodInfo
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-