Class UnaryOperatorExpression
- java.lang.Object
-
- com.strobel.core.Freezable
-
- com.strobel.decompiler.languages.java.ast.AstNode
-
- com.strobel.decompiler.languages.java.ast.Expression
-
- com.strobel.decompiler.languages.java.ast.UnaryOperatorExpression
-
- All Implemented Interfaces:
UserDataStore
,IFreezable
,INode
,java.lang.Cloneable
public class UnaryOperatorExpression extends Expression
-
-
Field Summary
Fields Modifier and Type Field Description private UnaryOperatorType
_operator
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
-
Fields inherited from class com.strobel.decompiler.languages.java.ast.Expression
EMPTY_EXPESSIONS, MYSTERY_OFFSET, NULL
-
Fields inherited from class com.strobel.decompiler.languages.java.ast.AstNode
AST_NODE_USED_FLAGS, flags, FROZEN_BIT, ROLE_INDEX_MASK, ROOT_ROLE
-
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
-
Constructor Summary
Constructors Constructor Description UnaryOperatorExpression(UnaryOperatorType operator, Expression expression)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,R>
RacceptVisitor(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)
-
Methods inherited from class com.strobel.decompiler.languages.java.ast.Expression
cast, clone, forPattern, getNodeType, getOffset, getRole, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, makeReturn, makeThrow, member, member, setOffset
-
Methods inherited from class com.strobel.decompiler.languages.java.ast.AstNode
addChild, addChildUnsafe, contains, contains, copyUserDataFrom, debugToString, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildBeforeUnsafe, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, makeOptional, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, setRoleUnsafe, toString, withName
-
Methods inherited from class com.strobel.core.Freezable
canFreeze, freeze, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozen
-
-
-
-
Field Detail
-
NOT_ROLE
public static final TokenRole NOT_ROLE
-
BITWISE_NOT_ROLE
public static final TokenRole BITWISE_NOT_ROLE
-
MINUS_ROLE
public static final TokenRole MINUS_ROLE
-
PLUS_ROLE
public static final TokenRole PLUS_ROLE
-
INCREMENT_ROLE
public static final TokenRole INCREMENT_ROLE
-
DECREMENT_ROLE
public static final TokenRole DECREMENT_ROLE
-
DEREFERENCE_ROLE
public static final TokenRole DEREFERENCE_ROLE
-
ADDRESS_OF_ROLE
public static final TokenRole ADDRESS_OF_ROLE
-
_operator
private UnaryOperatorType _operator
-
-
Constructor Detail
-
UnaryOperatorExpression
public UnaryOperatorExpression(UnaryOperatorType operator, Expression expression)
-
-
Method Detail
-
getOperator
public final UnaryOperatorType getOperator()
-
setOperator
public final void setOperator(UnaryOperatorType operator)
-
getOperatorToken
public final JavaTokenNode getOperatorToken()
-
getExpression
public final Expression getExpression()
-
setExpression
public final void setExpression(Expression value)
-
acceptVisitor
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
- Specified by:
acceptVisitor
in classAstNode
-
getOperatorRole
public static TokenRole getOperatorRole(UnaryOperatorType operator)
-
-