Skip to main content

JasmTokenType

Enum JasmTokenType 

Source
#[repr(u16)]
pub enum JasmTokenType {
Show 225 variants Root = 0, ClassKw = 1, VersionKw = 2, MethodKw = 3, FieldKw = 4, StringKw = 5, SourceFileKw = 6, StackKw = 7, LocalsKw = 8, EndKw = 9, CompiledKw = 10, FromKw = 11, InnerClassKw = 12, NestMembersKw = 13, BootstrapMethodKw = 14, SuperKw = 15, InterfaceKw = 16, ImplementsKw = 17, ExtendsKw = 18, SourceKw = 19, CatchKw = 20, AttributeKw = 21, StackMapKw = 22, Public = 23, Private = 24, Protected = 25, Static = 26, Super = 27, Final = 28, Abstract = 29, Synchronized = 30, Native = 31, Synthetic = 32, Deprecated = 33, Varargs = 34, ALoad0 = 35, ALoad1 = 36, ALoad2 = 37, ALoad3 = 38, ILoad0 = 39, ILoad1 = 40, ILoad2 = 41, ILoad3 = 42, Ldc = 43, LdcW = 44, Ldc2W = 45, InvokeSpecial = 46, InvokeVirtual = 47, InvokeStatic = 48, InvokeInterface = 49, InvokeDynamic = 50, GetStatic = 51, PutStatic = 52, GetField = 53, PutField = 54, New = 55, CheckCast = 56, InstanceOf = 57, NewArray = 58, ANewArray = 59, ArrayLength = 60, AThrow = 61, MonitorEnter = 62, MonitorExit = 63, MultiANewArray = 64, IfNull = 65, IfNonNull = 66, Goto = 67, GotoW = 68, Jsr = 69, JsrW = 70, Ret = 71, TableSwitch = 72, LookupSwitch = 73, IReturn = 74, LReturn = 75, FReturn = 76, DReturn = 77, AReturn = 78, Return = 79, BiPush = 80, SiPush = 81, IInc = 82, Wide = 83, BreakPoint = 84, ImpDep1 = 85, ImpDep2 = 86, Nop = 87, Dup = 88, Pop = 89, AConstNull = 90, IConstM1 = 91, IConst0 = 92, IConst1 = 93, IConst2 = 94, IConst3 = 95, IConst4 = 96, IConst5 = 97, LConst0 = 98, LConst1 = 99, FConst0 = 100, FConst1 = 101, FConst2 = 102, DConst0 = 103, DConst1 = 104, ALoad = 105, ILoad = 106, LLoad = 107, FLoad = 108, DLoad = 109, AStore = 110, IStore = 111, LStore = 112, FStore = 113, DStore = 114, BALoad = 115, CALoad = 116, SALoad = 117, AALoad = 118, IALoad = 119, LALoad = 120, FALoad = 121, DALoad = 122, BAStore = 123, CAStore = 124, SAStore = 125, AAStore = 126, IAStore = 127, LAStore = 128, FAStore = 129, DAStore = 130, Swap = 131, Swap2 = 132, DupX1 = 133, DupX2 = 134, Dup2 = 135, Dup2X1 = 136, Dup2X2 = 137, IAdd = 138, LAdd = 139, FAdd = 140, DAdd = 141, ISub = 142, LSub = 143, FSub = 144, DSub = 145, IMul = 146, LMul = 147, FMul = 148, DMul = 149, IDiv = 150, LDiv = 151, FDiv = 152, DDiv = 153, IRem = 154, LRem = 155, FRem = 156, DRem = 157, INeg = 158, LNeg = 159, FNeg = 160, DNeg = 161, IShl = 162, LShl = 163, IShr = 164, LShr = 165, IUShr = 166, LUShr = 167, IAnd = 168, LAnd = 169, IOr = 170, LOr = 171, IXor = 172, LXor = 173, I2L = 174, I2F = 175, I2D = 176, L2I = 177, L2F = 178, L2D = 179, F2I = 180, F2L = 181, F2D = 182, D2I = 183, D2L = 184, D2F = 185, LCmp = 186, FCmpL = 187, FCmpG = 188, DCmpL = 189, DCmpG = 190, IfEq = 191, IfNe = 192, IfLt = 193, IfGe = 194, IfGt = 195, IfLe = 196, IfICmpEq = 197, IfICmpNe = 198, IfICmpLt = 199, IfICmpGe = 200, IfICmpGt = 201, IfICmpLe = 202, IfACmpEq = 203, IfACmpNe = 204, LeftBrace = 205, RightBrace = 206, LeftBracket = 207, RightBracket = 208, LeftParen = 209, RightParen = 210, Comma = 211, Colon = 212, Semicolon = 213, Eq = 214, Dot = 215, Slash = 216, At = 217, Identifier = 218, String = 219, Number = 220, Comment = 221, Whitespace = 222, Newline = 223, Eof = 224,
}
Expand description

Token types for the JASM language.

Variants§

§

Root = 0

Root node.

§

ClassKw = 1

class keyword.

§

VersionKw = 2

version keyword.

§

MethodKw = 3

method keyword.

§

FieldKw = 4

field keyword.

§

StringKw = 5

string keyword.

§

SourceFileKw = 6

source_file keyword.

§

StackKw = 7

stack keyword.

§

LocalsKw = 8

locals keyword.

§

EndKw = 9

end keyword.

§

CompiledKw = 10

compiled keyword.

§

FromKw = 11

from keyword.

§

InnerClassKw = 12

inner_class keyword.

§

NestMembersKw = 13

nest_members keyword.

§

BootstrapMethodKw = 14

bootstrap_method keyword.

§

SuperKw = 15

super keyword.

§

InterfaceKw = 16

interface keyword.

§

ImplementsKw = 17

implements keyword.

§

ExtendsKw = 18

extends keyword.

§

SourceKw = 19

source keyword.

§

CatchKw = 20

catch keyword.

§

AttributeKw = 21

attribute keyword.

§

StackMapKw = 22

stackmap keyword.

§

Public = 23

public access modifier.

§

Private = 24

private access modifier.

§

Protected = 25

protected access modifier.

§

Static = 26

static modifier.

§

Super = 27

super modifier.

§

Final = 28

final modifier.

§

Abstract = 29

abstract modifier.

§

Synchronized = 30

synchronized modifier.

§

Native = 31

native modifier.

§

Synthetic = 32

synthetic modifier.

§

Deprecated = 33

deprecated modifier.

§

Varargs = 34

varargs modifier.

§

ALoad0 = 35

aload_0 instruction.

§

ALoad1 = 36

aload_1 instruction.

§

ALoad2 = 37

aload_2 instruction.

§

ALoad3 = 38

aload_3 instruction.

§

ILoad0 = 39

iload_0 instruction.

§

ILoad1 = 40

iload_1 instruction.

§

ILoad2 = 41

iload_2 instruction.

§

ILoad3 = 42

iload_3 instruction.

§

Ldc = 43

ldc instruction.

§

LdcW = 44

ldc_w instruction.

§

Ldc2W = 45

ldc2_w instruction.

§

InvokeSpecial = 46

invokespecial instruction.

§

InvokeVirtual = 47

invokevirtual instruction.

§

InvokeStatic = 48

invokestatic instruction.

§

InvokeInterface = 49

invokeinterface instruction.

§

InvokeDynamic = 50

invokedynamic instruction.

§

GetStatic = 51

getstatic instruction.

§

PutStatic = 52

putstatic instruction.

§

GetField = 53

getfield instruction.

§

PutField = 54

putfield instruction.

§

New = 55

new instruction.

§

CheckCast = 56

checkcast instruction.

§

InstanceOf = 57

instanceof instruction.

§

NewArray = 58

newarray instruction.

§

ANewArray = 59

anewarray instruction.

§

ArrayLength = 60

arraylength instruction.

§

AThrow = 61

athrow instruction.

§

MonitorEnter = 62

monitorenter instruction.

§

MonitorExit = 63

monitorexit instruction.

§

MultiANewArray = 64

multianewarray instruction.

§

IfNull = 65

ifnull instruction.

§

IfNonNull = 66

ifnonnull instruction.

§

Goto = 67

goto instruction.

§

GotoW = 68

goto_w instruction.

§

Jsr = 69

jsr instruction.

§

JsrW = 70

jsr_w instruction.

§

Ret = 71

ret instruction.

§

TableSwitch = 72

tableswitch instruction.

§

LookupSwitch = 73

lookupswitch instruction.

§

IReturn = 74

ireturn instruction.

§

LReturn = 75

lreturn instruction.

§

FReturn = 76

freturn instruction.

§

DReturn = 77

dreturn instruction.

§

AReturn = 78

areturn instruction.

§

Return = 79

return instruction.

§

BiPush = 80

bipush instruction.

§

SiPush = 81

sipush instruction.

§

IInc = 82

iinc instruction.

§

Wide = 83

wide instruction.

§

BreakPoint = 84

breakpoint instruction.

§

ImpDep1 = 85

impdep1 instruction.

§

ImpDep2 = 86

impdep2 instruction.

§

Nop = 87

nop instruction.

§

Dup = 88

dup instruction.

§

Pop = 89

pop instruction.

§

AConstNull = 90

aconst_null instruction.

§

IConstM1 = 91

iconst_m1 instruction.

§

IConst0 = 92

iconst_0 instruction.

§

IConst1 = 93

iconst_1 instruction.

§

IConst2 = 94

iconst_2 instruction.

§

IConst3 = 95

iconst_3 instruction.

§

IConst4 = 96

iconst_4 instruction.

§

IConst5 = 97

iconst_5 instruction.

§

LConst0 = 98

lconst_0 instruction.

§

LConst1 = 99

lconst_1 instruction.

§

FConst0 = 100

fconst_0 instruction.

§

FConst1 = 101

fconst_1 instruction.

§

FConst2 = 102

fconst_2 instruction.

§

DConst0 = 103

dconst_0 instruction.

§

DConst1 = 104

dconst_1 instruction.

§

ALoad = 105

aload instruction.

§

ILoad = 106

iload instruction.

§

LLoad = 107

lload instruction.

§

FLoad = 108

fload instruction.

§

DLoad = 109

dload instruction.

§

AStore = 110

astore instruction.

§

IStore = 111

istore instruction.

§

LStore = 112

lstore instruction.

§

FStore = 113

fstore instruction.

§

DStore = 114

dstore instruction.

§

BALoad = 115

baload instruction.

§

CALoad = 116

caload instruction.

§

SALoad = 117

saload instruction.

§

AALoad = 118

aaload instruction.

§

IALoad = 119

iaload instruction.

§

LALoad = 120

laload instruction.

§

FALoad = 121

faload instruction.

§

DALoad = 122

daload instruction.

§

BAStore = 123

bastore instruction.

§

CAStore = 124

castore instruction.

§

SAStore = 125

sastore instruction.

§

AAStore = 126

aastore instruction.

§

IAStore = 127

iastore instruction.

§

LAStore = 128

lastore instruction.

§

FAStore = 129

fastore instruction.

§

DAStore = 130

dastore instruction.

§

Swap = 131

swap instruction.

§

Swap2 = 132

swap2 instruction.

§

DupX1 = 133

dup_x1 instruction.

§

DupX2 = 134

dup_x2 instruction.

§

Dup2 = 135

dup2 instruction.

§

Dup2X1 = 136

dup2_x1 instruction.

§

Dup2X2 = 137

dup2_x2 instruction.

§

IAdd = 138

iadd instruction.

§

LAdd = 139

ladd instruction.

§

FAdd = 140

fadd instruction.

§

DAdd = 141

dadd instruction.

§

ISub = 142

isub instruction.

§

LSub = 143

lsub instruction.

§

FSub = 144

fsub instruction.

§

DSub = 145

dsub instruction.

§

IMul = 146

imul instruction.

§

LMul = 147

lmul instruction.

§

FMul = 148

fmul instruction.

§

DMul = 149

dmul instruction.

§

IDiv = 150

idiv instruction.

§

LDiv = 151

ldiv instruction.

§

FDiv = 152

fdiv instruction.

§

DDiv = 153

ddiv instruction.

§

IRem = 154

irem instruction.

§

LRem = 155

lrem instruction.

§

FRem = 156

frem instruction.

§

DRem = 157

drem instruction.

§

INeg = 158

ineg instruction.

§

LNeg = 159

lneg instruction.

§

FNeg = 160

fneg instruction.

§

DNeg = 161

dneg instruction.

§

IShl = 162

ishl instruction.

§

LShl = 163

lshl instruction.

§

IShr = 164

ishr instruction.

§

LShr = 165

lshr instruction.

§

IUShr = 166

iushr instruction.

§

LUShr = 167

lushr instruction.

§

IAnd = 168

iand instruction.

§

LAnd = 169

land instruction.

§

IOr = 170

ior instruction.

§

LOr = 171

lor instruction.

§

IXor = 172

ixor instruction.

§

LXor = 173

lxor instruction.

§

I2L = 174

i2l instruction.

§

I2F = 175

i2f instruction.

§

I2D = 176

i2d instruction.

§

L2I = 177

l2i instruction.

§

L2F = 178

l2f instruction.

§

L2D = 179

l2d instruction.

§

F2I = 180

f2i instruction.

§

F2L = 181

f2l instruction.

§

F2D = 182

f2d instruction.

§

D2I = 183

d2i instruction.

§

D2L = 184

d2l instruction.

§

D2F = 185

d2f instruction.

§

LCmp = 186

lcmp instruction.

§

FCmpL = 187

fcmpl instruction.

§

FCmpG = 188

fcmpg instruction.

§

DCmpL = 189

dcmpl instruction.

§

DCmpG = 190

dcmpg instruction.

§

IfEq = 191

ifeq instruction.

§

IfNe = 192

ifne instruction.

§

IfLt = 193

iflt instruction.

§

IfGe = 194

ifge instruction.

§

IfGt = 195

ifgt instruction.

§

IfLe = 196

ifle instruction.

§

IfICmpEq = 197

if_icmpeq instruction.

§

IfICmpNe = 198

if_icmpne instruction.

§

IfICmpLt = 199

if_icmplt instruction.

§

IfICmpGe = 200

if_icmpge instruction.

§

IfICmpGt = 201

if_icmpgt instruction.

§

IfICmpLe = 202

if_icmple instruction.

§

IfACmpEq = 203

if_acmpeq instruction.

§

IfACmpNe = 204

if_acmpne instruction.

§

LeftBrace = 205

Left brace {.

§

RightBrace = 206

Right brace }.

§

LeftBracket = 207

Left bracket [.

§

RightBracket = 208

Right bracket ].

§

LeftParen = 209

Left parenthesis (.

§

RightParen = 210

Right parenthesis ).

§

Comma = 211

Comma ,.

§

Colon = 212

Colon :.

§

Semicolon = 213

Semicolon ;.

§

Eq = 214

Equals =.

§

Dot = 215

Dot ..

§

Slash = 216

Slash /.

§

At = 217

At symbol @.

§

Identifier = 218

Identifier.

§

String = 219

String literal.

§

Number = 220

Number literal.

§

Comment = 221

Comment.

§

Whitespace = 222

Whitespace.

§

Newline = 223

Newline.

§

Eof = 224

End of file.

Trait Implementations§

Source§

impl Clone for JasmTokenType

Source§

fn clone(&self) -> JasmTokenType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JasmTokenType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for JasmTokenType

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<JasmTokenType> for JasmElementType

Source§

fn from(token: JasmTokenType) -> Self

Converts to this type from the input type.
Source§

impl Hash for JasmTokenType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for JasmTokenType

Source§

fn eq(&self, other: &JasmTokenType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for JasmTokenType

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TokenType for JasmTokenType

Source§

const END_OF_STREAM: Self = Self::Eof

A constant representing the end of the input stream.
Source§

type Role = UniversalTokenRole

The associated role type for this token kind.
Source§

fn is_ignored(&self) -> bool

Returns true if this token represents trivia (whitespace, comments, etc.).
Source§

fn role(&self) -> Self::Role

Returns the general syntactic role of this token. Read more
Source§

fn is_role(&self, role: Self::Role) -> bool

Returns true if this token matches the specified language-specific role.
Source§

fn is_universal(&self, role: UniversalTokenRole) -> bool

Returns true if this token matches the specified universal role.
Source§

fn is_comment(&self) -> bool

Returns true if this token represents a comment.
Source§

fn is_whitespace(&self) -> bool

Returns true if this token represents whitespace.
Source§

fn is_error(&self) -> bool

Returns true if this token represents an error condition.
Source§

fn is_end_of_stream(&self) -> bool

Returns true if this token represents the end of the input stream.
Source§

impl Copy for JasmTokenType

Source§

impl Eq for JasmTokenType

Source§

impl StructuralPartialEq for JasmTokenType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,