Klasse AjTypeDeclaration

Bekannte direkte Unterklassen:
AspectDeclaration

public class AjTypeDeclaration extends TypeDeclaration
This subtype of TypeDeclaration allows for the extensions that AspectJ has for types - they might be aspects and pointcuts may exist in classes. This type does not represent an aspect, that is represented by AspectDeclaration, a further subtype of AjTypeDeclaration.
  • Felddetails

    • ASPECT_PROPERTY

      public static final SimplePropertyDescriptor ASPECT_PROPERTY
      The "aspect" structural property of this node type.
      Seit:
      3.0
    • ajPROPERTY_DESCRIPTORS_2_0

      protected static List ajPROPERTY_DESCRIPTORS_2_0
    • ajPROPERTY_DESCRIPTORS_3_0

      protected static List ajPROPERTY_DESCRIPTORS_3_0
  • Konstruktordetails

    • AjTypeDeclaration

      public AjTypeDeclaration(AST ast)
      Creates a new AST node for a type declaration owned by the given AST. By default, the type declaration is for a class of an unspecified, but legal, name; no modifiers; no javadoc; no type parameters; no superclass or superinterfaces; and an empty list of body declarations.

      N.B. This constructor is package-private; all subclasses must be declared in the same package; clients are unable to declare additional subclasses.

      Parameter:
      ast - the AST that is to own this node
  • 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
    • isAspect

      public boolean isAspect()
      Returns whether this type declaration declares a class or an aspect.
      Gibt zurück:
      true if this is an aspect declaration, and false if this is a class or interface declaration
    • setAspect

      public void setAspect(boolean isAspect)
      Sets whether this type declaration declares a class or an aspect.
      Parameter:
      isAspect - true if this is an aspect declaration, and false if this is a class or interface declaration
    • getPointcuts

      public PointcutDeclaration[] getPointcuts()
    • getSuperInterfaceNames

      public org.aspectj.org.eclipse.jdt.core.dom.ASTNode.NodeList getSuperInterfaceNames()
    • getTypeParameters

      public org.aspectj.org.eclipse.jdt.core.dom.ASTNode.NodeList getTypeParameters()