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>,
    },
    ArrayInit {
        items: Vec<Expr>,
    },
    Cast {
        ty: Type,
        expr: Box<Expr>,
    },
    InstanceCreation {
        name: Path,
        args: Vec<Expr>,
        body: Option<Vec<ClassMember>>,
    },
    ArrayCreation {
        ty: Type,
        expr_dims: Vec<Expr>,
        empty_dims: Dims,
        init: Option<Box<Expr>>,
    },
}

Variants

Fields of Conditional

Fields of BinOp

Fields of UnaryOp

Fields of FieldAccess

Fields of ArrayAccess

Fields of MethodInvocation

Fields of ArrayInit

Fields of Cast

Fields of InstanceCreation

Fields of ArrayCreation

Trait Implementations

impl Clone for ExprType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ExprType
[src]

Formats the value using the given formatter.