public class AssignmentExpression extends Expression
| Modifier and Type | Field and Description |
|---|---|
static TokenRole |
ADD_ROLE |
static TokenRole |
ANY_ROLE |
static TokenRole |
ASSIGN_ROLE |
static TokenRole |
BITWISE_AND_ROLE |
static TokenRole |
BITWISE_OR_ROLE |
static TokenRole |
DIVIDE_ROLE |
static TokenRole |
EXCLUSIVE_OR_ROLE |
static Role<Expression> |
LEFT_ROLE |
static TokenRole |
MODULUS_ROLE |
static TokenRole |
MULTIPLY_ROLE |
static Role<Expression> |
RIGHT_ROLE |
static TokenRole |
SHIFT_LEFT_ROLE |
static TokenRole |
SHIFT_RIGHT_ROLE |
static TokenRole |
SUBTRACT_ROLE |
static TokenRole |
UNSIGNED_SHIFT_RIGHT_ROLE |
MYSTERY_OFFSET, NULLAST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Constructor and Description |
|---|
AssignmentExpression(Expression left,
AssignmentOperatorType operator,
Expression right) |
AssignmentExpression(Expression left,
Expression right) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
static AssignmentOperatorType |
getCorrespondingAssignmentOperator(BinaryOperatorType operator) |
static BinaryOperatorType |
getCorrespondingBinaryOperator(AssignmentOperatorType operator) |
Expression |
getLeft() |
AssignmentOperatorType |
getOperator() |
static TokenRole |
getOperatorRole(AssignmentOperatorType operator) |
JavaTokenNode |
getOperatorToken() |
Expression |
getRight() |
boolean |
matches(INode other,
Match match) |
void |
setLeft(Expression value) |
void |
setOperator(AssignmentOperatorType operator) |
void |
setRight(Expression value) |
clone, forPattern, getNodeType, getOffset, invoke, invoke, invoke, invoke, invoke, invoke, member, setOffsetaddChild, contains, contains, copyUserDataFrom, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getRole, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, toStringpublic static final Role<Expression> LEFT_ROLE
public static final Role<Expression> RIGHT_ROLE
public static final TokenRole ASSIGN_ROLE
public static final TokenRole ADD_ROLE
public static final TokenRole SUBTRACT_ROLE
public static final TokenRole MULTIPLY_ROLE
public static final TokenRole DIVIDE_ROLE
public static final TokenRole MODULUS_ROLE
public static final TokenRole SHIFT_LEFT_ROLE
public static final TokenRole SHIFT_RIGHT_ROLE
public static final TokenRole UNSIGNED_SHIFT_RIGHT_ROLE
public static final TokenRole BITWISE_AND_ROLE
public static final TokenRole BITWISE_OR_ROLE
public static final TokenRole EXCLUSIVE_OR_ROLE
public static final TokenRole ANY_ROLE
public AssignmentExpression(Expression left, Expression right)
public AssignmentExpression(Expression left, AssignmentOperatorType operator, Expression right)
public final AssignmentOperatorType getOperator()
public final void setOperator(AssignmentOperatorType operator)
public final JavaTokenNode getOperatorToken()
public final Expression getLeft()
public final void setLeft(Expression value)
public final Expression getRight()
public final void setRight(Expression value)
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNodepublic static TokenRole getOperatorRole(AssignmentOperatorType operator)
public static BinaryOperatorType getCorrespondingBinaryOperator(AssignmentOperatorType operator)
public static AssignmentOperatorType getCorrespondingAssignmentOperator(BinaryOperatorType operator)