Uses of Enum
spoon.reflect.code.UnaryOperatorKind
Package
Description
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
-
Uses of UnaryOperatorKind in spoon.reflect.code
Modifier and TypeMethodDescriptionCtUnaryOperator.getKind()
Gets the kind of this operator.static UnaryOperatorKind
Returns the enum constant of this type with the specified name.static UnaryOperatorKind[]
UnaryOperatorKind.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescription<C extends CtUnaryOperator>
CCtUnaryOperator.setKind(UnaryOperatorKind kind)
Sets the kind of this operator. -
Uses of UnaryOperatorKind in spoon.reflect.visitor
Modifier and TypeMethodDescriptionOperatorHelper.getOperatorAssociativity(UnaryOperatorKind o)
Get the associativity of a unary operator, as defined by https://introcs.cs.princeton.edu/java/11precedence/ All unary operators are right-associative, except for post increment and decrement, which are not associative.static int
OperatorHelper.getOperatorPrecedence(UnaryOperatorKind o)
Get the precedence of a unary operator as defined by https://introcs.cs.princeton.edu/java/11precedence/static String
OperatorHelper.getOperatorText(UnaryOperatorKind o)
Gets the representation of the operator in the source code.static Optional<CtTypeReference<?>>
OperatorHelper.getPromotedType(UnaryOperatorKind operator, CtExpression<?> operand)
Gets the promoted type of the unary operator, as defined by the Java Language Specification.static boolean
OperatorHelper.isPrefixOperator(UnaryOperatorKind o)
Checks if the operator is a prefix operator.static boolean
OperatorHelper.isSufixOperator(UnaryOperatorKind o)
Checks if the operator is a suffix operator. -
Uses of UnaryOperatorKind in spoon.support.reflect.code
Modifier and TypeMethodDescription<C extends CtUnaryOperator>
CCtUnaryOperatorImpl.setKind(UnaryOperatorKind kind)