pub enum JavaTokenType {
Show 113 variants
Whitespace,
LineComment,
BlockComment,
Identifier,
StringLiteral,
CharacterLiteral,
IntegerLiteral,
FloatingPointLiteral,
BooleanLiteral,
NullLiteral,
Abstract,
Assert,
Boolean,
Break,
Byte,
Case,
Catch,
Char,
Class,
Const,
Continue,
Default,
Do,
Double,
Else,
Enum,
Extends,
Final,
Finally,
Float,
For,
If,
Goto,
Implements,
Import,
Instanceof,
Int,
Interface,
Long,
Native,
New,
Package,
Private,
Protected,
Public,
Record,
Return,
Short,
Static,
Strictfp,
Struct,
Super,
Switch,
Synchronized,
This,
Throw,
Throws,
Transient,
Try,
Void,
Volatile,
While,
Plus,
PlusPlus,
PlusEquals,
Minus,
MinusMinus,
MinusEquals,
Asterisk,
AsteriskEquals,
Slash,
SlashEquals,
Percent,
PercentEquals,
Assign,
Equals,
Bang,
BangEquals,
LessThan,
LessThanEquals,
LeftShift,
LeftShiftEquals,
GreaterThan,
GreaterThanEquals,
RightShift,
RightShiftEquals,
UnsignedRightShift,
UnsignedRightShiftEquals,
Ampersand,
AmpersandAmpersand,
AmpersandEquals,
Pipe,
PipePipe,
PipeEquals,
Caret,
CaretEquals,
Tilde,
Question,
Colon,
Semicolon,
Comma,
Dot,
Ellipsis,
LeftParen,
RightParen,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
At,
DoubleColon,
Error,
EndOfFile,
}Variants§
Whitespace
LineComment
BlockComment
Identifier
StringLiteral
CharacterLiteral
IntegerLiteral
FloatingPointLiteral
BooleanLiteral
NullLiteral
Abstract
Assert
Boolean
Break
Byte
Case
Catch
Char
Class
Const
Continue
Default
Do
Double
Else
Enum
Extends
Final
Finally
Float
For
If
Goto
Implements
Import
Instanceof
Int
Interface
Long
Native
New
Package
Private
Protected
Public
Record
Return
Short
Static
Strictfp
Struct
Super
Switch
Synchronized
This
Throw
Throws
Transient
Try
Void
Volatile
While
Plus
PlusPlus
PlusEquals
Minus
MinusMinus
MinusEquals
Asterisk
AsteriskEquals
Slash
SlashEquals
Percent
PercentEquals
Assign
Equals
Bang
BangEquals
LessThan
LessThanEquals
LeftShift
LeftShiftEquals
GreaterThan
GreaterThanEquals
RightShift
RightShiftEquals
UnsignedRightShift
UnsignedRightShiftEquals
Ampersand
AmpersandAmpersand
AmpersandEquals
Pipe
PipePipe
PipeEquals
Caret
CaretEquals
Tilde
Question
Colon
Semicolon
Comma
Dot
Ellipsis
LeftParen
RightParen
LeftBrace
RightBrace
LeftBracket
RightBracket
At
DoubleColon
Error
EndOfFile
Implementations§
Source§impl JavaTokenType
impl JavaTokenType
pub fn is_keyword(&self) -> bool
Trait Implementations§
Source§impl Clone for JavaTokenType
impl Clone for JavaTokenType
Source§fn clone(&self) -> JavaTokenType
fn clone(&self) -> JavaTokenType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JavaTokenType
impl Debug for JavaTokenType
Source§impl<'de> Deserialize<'de> for JavaTokenType
impl<'de> Deserialize<'de> for JavaTokenType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<JavaTokenType> for JavaElementType
impl From<JavaTokenType> for JavaElementType
Source§fn from(token: JavaTokenType) -> Self
fn from(token: JavaTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for JavaTokenType
impl Hash for JavaTokenType
Source§impl PartialEq for JavaTokenType
impl PartialEq for JavaTokenType
Source§impl Serialize for JavaTokenType
impl Serialize for JavaTokenType
Source§impl TokenType for JavaTokenType
impl TokenType for JavaTokenType
Source§const END_OF_STREAM: Self = Self::EndOfFile
const END_OF_STREAM: Self = Self::EndOfFile
A constant representing the end of the input stream. Read more
Source§type Role = UniversalTokenRole
type Role = UniversalTokenRole
The associated role type for this token kind.
Source§fn is_role(&self, role: Self::Role) -> bool
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
fn is_universal(&self, role: UniversalTokenRole) -> bool
Returns true if this token matches the specified universal role.
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this token represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this token represents whitespace. Read more
Source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this token represents an error condition. Read more
Source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns true if this token represents trivia (whitespace, comments, etc.). Read more
Source§fn is_end_of_stream(&self) -> bool
fn is_end_of_stream(&self) -> bool
Returns true if this token represents the end of the input stream. Read more
impl Copy for JavaTokenType
impl Eq for JavaTokenType
impl StructuralPartialEq for JavaTokenType
Auto Trait Implementations§
impl Freeze for JavaTokenType
impl RefUnwindSafe for JavaTokenType
impl Send for JavaTokenType
impl Sync for JavaTokenType
impl Unpin for JavaTokenType
impl UnwindSafe for JavaTokenType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more