Class BooleanLiteral


  • public class BooleanLiteral
    extends Expression
    Boolean literal node.
     BooleanLiteral:
                    true
                    false
     
    Since:
    2.0
    Restriction:
    This class is not intended to be instantiated by clients.
    • Field Detail

      • BOOLEAN_VALUE_PROPERTY

        public static final SimplePropertyDescriptor BOOLEAN_VALUE_PROPERTY
        The "booleanValue" structural property of this node type (type: Boolean).
        Since:
        3.0
    • Method Detail

      • propertyDescriptors

        public static List propertyDescriptors​(int apiLevel)
        Returns a list of structural property descriptors for this node type. Clients must not modify the result.
        Parameters:
        apiLevel - the API level; one of the AST.JLS* constants
        Returns:
        a list of property descriptors (element type: StructuralPropertyDescriptor)
        Since:
        3.0
      • booleanValue

        public boolean booleanValue()
        Returns the boolean value of this boolean literal node.
        Returns:
        true for the boolean literal spelled "true", and false for the boolean literal spelled "false".
      • setBooleanValue

        public void setBooleanValue​(boolean value)
        Sets the boolean value of this boolean literal node.
        Parameters:
        value - true for the boolean literal spelled "true", and false for the boolean literal spelled "false".