Class WeaverAdapter
java.lang.Object
org.aspectj.ajdt.internal.compiler.WeaverAdapter
- All Implemented Interfaces:
Iterator,IClassFileProvider,IWeaveRequestor
- Author:
- colyer This class provides the weaver with a source of class files to weave (via the iterator and IClassFileProvider interfaces). It receives results back from the weaver via the IWeaveRequestor interface.
-
Constructor Summary
ConstructorsConstructorDescriptionWeaverAdapter(AbstractCompilerAdapter forCompiler, WeaverMessageHandler weaverMessageHandler, IProgressListener progressListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptResult(IUnwovenClassFile result) voidAnswer an iterator that can be used to iterate over a set of UnwovenClassFiles to be woven.The client to which the woven results should be returned.booleanhasNext()booleannext()voidvoidremove()voidvoidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
WeaverAdapter
public WeaverAdapter(AbstractCompilerAdapter forCompiler, WeaverMessageHandler weaverMessageHandler, IProgressListener progressListener)
-
-
Method Details
-
getClassFileIterator
Description copied from interface:IClassFileProviderAnswer an iterator that can be used to iterate over a set of UnwovenClassFiles to be woven. During a weave, this method may be called multiple times.- Specified by:
getClassFileIteratorin interfaceIClassFileProvider- Returns:
- iterator over UnwovenClassFiles.
-
getRequestor
Description copied from interface:IClassFileProviderThe client to which the woven results should be returned.- Specified by:
getRequestorin interfaceIClassFileProvider
-
isApplyAtAspectJMungersOnly
public boolean isApplyAtAspectJMungersOnly()- Specified by:
isApplyAtAspectJMungersOnlyin interfaceIClassFileProvider- Returns:
- true if weaver should only do some internal munging as the one needed for @AspectJ aspectOf methods creation
-
hasNext
-
next
-
remove
-
processingReweavableState
public void processingReweavableState()- Specified by:
processingReweavableStatein interfaceIWeaveRequestor
-
addingTypeMungers
public void addingTypeMungers()- Specified by:
addingTypeMungersin interfaceIWeaveRequestor
-
weavingAspects
public void weavingAspects()- Specified by:
weavingAspectsin interfaceIWeaveRequestor
-
weavingClasses
public void weavingClasses()- Specified by:
weavingClassesin interfaceIWeaveRequestor
-
weaveCompleted
public void weaveCompleted()- Specified by:
weaveCompletedin interfaceIWeaveRequestor
-
acceptResult
- Specified by:
acceptResultin interfaceIWeaveRequestor
-