Class ValueLiteral

java.lang.Object
org.checkerframework.dataflow.expression.JavaExpression
org.checkerframework.dataflow.expression.ValueLiteral

public class ValueLiteral extends JavaExpression
JavaExpression for literals.
  • Field Details

    • value

      protected final @Nullable Object value
      The value of the literal.
  • Constructor Details

    • ValueLiteral

      public ValueLiteral(TypeMirror type, ValueLiteralNode node)
      Creates a ValueLiteral from the node with the given type.
      Parameters:
      type - type of the literal
      node - the literal represents by this ValueLiteral
    • ValueLiteral

      public ValueLiteral(TypeMirror type, @Nullable Object value)
      Creates a ValueLiteral where the value is value that has the given type.
      Parameters:
      type - type of the literal
      value - the literal value
  • Method Details