Uses of Enum
spoon.reflect.code.BinaryOperatorKind
Packages that use BinaryOperatorKind
Package
Description
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
This package defines all the sub-factories for the Spoon meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
-
Uses of BinaryOperatorKind in spoon.reflect.code
Methods in spoon.reflect.code that return BinaryOperatorKindModifier and TypeMethodDescriptionCtBinaryOperator.getKind()
Gets the kind of this binary operator.CtOperatorAssignment.getKind()
Gets the operator kind.static BinaryOperatorKind
Returns the enum constant of this type with the specified name.static BinaryOperatorKind[]
BinaryOperatorKind.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 BinaryOperatorKindModifier and TypeMethodDescription<C extends CtBinaryOperator<T>>
CCtBinaryOperator.setKind(BinaryOperatorKind kind)
Sets the kind of this binary operator.<C extends CtOperatorAssignment<T, A>>
CCtOperatorAssignment.setKind(BinaryOperatorKind kind)
Sets the operator kind. -
Uses of BinaryOperatorKind in spoon.reflect.factory
Methods in spoon.reflect.factory with parameters of type BinaryOperatorKindModifier and TypeMethodDescription<T> CtBinaryOperator<T>
CodeFactory.createBinaryOperator(CtExpression<?> left, CtExpression<?> right, BinaryOperatorKind kind)
Creates a binary operator.<T> CtBinaryOperator<T>
Factory.createBinaryOperator(CtExpression<?> left, CtExpression<?> right, BinaryOperatorKind kind)
<T> CtBinaryOperator<T>
FactoryImpl.createBinaryOperator(CtExpression<?> left, CtExpression<?> right, BinaryOperatorKind kind)
-
Uses of BinaryOperatorKind in spoon.reflect.visitor
Methods in spoon.reflect.visitor with parameters of type BinaryOperatorKindModifier and TypeMethodDescriptionOperatorHelper.getOperatorAssociativity(BinaryOperatorKind o)
Get the associativity of a binary operator as defined by https://introcs.cs.princeton.edu/java/11precedence/ All binary operators are left-associative in Java, except for the relational operators that have no associativity (i.e.static int
OperatorHelper.getOperatorPrecedence(BinaryOperatorKind o)
Get the precedence of a binary operator as defined by https://introcs.cs.princeton.edu/java/11precedence/static String
OperatorHelper.getOperatorText(BinaryOperatorKind o)
Gets the representation of the operator in the source code.static Optional<CtTypeReference<?>>
OperatorHelper.getPromotedType(BinaryOperatorKind operator, CtExpression<?> left, CtExpression<?> right)
Get the promoted type of the binary operator, as defined by the Java Language Specification. -
Uses of BinaryOperatorKind in spoon.support.reflect.code
Methods in spoon.support.reflect.code that return BinaryOperatorKindModifier and TypeMethodDescriptionCtBinaryOperatorImpl.getKind()
CtOperatorAssignmentImpl.getKind()
Methods in spoon.support.reflect.code with parameters of type BinaryOperatorKindModifier and TypeMethodDescription<C extends CtBinaryOperator<T>>
CCtBinaryOperatorImpl.setKind(BinaryOperatorKind kind)
<C extends CtOperatorAssignment<T, A>>
CCtOperatorAssignmentImpl.setKind(BinaryOperatorKind kind)