Klasse BooleanLiteral


public class BooleanLiteral extends Expression
Boolean literal node.
 BooleanLiteral:
                true
                false
 
Seit:
2.0
  • Felddetails

    • BOOLEAN_VALUE_PROPERTY

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

    • propertyDescriptors

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

      public boolean booleanValue()
      Returns the boolean value of this boolean literal node.
      Gibt zurück:
      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.
      Parameter:
      value - true for the boolean literal spelled "true", and false for the boolean literal spelled "false".