public class UnaryOperatorExpression extends Expression
| Modifier and Type | Field and Description |
|---|---|
static TokenRole |
ADDRESS_OF_ROLE |
static TokenRole |
BITWISE_NOT_ROLE |
static TokenRole |
DECREMENT_ROLE |
static TokenRole |
DEREFERENCE_ROLE |
static TokenRole |
INCREMENT_ROLE |
static TokenRole |
MINUS_ROLE |
static TokenRole |
NOT_ROLE |
static TokenRole |
PLUS_ROLE |
MYSTERY_OFFSET, NULLAST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Constructor and Description |
|---|
UnaryOperatorExpression(UnaryOperatorType operator,
Expression expression) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
Expression |
getExpression() |
UnaryOperatorType |
getOperator() |
static TokenRole |
getOperatorRole(UnaryOperatorType operator) |
JavaTokenNode |
getOperatorToken() |
boolean |
matches(INode other,
Match match) |
void |
setExpression(Expression value) |
void |
setOperator(UnaryOperatorType operator) |
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 TokenRole NOT_ROLE
public static final TokenRole BITWISE_NOT_ROLE
public static final TokenRole MINUS_ROLE
public static final TokenRole PLUS_ROLE
public static final TokenRole INCREMENT_ROLE
public static final TokenRole DECREMENT_ROLE
public static final TokenRole DEREFERENCE_ROLE
public static final TokenRole ADDRESS_OF_ROLE
public UnaryOperatorExpression(UnaryOperatorType operator, Expression expression)
public final UnaryOperatorType getOperator()
public final void setOperator(UnaryOperatorType operator)
public final JavaTokenNode getOperatorToken()
public final Expression getExpression()
public final void setExpression(Expression value)
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNodepublic static TokenRole getOperatorRole(UnaryOperatorType operator)