Class EitherOrMultiPattern


public class EitherOrMultiPattern extends Pattern
EitherOrMultiPattern AST node type.
 
 EitherOrMultiPattern:
      Pattern, Pattern, Pattern....
 
 
Since:
3.37
  • Field Details

  • Method Details

    • 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)
    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel, boolean previewEnabled)
      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
      previewEnabled - the previewEnabled flag
      Returns:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
    • patterns

      public List<Pattern> patterns()
      Returns the "alternatives" Pattern list.
      Returns:
      the live list of pattern nodes (element type: Pattern)
      Throws:
      UnsupportedOperationException - if this operation is used other than JLS21
      UnsupportedOperationException - if this expression is used with previewEnabled flag as false