Klasse AdviceDeclaration

Bekannte direkte Unterklassen:
AfterAdviceDeclaration, AroundAdviceDeclaration, BeforeAdviceDeclaration

public abstract class AdviceDeclaration extends BodyDeclaration
AdviceDeclaration DOM AST node. Source code forked from MethodDeclaration. An abstract AdviceDeclaration is just like a MethodDeclaration, but without a name or return type.
Autor:
ajh02
  • Felddetails

    • JAVADOC_PROPERTY

      public static final ChildPropertyDescriptor JAVADOC_PROPERTY
      The "javadoc" structural property of this node type.
      Seit:
      3.0
    • PARAMETERS_PROPERTY

      public static final ChildListPropertyDescriptor PARAMETERS_PROPERTY
      The "parameters" structural property of this node type).
      Seit:
      3.0
    • POINTCUT_PROPERTY

      public static final ChildPropertyDescriptor POINTCUT_PROPERTY
    • THROWN_EXCEPTIONS_PROPERTY

      public static final ChildListPropertyDescriptor THROWN_EXCEPTIONS_PROPERTY
      The "thrownExceptions" structural property of this node type).
      Seit:
      3.0
    • BODY_PROPERTY

      public static final ChildPropertyDescriptor BODY_PROPERTY
      The "body" structural property of this node type.
      Seit:
      3.0
    • PROPERTY_DESCRIPTORS_2_0

      protected static List PROPERTY_DESCRIPTORS_2_0
      A list of property descriptors (element type: StructuralPropertyDescriptor), or null if uninitialized.
      Seit:
      3.0
    • PROPERTY_DESCRIPTORS_3_0

      protected static List PROPERTY_DESCRIPTORS_3_0
      A list of property descriptors (element type: StructuralPropertyDescriptor), or null if uninitialized.
      Seit:
      3.1
    • parameters

      protected org.aspectj.org.eclipse.jdt.core.dom.ASTNode.NodeList parameters
      The parameter declarations (element type: SingleVariableDeclaration). Defaults to an empty list.
    • thrownExceptions

      protected org.aspectj.org.eclipse.jdt.core.dom.ASTNode.NodeList thrownExceptions
      The list of thrown exception names (element type: Name). Defaults to an empty list.
  • 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
    • getPointcut

      public PointcutDesignator getPointcut()
    • setPointcut

      public void setPointcut(PointcutDesignator pointcut)
    • parameters

      public List parameters()
      Returns the live ordered list of method parameter declarations for this method declaration.
      Gibt zurück:
      the live list of method parameter declarations (element type: SingleVariableDeclaration)
    • thrownExceptions

      public List thrownExceptions()
      Returns the live ordered list of thrown exception names in this method declaration.
      Gibt zurück:
      the live list of exception names (element type: Name)
    • getBody

      public Block getBody()
      Returns the body of this method declaration, or null if this method has no body.

      Note that there is a subtle difference between having no body and having an empty body ("{}").

      Gibt zurück:
      the method body, or null if this method has no body
    • setBody

      public void setBody(Block body)
      Sets or clears the body of this method declaration.

      Note that there is a subtle difference between having no body (as in "void foo();") and having an empty body (as in "void foo() {}"). Abstract methods, and methods declared in interfaces, have no body. Non-abstract methods, and all constructors, have a body.

      Parameter:
      body - the block node, or null if there is none
      Löst aus:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent
      • a cycle in would be created