Class MethodType
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.typeresolution.MethodType
-
public final class MethodType extends java.lang.Object
This is really just a POJO.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MethodType
build(java.lang.reflect.Method method)
static MethodType
build(JavaTypeDefinition returnType, java.util.List<JavaTypeDefinition> argTypes, java.lang.reflect.Method method)
boolean
equals(java.lang.Object obj)
JavaTypeDefinition
getArgTypeIncludingVararg(int index)
java.lang.reflect.Method
getMethod()
java.util.List<JavaTypeDefinition>
getParameterTypes()
JavaTypeDefinition
getReturnType()
JavaTypeDefinition
getVarargComponentType()
int
hashCode()
boolean
isAbstract()
boolean
isParameterized()
boolean
isVararg()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
isParameterized
public boolean isParameterized()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-