Class BinaryStubData.OperationValue
java.lang.Object
org.checkerframework.framework.stub.BinaryStubData.OperationValue
- Enclosing class:
BinaryStubData
An operation in a constant expression, evaluated where the stub file is read, by
AnnotationConstants: a unary operation (written 'u'), a binary operation (
'b'), a conditional expression ('?'), or a cast ('x').-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal charThe kind of operation:'u','b','?', or'x'.final Object[]The operands, which are values of any kind but a class literal or an annotation.final StringThe operator's Java token, such as"-"or">>>"; for a cast, the name of the type; for a conditional expression,"?:". -
Constructor Summary
ConstructorsConstructorDescriptionOperationValue(char kind, String operator, Object... operands) Constructs an OperationValue. -
Method Summary
-
Field Details
-
kind
public final char kindThe kind of operation:'u','b','?', or'x'. -
operator
The operator's Java token, such as"-"or">>>"; for a cast, the name of the type; for a conditional expression,"?:". -
operands
The operands, which are values of any kind but a class literal or an annotation.
-
-
Constructor Details
-
OperationValue
Constructs an OperationValue.- Parameters:
kind- the kind of operationoperator- the operator's token or the type of a castoperands- the operands
-