Matches all integer literals. That is, all integer literals of the kind `short`, `byte`, `int`, and `long`.
Properties
integerLiteral produces a record that contains the following properties:
| Name | Type | Description |
|---|---|---|
base |
enum |
One of `binary`, `decimal`, `octal`, or `hexadecimal`
|
kind |
enum intKind |
One of `short`, `byte`, `int`, or `long`;
see intKind
|
value |
int |
The value of the integer literal |
Inherits properties from:
Example
The following CodeXM pattern matches only long integer literals:
pattern longIntegerLiteral {
integerIteral {
.kind == `long`
}
};