Class BinaryStubData.OperationValue

java.lang.Object
org.checkerframework.framework.stub.BinaryStubData.OperationValue
Enclosing class:
BinaryStubData

public static class BinaryStubData.OperationValue extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    final char
    The 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 String
    The operator's Java token, such as "-" or ">>>"; for a cast, the name of the type; for a conditional expression, "?:".
  • Constructor Summary

    Constructors
    Constructor
    Description
    OperationValue(char kind, String operator, Object... operands)
    Constructs an OperationValue.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • kind

      public final char kind
      The kind of operation: 'u', 'b', '?', or 'x'.
    • operator

      public final String operator
      The operator's Java token, such as "-" or ">>>"; for a cast, the name of the type; for a conditional expression, "?:".
    • operands

      public final Object[] operands
      The operands, which are values of any kind but a class literal or an annotation.
  • Constructor Details

    • OperationValue

      public OperationValue(char kind, String operator, Object... operands)
      Constructs an OperationValue.
      Parameters:
      kind - the kind of operation
      operator - the operator's token or the type of a cast
      operands - the operands