Klasse IntersectionType


public class IntersectionType extends Type
Type node for an intersection type in a cast expression (added in JLS8 API).
 IntersectionType:
    Type & Type { & Type }
 

This kind of node is used only inside a cast expression.

Seit:
3.10
  • Felddetails

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

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