Klasse DeclareAnnotationDeclaration

Bekannte direkte Unterklassen:
DeclareAtConstructorDeclaration, DeclareAtFieldDeclaration, DeclareAtMethodDeclaration, DeclareAtTypeDeclaration

public abstract class DeclareAnnotationDeclaration extends DeclareDeclaration
Abstract class for the different declare annotation declaration AST node types. Has everything a DeclareDeclaration has plus: a PatternNode called 'pattern' a SimpleName called 'annotationName' Unsupported for JLS2.
  • Methodendetails

    • getPatternNode

      public PatternNode getPatternNode()
    • setPatternNode

      public void setPatternNode(PatternNode pattern)
    • getAnnotationName

      public SimpleName getAnnotationName()
      Returns the name of the annotation type member declared in this declaration.
      Gibt zurück:
      the name node
    • setAnnotationName

      public void setAnnotationName(SimpleName name)
      Sets the name of the annotation type member declared in this declaration to the given name.
      Parameter:
      name - the new member name
      Löst aus:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent