Klasse Block


public class Block extends Statement
Block statement AST node type.
 Block:
    { { Statement } }
 
Seit:
2.0
  • Felddetails

    • STATEMENTS_PROPERTY

      public static final ChildListPropertyDescriptor STATEMENTS_PROPERTY
      The "statements" structural property of this node type (element type: Statement).
      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
    • statements

      public List statements()
      Returns the live list of statements in this block. Adding and removing nodes from this list affects this node dynamically. All nodes in this list must be Statements; attempts to add any other type of node will trigger an exception.
      Gibt zurück:
      the live list of statements in this block (element type: Statement)