Klasse AbstractAnnotationAJ

java.lang.Object
org.aspectj.weaver.AbstractAnnotationAJ
Alle implementierten Schnittstellen:
AnnotationAJ
Bekannte direkte Unterklassen:
BcelAnnotation, StandardAnnotation

public abstract class AbstractAnnotationAJ extends Object implements AnnotationAJ
  • Felddetails

  • Konstruktordetails

    • AbstractAnnotationAJ

      public AbstractAnnotationAJ(ResolvedType type)
  • Methodendetails

    • getType

      public final ResolvedType getType()
      Angegeben von:
      getType in Schnittstelle AnnotationAJ
      Gibt zurück:
      the type of the annotation
    • getTypeSignature

      public final String getTypeSignature()
      Angegeben von:
      getTypeSignature in Schnittstelle AnnotationAJ
      Gibt zurück:
      the signature for the annotation type, eg. Lcom/foo/MyAnno;
    • getTypeName

      public final String getTypeName()
      Angegeben von:
      getTypeName in Schnittstelle AnnotationAJ
      Gibt zurück:
      the type name for the annotation, eg. com.foo.MyAnno
    • allowedOnAnnotationType

      public final boolean allowedOnAnnotationType()
      return true if this annotation can target an annotation type
      Angegeben von:
      allowedOnAnnotationType in Schnittstelle AnnotationAJ
    • allowedOnField

      public final boolean allowedOnField()
      Angegeben von:
      allowedOnField in Schnittstelle AnnotationAJ
      Gibt zurück:
      true if this annotation can be put on a field
    • allowedOnRegularType

      public final boolean allowedOnRegularType()
      Angegeben von:
      allowedOnRegularType in Schnittstelle AnnotationAJ
      Gibt zurück:
      true if this annotation can target a 'regular' type. A 'regular' type is enum/class/interface - it is *not* annotation.
    • ensureAtTargetInitialized

      public final void ensureAtTargetInitialized()
    • getValidTargets

      public final String getValidTargets()
      Angegeben von:
      getValidTargets in Schnittstelle AnnotationAJ
      Gibt zurück:
      String representation of the valid targets for this annotation, eg. "{TYPE,FIELD}"
    • specifiesTarget

      public final boolean specifiesTarget()
      Angegeben von:
      specifiesTarget in Schnittstelle AnnotationAJ
      Gibt zurück:
      true if this annotation is marked with @target
    • isRuntimeVisible

      public abstract boolean isRuntimeVisible()
      Angegeben von:
      isRuntimeVisible in Schnittstelle AnnotationAJ
      Gibt zurück:
      true if the annotation is marked for runtime visibility
    • getTargets

      public abstract Set<String> getTargets()
      Angegeben von:
      getTargets in Schnittstelle AnnotationAJ
      Gibt zurück:
      for the @target annotation, this will return a set of the element-types it can be applied to. For other annotations , it returns the empty set.
    • hasNameValuePair

      public abstract boolean hasNameValuePair(String name, String value)
      Angegeben von:
      hasNameValuePair in Schnittstelle AnnotationAJ
      Parameter:
      name - the name of the annotation field
      value - the value of the annotation field
      Gibt zurück:
      true if there is a value with the specified name and value
    • hasNamedValue

      public abstract boolean hasNamedValue(String name)
      Angegeben von:
      hasNamedValue in Schnittstelle AnnotationAJ
      Parameter:
      name - the name of the value
      Gibt zurück:
      true if there is a value with that name
    • stringify

      public abstract String stringify()
      Angegeben von:
      stringify in Schnittstelle AnnotationAJ
      Gibt zurück:
      String form of the annotation and any values, eg. @Foo(a=b,c=d)