Schnittstelle ReferenceTypeDelegate

Alle bekannten Implementierungsklassen:
AbstractReferenceTypeDelegate, BcelObjectType, GeneratedReferenceTypeDelegate, Java15ReflectionBasedReferenceTypeDelegate, ReflectionBasedReferenceTypeDelegate

public interface ReferenceTypeDelegate
Abstraction over a type - a reference type is Object or a descendant of Object, other types (int/etc) are considered primitive types. Abstract implementation provided by AbstractReferenceTypeDelegate.
  • Methodendetails

    • isAspect

      boolean isAspect()
    • isAnnotationStyleAspect

      boolean isAnnotationStyleAspect()
      Gibt zurück:
      true if the type is an annotation style aspect (a type marked @Aspect)
    • isInterface

      boolean isInterface()
    • isEnum

      boolean isEnum()
    • isAnnotation

      boolean isAnnotation()
    • getRetentionPolicy

      String getRetentionPolicy()
    • canAnnotationTargetType

      boolean canAnnotationTargetType()
      Gibt zurück:
      true if this annotation type can be on a regular type (ie. it doesn't specify anything or it specifies TYPE)
    • getAnnotationTargetKinds

      AnnotationTargetKind[] getAnnotationTargetKinds()
      Gibt zurück:
      all the possible targets that this annotation can be placed upon
    • isAnnotationWithRuntimeRetention

      boolean isAnnotationWithRuntimeRetention()
      Gibt zurück:
      true if this annotation type has a retention policy of RUNTIME
    • isClass

      boolean isClass()
    • isGeneric

      boolean isGeneric()
    • isAnonymous

      boolean isAnonymous()
    • isNested

      boolean isNested()
      Gibt zurück:
      true if this class is nested (this includes: member classes, local classes, anonymous classes)
    • hasAnnotation

      boolean hasAnnotation(UnresolvedType ofType)
    • getAnnotations

      AnnotationAJ[] getAnnotations()
    • getAnnotationTypes

      ResolvedType[] getAnnotationTypes()
    • getDeclaredFields

      ResolvedMember[] getDeclaredFields()
    • getDeclaredInterfaces

      ResolvedType[] getDeclaredInterfaces()
    • getDeclaredMethods

      ResolvedMember[] getDeclaredMethods()
    • getDeclaredPointcuts

      ResolvedMember[] getDeclaredPointcuts()
    • getTypeVariables

      TypeVariable[] getTypeVariables()
    • getModifiers

      int getModifiers()
    • getPerClause

      PerClause getPerClause()
      Gibt zurück:
      for an aspect declaration, return the
    • getDeclares

      Collection<Declare> getDeclares()
    • getTypeMungers

      Collection<ConcreteTypeMunger> getTypeMungers()
    • getPrivilegedAccesses

      Collection<ResolvedMember> getPrivilegedAccesses()
    • getSuperclass

      ResolvedType getSuperclass()
    • getWeaverState

      WeaverStateInfo getWeaverState()
    • getResolvedTypeX

      ReferenceType getResolvedTypeX()
    • isExposedToWeaver

      boolean isExposedToWeaver()
    • doesNotExposeShadowMungers

      boolean doesNotExposeShadowMungers()
    • getSourceContext

      ISourceContext getSourceContext()
    • getSourcefilename

      String getSourcefilename()
    • getDeclaredGenericSignature

      String getDeclaredGenericSignature()
    • getOuterClass

      ResolvedType getOuterClass()
    • copySourceContext

      boolean copySourceContext()
    • isCacheable

      boolean isCacheable()
      TODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?
      Gibt zurück:
      true if something the result of getDeclaredInterfaces() can be cached by the caller
    • getCompilerVersion

      int getCompilerVersion()
      If known, return the compiler/weaver version used to build this delegate. Default is the most recent level as specified in AjAttribute.WeaverVersionInfo.
      Gibt zurück:
      the major version
    • ensureConsistent

      void ensureConsistent()
      Implementations need to clear state
    • isWeavable

      boolean isWeavable()
    • hasBeenWoven

      boolean hasBeenWoven()
    • hasAnnotations

      boolean hasAnnotations()