org.aspectj.ajdt.internal.compiler
Class WeaverAdapter

java.lang.Object
  extended by org.aspectj.ajdt.internal.compiler.WeaverAdapter
All Implemented Interfaces:
java.util.Iterator, IClassFileProvider, IWeaveRequestor

public class WeaverAdapter
extends java.lang.Object
implements IClassFileProvider, IWeaveRequestor, java.util.Iterator


Constructor Summary
WeaverAdapter(AbstractCompilerAdapter forCompiler, WeaverMessageHandler weaverMessageHandler, IProgressListener progressListener)
           
 
Method Summary
 void acceptResult(IUnwovenClassFile result)
           
 void addingTypeMungers()
           
 java.util.Iterator getClassFileIterator()
          Answer an iterator that can be used to iterate over a set of UnwovenClassFiles to be woven.
 IWeaveRequestor getRequestor()
          The client to which the woven results should be returned.
 boolean hasNext()
           
 boolean isApplyAtAspectJMungersOnly()
           
 java.lang.Object next()
           
 void processingReweavableState()
           
 void remove()
           
 void weaveCompleted()
           
 void weavingAspects()
           
 void weavingClasses()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeaverAdapter

public WeaverAdapter(AbstractCompilerAdapter forCompiler,
                     WeaverMessageHandler weaverMessageHandler,
                     IProgressListener progressListener)
Method Detail

getClassFileIterator

public java.util.Iterator getClassFileIterator()
Description copied from interface: IClassFileProvider
Answer 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:
getClassFileIterator in interface IClassFileProvider
Returns:
iterator over UnwovenClassFiles.

getRequestor

public IWeaveRequestor getRequestor()
Description copied from interface: IClassFileProvider
The client to which the woven results should be returned.

Specified by:
getRequestor in interface IClassFileProvider

isApplyAtAspectJMungersOnly

public boolean isApplyAtAspectJMungersOnly()
Specified by:
isApplyAtAspectJMungersOnly in interface IClassFileProvider
Returns:
true if weaver should only do some internal munging as the one needed for @AspectJ aspectOf methods creation

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

processingReweavableState

public void processingReweavableState()
Specified by:
processingReweavableState in interface IWeaveRequestor

addingTypeMungers

public void addingTypeMungers()
Specified by:
addingTypeMungers in interface IWeaveRequestor

weavingAspects

public void weavingAspects()
Specified by:
weavingAspects in interface IWeaveRequestor

weavingClasses

public void weavingClasses()
Specified by:
weavingClasses in interface IWeaveRequestor

weaveCompleted

public void weaveCompleted()
Specified by:
weaveCompleted in interface IWeaveRequestor

acceptResult

public void acceptResult(IUnwovenClassFile result)
Specified by:
acceptResult in interface IWeaveRequestor