UnaryOp

enum class UnaryOp : Enumerator

A representation of the literals of the enumeration 'Unary Op', and utility methods for working with them.

See also

Entries

Link copied to clipboard

The 'PLUS' literal object.

Link copied to clipboard

The 'MINUS' literal object.

Companion properties

Link copied to clipboard
val MINUS_VALUE: Int = 1
The 'MINUS' literal value.
Link copied to clipboard
val PLUS_VALUE: Int = 0
The 'PLUS' literal value.
Link copied to clipboard
A public read-only list of all the 'Unary Op' enumerators.

Companion functions

Link copied to clipboard
open fun get(value: Int): UnaryOp
Returns the 'Unary Op' literal with the specified integer value.
open fun get(literal: String): UnaryOp
Returns the 'Unary Op' literal with the specified literal value.
Link copied to clipboard
open fun getByName(name: String): UnaryOp
Returns the 'Unary Op' literal with the specified name.
Link copied to clipboard
open fun valueOf(name: String): UnaryOp

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.)

Link copied to clipboard
open fun values(): Array<UnaryOp>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
abstract fun getLiteral(): String
Link copied to clipboard
abstract fun getValue(): Int
Link copied to clipboard
open fun toString(): String
Returns the literal value of the enumerator, which is its string representation.