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 booleanequals(Object obj)ConstructorgetConstructor()Class<?>getDeclaringClass()booleangetEnabled()MethodgetMethod()StringgetName()Class[]getParameterTypes()inthashCode()voidsetEnabled(boolean enabled)StringtoString()
-
-
-
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()
-
-