Enum Class CheckSyntaxResult

java.lang.Object
java.lang.Enum<CheckSyntaxResult>
org.webkitgtk.jsc.CheckSyntaxResult
All Implemented Interfaces:
Serializable, Comparable<CheckSyntaxResult>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum CheckSyntaxResult extends Enum<CheckSyntaxResult> implements Enumeration
Enum values to specify the result of jsc_context_check_syntax().
  • Enum Constant Details

    • SUCCESS

      public static final CheckSyntaxResult SUCCESS
      no errors
    • RECOVERABLE_ERROR

      public static final CheckSyntaxResult RECOVERABLE_ERROR
      recoverable syntax error
    • IRRECOVERABLE_ERROR

      public static final CheckSyntaxResult IRRECOVERABLE_ERROR
      irrecoverable syntax error
    • UNTERMINATED_LITERAL_ERROR

      public static final CheckSyntaxResult UNTERMINATED_LITERAL_ERROR
      unterminated literal error
    • OUT_OF_MEMORY_ERROR

      public static final CheckSyntaxResult OUT_OF_MEMORY_ERROR
      out of memory error
    • STACK_OVERFLOW_ERROR

      public static final CheckSyntaxResult STACK_OVERFLOW_ERROR
      stack overflow error
  • Method Details

    • values

      public static CheckSyntaxResult[] 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 CheckSyntaxResult 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
    • of

      public static CheckSyntaxResult of(int value)
      Create a new CheckSyntaxResult for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static CheckSyntaxResult of(MemorySegment address)
      Create a new CheckSyntaxResult for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address