pub enum JavaElementType {
Show 44 variants
Token(JavaTokenType),
Root,
Identifier,
LiteralExpression,
ParenthesizedExpression,
ArrayCreation,
MethodCall,
UnaryExpression,
BinaryExpression,
AssignmentExpression,
CastExpression,
PostfixExpression,
TernaryExpression,
MemberSelect,
ArrayAccess,
NewExpression,
VariableDeclaration,
ExpressionStatement,
IfStatement,
WhileStatement,
DoWhileStatement,
ForStatement,
SwitchStatement,
ReturnStatement,
Break,
Continue,
Parameter,
CatchClause,
TryStatement,
ThrowStatement,
Package,
Import,
ClassDeclaration,
InterfaceDeclaration,
EnumDeclaration,
StructDeclaration,
RecordDeclaration,
MethodDeclaration,
FieldDeclaration,
SwitchCase,
DefaultCase,
BlockStatement,
CompilationUnit,
Error,
}Variants§
Token(JavaTokenType)
Root
Identifier
LiteralExpression
ParenthesizedExpression
ArrayCreation
MethodCall
UnaryExpression
BinaryExpression
AssignmentExpression
CastExpression
PostfixExpression
TernaryExpression
MemberSelect
ArrayAccess
NewExpression
VariableDeclaration
ExpressionStatement
IfStatement
WhileStatement
DoWhileStatement
ForStatement
SwitchStatement
ReturnStatement
Break
Continue
Parameter
CatchClause
TryStatement
ThrowStatement
Package
Import
ClassDeclaration
InterfaceDeclaration
EnumDeclaration
StructDeclaration
RecordDeclaration
MethodDeclaration
FieldDeclaration
SwitchCase
DefaultCase
BlockStatement
CompilationUnit
Error
Trait Implementations§
Source§impl Clone for JavaElementType
impl Clone for JavaElementType
Source§fn clone(&self) -> JavaElementType
fn clone(&self) -> JavaElementType
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 JavaElementType
impl Debug for JavaElementType
Source§impl<'de> Deserialize<'de> for JavaElementType
impl<'de> Deserialize<'de> for JavaElementType
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 ElementType for JavaElementType
impl ElementType for JavaElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
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 JavaElementType
impl Hash for JavaElementType
Source§impl PartialEq for JavaElementType
impl PartialEq for JavaElementType
Source§impl Serialize for JavaElementType
impl Serialize for JavaElementType
impl Copy for JavaElementType
impl Eq for JavaElementType
impl StructuralPartialEq for JavaElementType
Auto Trait Implementations§
impl Freeze for JavaElementType
impl RefUnwindSafe for JavaElementType
impl Send for JavaElementType
impl Sync for JavaElementType
impl Unpin for JavaElementType
impl UnwindSafe for JavaElementType
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