Klasse BcelObjectType

Alle implementierten Schnittstellen:
ReferenceTypeDelegate

public class BcelObjectType extends AbstractReferenceTypeDelegate
  • Felddetails

  • Methodendetails

    • setJavaClass

      public void setJavaClass(JavaClass newclass, boolean artificial)
    • isCacheable

      public boolean isCacheable()
      Beschreibung aus Schnittstelle kopiert: ReferenceTypeDelegate
      TODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?
      Angegeben von:
      isCacheable in Schnittstelle ReferenceTypeDelegate
      Setzt außer Kraft:
      isCacheable in Klasse AbstractReferenceTypeDelegate
      Gibt zurück:
      true if something the result of getDeclaredInterfaces() can be cached by the caller
    • isInterface

      public boolean isInterface()
    • isEnum

      public boolean isEnum()
    • isAnnotation

      public boolean isAnnotation()
    • isAnonymous

      public boolean isAnonymous()
    • isNested

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

      public int getModifiers()
    • getSuperclass

      public ResolvedType getSuperclass()
      Must take into account generic signature
    • getWorld

      public World getWorld()
    • getDeclaredInterfaces

      public ResolvedType[] getDeclaredInterfaces()
      Retrieves the declared interfaces - this allows for the generic signature on a type. If specified then the generic signature is used to work out the types - this gets around the results of erasure when the class was originally compiled.
    • getDeclaredMethods

      public ResolvedMember[] getDeclaredMethods()
    • getDeclaredFields

      public ResolvedMember[] getDeclaredFields()
    • getTypeVariables

      public TypeVariable[] getTypeVariables()
    • getTypeMungers

      public Collection<ConcreteTypeMunger> getTypeMungers()
    • getDeclares

      public Collection<Declare> getDeclares()
    • getPrivilegedAccesses

      public Collection<ResolvedMember> getPrivilegedAccesses()
    • getDeclaredPointcuts

      public ResolvedMember[] getDeclaredPointcuts()
    • isAspect

      public boolean isAspect()
    • isAnnotationStyleAspect

      public boolean isAnnotationStyleAspect()
      Check if the type is an @AJ aspect (no matter if used from an LTW point of view). Such aspects are annotated with @Aspect
      Gibt zurück:
      true for @AJ aspect
    • getPerClause

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

      public JavaClass getJavaClass()
    • isArtificial

      public boolean isArtificial()
      Gibt zurück:
      true if built from bytes obtained from somewhere. False if built from bytes retrieved from disk.
    • resetState

      public void resetState()
    • finishedWith

      public void finishedWith()
    • getWeaverState

      public WeaverStateInfo getWeaverState()
    • printWackyStuff

      public void printWackyStuff(PrintStream out)
    • getLazyClassGen

      public LazyClassGen getLazyClassGen()
      Return the lazyClassGen associated with this type. For aspect types, this value will be cached, since it is used to inline advice. For non-aspect types, this lazyClassGen is always newly constructed.
    • isSynthetic

      public boolean isSynthetic()
    • getWeaverVersionAttribute

      public AjAttribute.WeaverVersionInfo getWeaverVersionAttribute()
    • getAnnotationTypes

      public ResolvedType[] getAnnotationTypes()
    • getAnnotations

      public AnnotationAJ[] getAnnotations()
    • hasAnnotations

      public boolean hasAnnotations()
    • hasAnnotation

      public boolean hasAnnotation(UnresolvedType ofType)
    • isAnnotationWithRuntimeRetention

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

      public String getRetentionPolicy()
    • canAnnotationTargetType

      public 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

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

      public String getDeclaredGenericSignature()
    • getAllFormals

      public GenericSignature.FormalTypeParameter[] getAllFormals()
    • getOuterClass

      public ResolvedType getOuterClass()
    • isGeneric

      public boolean isGeneric()
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • evictWeavingState

      public void evictWeavingState()
    • weavingCompleted

      public void weavingCompleted()
    • hasBeenWoven

      public boolean hasBeenWoven()
      Angegeben von:
      hasBeenWoven in Schnittstelle ReferenceTypeDelegate
      Setzt außer Kraft:
      hasBeenWoven in Klasse AbstractReferenceTypeDelegate
    • copySourceContext

      public boolean copySourceContext()
      Angegeben von:
      copySourceContext in Schnittstelle ReferenceTypeDelegate
      Setzt außer Kraft:
      copySourceContext in Klasse AbstractReferenceTypeDelegate
    • setExposedToWeaver

      public void setExposedToWeaver(boolean b)
    • getCompilerVersion

      public int getCompilerVersion()
      Beschreibung aus Schnittstelle kopiert: ReferenceTypeDelegate
      If known, return the compiler/weaver version used to build this delegate. Default is the most recent level as specified in AjAttribute.WeaverVersionInfo.
      Angegeben von:
      getCompilerVersion in Schnittstelle ReferenceTypeDelegate
      Setzt außer Kraft:
      getCompilerVersion in Klasse AbstractReferenceTypeDelegate
      Gibt zurück:
      the major version
    • ensureConsistent

      public void ensureConsistent()
      Beschreibung aus Schnittstelle kopiert: ReferenceTypeDelegate
      Implementations need to clear state
      Angegeben von:
      ensureConsistent in Schnittstelle ReferenceTypeDelegate
      Setzt außer Kraft:
      ensureConsistent in Klasse AbstractReferenceTypeDelegate
    • isWeavable

      public boolean isWeavable()
      Angegeben von:
      isWeavable in Schnittstelle ReferenceTypeDelegate
      Setzt außer Kraft:
      isWeavable in Klasse AbstractReferenceTypeDelegate