Class MethodWrapper.MethodSignature
- java.lang.Object
-
- com.enjin.minecraft_commons.spigot.reflection.resolver.wrapper.MethodWrapper.MethodSignature
-
- Enclosing class:
- MethodWrapper<R>
public static class MethodWrapper.MethodSignature extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MethodSignature(java.lang.String returnType, java.lang.String name, java.lang.String[] parameterTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)static MethodWrapper.MethodSignaturefromString(java.lang.String signatureString)java.lang.StringgetName()java.lang.StringgetParameterType(int index)java.lang.String[]getParameterTypes()java.lang.StringgetReturnType()java.lang.StringgetSignature()inthashCode()booleanisNameWildcard()booleanisParameterWildcard(int index)booleanisReturnTypeWildcard()booleanmatches(MethodWrapper.MethodSignature other)static MethodWrapper.MethodSignatureof(java.lang.reflect.Method method, boolean fullClassNames)java.lang.StringtoString()
-
-
-
Method Detail
-
of
public static MethodWrapper.MethodSignature of(java.lang.reflect.Method method, boolean fullClassNames)
-
fromString
public static MethodWrapper.MethodSignature fromString(java.lang.String signatureString)
-
getReturnType
public java.lang.String getReturnType()
-
isReturnTypeWildcard
public boolean isReturnTypeWildcard()
-
getName
public java.lang.String getName()
-
isNameWildcard
public boolean isNameWildcard()
-
getParameterTypes
public java.lang.String[] getParameterTypes()
-
getParameterType
public java.lang.String getParameterType(int index) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
isParameterWildcard
public boolean isParameterWildcard(int index) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
getSignature
public java.lang.String getSignature()
-
matches
public boolean matches(MethodWrapper.MethodSignature other)
-
equals
public boolean equals(java.lang.Object object)
- 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
-
-