Package io.karatelabs.js
Enum Class EventType
- All Implemented Interfaces:
Serializable,Comparable<EventType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFired after a conditional construct (if / ternary / logical short-circuit / switch case) decides which arm to take.Fired when a comparison operator evaluates.Fired when a computed (bracket) member is READ —obj[key]. -
Method Summary
-
Enum Constant Details
-
CONTEXT_ENTER
-
CONTEXT_EXIT
-
STATEMENT_ENTER
-
STATEMENT_EXIT
-
EXPRESSION_ENTER
-
EXPRESSION_EXIT
-
BRANCH
Fired after a conditional construct (if / ternary / logical short-circuit / switch case) decides which arm to take. The eventvalueis theBooleanoutcome. Useful for coverage and debugger tooling. -
COMPARE
Fired when a comparison operator evaluates. The eventvalueis anObject[]of[lhs, operator, rhs]with the concrete operand values. Useful for coverage and debugger tooling. -
PROPERTY_GET
Fired when a computed (bracket) member is READ —obj[key]. The eventvalueis anObject[]of[target, key, result]with the concrete object, the evaluated key, and the value returned. The read counterpart of thePROPERTY_SETbind (writes rideonBind; reads, being observations likeBRANCH/COMPARE, rideonEvent). Scoped to bracket access — dot reads (obj.name) do not fire — to stay cheap on hot paths while still capturing dynamic/keyed lookups. Useful for coverage, data-flow tracing and debugging.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-