Enum xswag_syntax_java::ast::block::ExprType [] [src]

pub enum ExprType {
    Conditional {
        cond: Box<Expr>,
        if_branch: Box<Expr>,
        else_branch: Box<Expr>,
    },
    BinOp {
        op: BinOpType,
        lhs: Box<Expr>,
        rhs: Box<Expr>,
    },
    UnaryOp {
        op: UnaryOpType,
        expr: Box<Expr>,
    },
    Literal(Lit),
    ClassLiteral(Type),
    Name(Path),
    This,
    FieldAccess {
        root: Option<Box<Expr>>,
        path: Path,
    },
    ArrayAccess {
        obj: Box<Expr>,
        idx: Box<Expr>,
    },
    MethodInvocation {
        name: MethodInvocationType,
        args: Vec<Expr>,
    },
}

Variants

Conditional

Fields

cond: Box<Expr>
if_branch: Box<Expr>
else_branch: Box<Expr>
BinOp

Fields

op: BinOpType
lhs: Box<Expr>
rhs: Box<Expr>
UnaryOp

Fields

op: UnaryOpType
expr: Box<Expr>
Literal(Lit)ClassLiteral(Type)Name(Path)ThisFieldAccess

Fields

root: Option<Box<Expr>>
path: Path
ArrayAccess

Fields

obj: Box<Expr>
idx: Box<Expr>
MethodInvocation

Fields

name: MethodInvocationType
args: Vec<Expr>

Trait Implementations

impl Debug for ExprType
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ExprType
[src]

fn clone(&self) -> ExprType

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more