Class EitherOrMultiPattern


public class EitherOrMultiPattern extends Pattern
EitherOrMultiPattern AST node type.
 
 EitherOrMultiPattern:
      Pattern, Pattern, Pattern....
 
 
Since:
3.37
Restriction:
This class is not intended to be referenced by clients.
Restriction:
This class is not intended to be instantiated by clients.
  • 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)
      Restriction:
      This method is not intended to be referenced by clients.
    • 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)
      Restriction:
      This method is not intended to be referenced by clients.
    • 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
      Restriction:
      This method is not intended to be referenced by clients as it is a part of Java preview feature.