Package org.testng.internal.invokers
Enum InvokedMethodListenerSubtype
- java.lang.Object
-
- java.lang.Enum<InvokedMethodListenerSubtype>
-
- org.testng.internal.invokers.InvokedMethodListenerSubtype
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InvokedMethodListenerSubtype>
enum InvokedMethodListenerSubtype extends java.lang.Enum<InvokedMethodListenerSubtype>
Indicates whether aInvokedMethodListenerMethod
is to be called on a simple or an extended invoked method listener. AllIInvokedMethodListener
s are consideredSIMPLE_LISTENER
, instances ofIInvokedMethodListener2
are all consideredEXTENDED_LISTENER
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXTENDED_LISTENER
SIMPLE_LISTENER
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<? extends IInvokedMethodListener>
m_matchingInterface
-
Constructor Summary
Constructors Modifier Constructor Description private
InvokedMethodListenerSubtype(java.lang.Class<? extends IInvokedMethodListener> listenerClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvokedMethodListenerSubtype
fromListener(IInvokedMethodListener listenerInstance)
private boolean
isInstance(IInvokedMethodListener listenerInstance)
static InvokedMethodListenerSubtype
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InvokedMethodListenerSubtype[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXTENDED_LISTENER
public static final InvokedMethodListenerSubtype EXTENDED_LISTENER
-
SIMPLE_LISTENER
public static final InvokedMethodListenerSubtype SIMPLE_LISTENER
-
-
Field Detail
-
m_matchingInterface
private java.lang.Class<? extends IInvokedMethodListener> m_matchingInterface
-
-
Constructor Detail
-
InvokedMethodListenerSubtype
private InvokedMethodListenerSubtype(java.lang.Class<? extends IInvokedMethodListener> listenerClass)
-
-
Method Detail
-
values
public static InvokedMethodListenerSubtype[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InvokedMethodListenerSubtype c : InvokedMethodListenerSubtype.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InvokedMethodListenerSubtype valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isInstance
private boolean isInstance(IInvokedMethodListener listenerInstance)
-
fromListener
public static InvokedMethodListenerSubtype fromListener(IInvokedMethodListener listenerInstance)
-
-