Enum BooleanLiteralSet

java.lang.Object
java.lang.Enum<BooleanLiteralSet>
com.google.javascript.rhino.jstype.BooleanLiteralSet
All Implemented Interfaces:
Serializable, Comparable<BooleanLiteralSet>, java.lang.constant.Constable

public enum BooleanLiteralSet extends Enum<BooleanLiteralSet>
A set in the domain {true,false}. There are four possible sets: {}, {true}, {false}, {true,false}.
  • Enum Constant Details

  • Method Details

    • values

      public static BooleanLiteralSet[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BooleanLiteralSet valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • intersection

      public BooleanLiteralSet intersection(BooleanLiteralSet that)
      Computes the intersection of this set and that.
    • union

      public BooleanLiteralSet union(BooleanLiteralSet that)
      Computes the union of this set and that.
    • contains

      public boolean contains(boolean literalValue)
      Returns whether this contains the given literal value.
    • get

      public static BooleanLiteralSet get(boolean literalValue)
      Returns the singleton set {literalValue}.