
javacc.parser.ast.expr.AssignExpr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applinker Show documentation
Show all versions of applinker Show documentation
An utility to upload APIs of Java files to the specification
The newest version!
/*
* Created on 05/10/2006
*/
package javacc.parser.ast.expr;
import javacc.parser.ast.visitor.GenericVisitor;
import javacc.parser.ast.visitor.VoidVisitor;
/**
* @author Julio Vilmar Gesser
*/
public final class AssignExpr extends Expression {
public static enum Operator {
assign, // =
plus, // +=
minus, // -=
star, // *=
slash, // /=
and, // &=
or, // |=
xor, // ^=
rem, // %=
lShift, // <<=
rSignedShift, // >>=
rUnsignedShift, // >>>=
}
public final Expression target;
public final Expression value;
public final Operator op;
public AssignExpr(Expression target, Expression value, Operator op) {
this.target = target;
this.value = value;
this.op = op;
}
@Override
public void accept(VoidVisitor v, A arg) {
v.visit(this, arg);
}
@Override
public R accept(GenericVisitor v, A arg) {
return v.visit(this, arg);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy