Enum Class EventType

java.lang.Object
java.lang.Enum<EventType>
io.karatelabs.js.EventType
All Implemented Interfaces:
Serializable, Comparable<EventType>, Constable

public enum EventType extends Enum<EventType>
  • Enum Constant Details

    • CONTEXT_ENTER

      public static final EventType CONTEXT_ENTER
    • CONTEXT_EXIT

      public static final EventType CONTEXT_EXIT
    • STATEMENT_ENTER

      public static final EventType STATEMENT_ENTER
    • STATEMENT_EXIT

      public static final EventType STATEMENT_EXIT
    • EXPRESSION_ENTER

      public static final EventType EXPRESSION_ENTER
    • EXPRESSION_EXIT

      public static final EventType EXPRESSION_EXIT
    • BRANCH

      public static final EventType BRANCH
      Fired after a conditional construct (if / ternary / logical short-circuit / switch case) decides which arm to take. The event value is the Boolean outcome. Useful for coverage and debugger tooling.
    • COMPARE

      public static final EventType COMPARE
      Fired when a comparison operator evaluates. The event value is an Object[] of [lhs, operator, rhs] with the concrete operand values. Useful for coverage and debugger tooling.
    • PROPERTY_GET

      public static final EventType PROPERTY_GET
      Fired when a computed (bracket) member is READ — obj[key]. The event value is an Object[] of [target, key, result] with the concrete object, the evaluated key, and the value returned. The read counterpart of the PROPERTY_SET bind (writes ride onBind; reads, being observations like BRANCH/COMPARE, ride onEvent). 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

      public static EventType[] 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

      public static EventType valueOf(String name)
      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 name
      NullPointerException - if the argument is null