Class DeclareParentsDeclaration


public class DeclareParentsDeclaration extends DeclareDeclaration
DeclareParentsDeclaration DOM AST node. Has everything a DeclareDeclaration has plus: a TypePattern called 'childTypePattern' a boolean called 'isExtends' a TypePattern list called 'typePatternsList'
  • Field Details

    • JAVADOC_PROPERTY

      public static final ChildPropertyDescriptor JAVADOC_PROPERTY
    • CHILD_TYPE_PATTERN_PROPERTY

      public static final ChildPropertyDescriptor CHILD_TYPE_PATTERN_PROPERTY
    • IS_EXTENDS_PROPERTY

      public static final SimplePropertyDescriptor IS_EXTENDS_PROPERTY
    • PARENTS_TYPE_PATTERNS_LIST_PROPERTY

      public static final ChildListPropertyDescriptor PARENTS_TYPE_PATTERNS_LIST_PROPERTY
    • parentTypePatterns

      protected org.aspectj.org.eclipse.jdt.core.dom.ASTNode.NodeList parentTypePatterns
  • 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)
      Since:
      3.0
    • parentTypePatterns

      public List parentTypePatterns()
      Returns the live ordered list of parent type patterns for this declare precedence.
      Returns:
      the live list of parent type patterns (element type: TypePattern)
    • getChildTypePattern

      public TypePattern getChildTypePattern()
    • setChildTypePattern

      public void setChildTypePattern(TypePattern typePattern)
    • isExtends

      public boolean isExtends()
      Returns whether this declareParents declares an extends or implements.
      Returns:
      true if this is an extends declaration, and false if this is an implements declaration
    • setExtends

      public void setExtends(boolean isExtends)
      Sets whether this declareParents declares an extends or implements.
      Parameters:
      isExtends - true for an extends declaration, and false for an implements declaration