Klasse 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'
  • Felddetails

    • 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
  • 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
    • parentTypePatterns

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

      public AbstractTypePattern getChildTypePattern()
    • setChildTypePattern

      public void setChildTypePattern(AbstractTypePattern typePattern)
    • isExtends

      public boolean isExtends()
      Returns whether this declareParents declares an extends or implements.
      Gibt zurück:
      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.
      Parameter:
      isExtends - true for an extends declaration, and false for an implements declaration