pub enum JavaElementType {
Show 55 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,
ThrowsClause,
Package,
Import,
ClassDeclaration,
InterfaceDeclaration,
EnumDeclaration,
StructDeclaration,
RecordDeclaration,
MethodDeclaration,
ConstructorDeclaration,
FieldDeclaration,
Annotation,
SwitchCase,
DefaultCase,
BlockStatement,
CompilationUnit,
Error,
AnonymousClass,
TypeParameter,
TypeParameterConstraint,
GenericType,
LambdaExpression,
AnnotationTypeDeclaration,
AnnotationElement,
EnumConstant,
}Expand description
Java element type.
Variants§
Token(JavaTokenType)
Token.
Root
Root node.
Identifier
Identifier.
LiteralExpression
Literal expression.
ParenthesizedExpression
Parenthesized expression.
ArrayCreation
Array creation expression.
MethodCall
Method call expression.
UnaryExpression
Unary expression.
BinaryExpression
Binary expression.
AssignmentExpression
Assignment expression.
CastExpression
Cast expression.
PostfixExpression
Postfix expression.
TernaryExpression
Ternary expression.
MemberSelect
Member select expression.
ArrayAccess
Array access expression.
NewExpression
New expression.
VariableDeclaration
Variable declaration.
ExpressionStatement
Expression statement.
IfStatement
If statement.
WhileStatement
While statement.
DoWhileStatement
Do-while statement.
ForStatement
For statement.
SwitchStatement
Switch statement.
ReturnStatement
Return statement.
Break
Break statement.
Continue
Continue statement.
Parameter
Parameter.
CatchClause
Catch clause.
TryStatement
Try statement.
ThrowStatement
Throw statement.
ThrowsClause
Throws clause.
Package
Package declaration.
Import
Import declaration.
ClassDeclaration
Class declaration.
InterfaceDeclaration
Interface declaration.
EnumDeclaration
Enum declaration.
StructDeclaration
Struct declaration.
RecordDeclaration
Record declaration.
MethodDeclaration
Method declaration.
ConstructorDeclaration
Constructor declaration.
FieldDeclaration
Field declaration.
Annotation
Annotation.
SwitchCase
Switch case.
DefaultCase
Default case.
BlockStatement
Block statement.
CompilationUnit
Compilation unit.
Error
Error element.
AnonymousClass
Anonymous class.
TypeParameter
Type parameter.
TypeParameterConstraint
Type parameter constraint.
GenericType
Generic type.
LambdaExpression
Lambda expression.
AnnotationTypeDeclaration
Annotation type declaration.
AnnotationElement
Annotation element.
EnumConstant
Enum constant.
Trait Implementations§
Source§impl Clone for JavaElementType
impl Clone for JavaElementType
Source§fn clone(&self) -> JavaElementType
fn clone(&self) -> JavaElementType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for JavaElementType
Source§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>,
Source§impl ElementType for JavaElementType
impl ElementType for JavaElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
impl Eq for JavaElementType
Source§impl From<JavaTokenType> for JavaElementType
impl From<JavaTokenType> for JavaElementType
Source§fn from(token: JavaTokenType) -> Self
fn from(token: JavaTokenType) -> Self
Source§impl Hash for JavaElementType
impl Hash for JavaElementType
Source§impl PartialEq for JavaElementType
impl PartialEq for JavaElementType
Source§fn eq(&self, other: &JavaElementType) -> bool
fn eq(&self, other: &JavaElementType) -> bool
self and other values to be equal, and is used by ==.