Uses of Enum
spoon.reflect.code.UnaryOperatorKind
Packages that use 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
Methods in spoon.reflect.code that return UnaryOperatorKindModifier and TypeMethodDescriptionCtUnaryOperator.getKind()Gets the kind of this operator.static UnaryOperatorKindReturns 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.Methods in spoon.reflect.code with parameters of type UnaryOperatorKindModifier and TypeMethodDescription<C extends CtUnaryOperator>
CCtUnaryOperator.setKind(UnaryOperatorKind kind)Sets the kind of this operator. -
Uses of UnaryOperatorKind in spoon.reflect.visitor
Methods in spoon.reflect.visitor with parameters of type UnaryOperatorKindModifier 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 intOperatorHelper.getOperatorPrecedence(UnaryOperatorKind o)Get the precedence of a unary operator as defined by https://introcs.cs.princeton.edu/java/11precedence/static StringOperatorHelper.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 booleanOperatorHelper.isPrefixOperator(UnaryOperatorKind o)Checks if the operator is a prefix operator.static booleanOperatorHelper.isSufixOperator(UnaryOperatorKind o)Checks if the operator is a suffix operator. -
Uses of UnaryOperatorKind in spoon.support.reflect.code
Methods in spoon.support.reflect.code that return UnaryOperatorKindMethods in spoon.support.reflect.code with parameters of type UnaryOperatorKindModifier and TypeMethodDescription<C extends CtUnaryOperator>
CCtUnaryOperatorImpl.setKind(UnaryOperatorKind kind)