Class MethodType
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.typeresolution.MethodType
-
public final class MethodType extends java.lang.ObjectThis is really just a POJO.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MethodTypebuild(java.lang.reflect.Method method)static MethodTypebuild(JavaTypeDefinition returnType, java.util.List<JavaTypeDefinition> argTypes, java.lang.reflect.Method method)booleanequals(java.lang.Object obj)JavaTypeDefinitiongetArgTypeIncludingVararg(int index)java.lang.reflect.MethodgetMethod()java.util.List<JavaTypeDefinition>getParameterTypes()JavaTypeDefinitiongetReturnType()JavaTypeDefinitiongetVarargComponentType()inthashCode()booleanisAbstract()booleanisParameterized()booleanisVararg()java.lang.StringtoString()
-
-
-
Method Detail
-
build
public static MethodType build(java.lang.reflect.Method method)
- Returns:
- An unparameterized MethodType
-
build
public static MethodType build(JavaTypeDefinition returnType, java.util.List<JavaTypeDefinition> argTypes, java.lang.reflect.Method method)
-
getReturnType
public JavaTypeDefinition getReturnType()
-
getParameterTypes
public java.util.List<JavaTypeDefinition> getParameterTypes()
-
getMethod
public java.lang.reflect.Method getMethod()
-
isVararg
public boolean isVararg()
-
getVarargComponentType
public JavaTypeDefinition getVarargComponentType()
-
isAbstract
public boolean isAbstract()
-
getArgTypeIncludingVararg
public JavaTypeDefinition getArgTypeIncludingVararg(int index)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isParameterized
public boolean isParameterized()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-