Package org.testng.internal
Class ConstructorOrMethod
- java.lang.Object
-
- org.testng.internal.ConstructorOrMethod
-
- Direct Known Subclasses:
JUnit4ConfigurationMethod
,JUnit4SpockMethod
public class ConstructorOrMethod extends Object
Encapsulation of either a method or a constructor.- Author:
- Cedric Beust
-
-
Constructor Summary
Constructors Constructor Description ConstructorOrMethod(Constructor c)
ConstructorOrMethod(Method m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Constructor
getConstructor()
Class<?>
getDeclaringClass()
boolean
getEnabled()
Method
getMethod()
String
getName()
Class[]
getParameterTypes()
int
hashCode()
void
setEnabled(boolean enabled)
String
toString()
-
-
-
Constructor Detail
-
ConstructorOrMethod
public ConstructorOrMethod(Method m)
-
ConstructorOrMethod
public ConstructorOrMethod(Constructor c)
-
-
Method Detail
-
getDeclaringClass
public Class<?> getDeclaringClass()
-
getName
public String getName()
-
getParameterTypes
public Class[] getParameterTypes()
-
getMethod
public Method getMethod()
-
getConstructor
public Constructor getConstructor()
-
setEnabled
public void setEnabled(boolean enabled)
-
getEnabled
public boolean getEnabled()
-
-