org.aspectj.ajdt.internal.compiler.lookup
Class PushinCollector

java.lang.Object
  extended by org.aspectj.ajdt.internal.compiler.lookup.PushinCollector

public class PushinCollector
extends java.lang.Object

Collects up information about the application of ITDs and relevant declares - it can then output source code as if those ITDs had been pushed in. Supports the simulated push-in of:

Since:
1.6.9

Method Summary
static PushinCollector createInstance(World world)
          Checks if the aspectj.pushin property is set - this is the main condition for triggering the creation of pushed-in source files.
 void dump(CompilationUnitDeclaration unit)
           
 void dump(CompilationUnitDeclaration compilationUnitDeclaration, java.lang.String outputFileLocation)
          Produce the modified source that looks like the itds and declares have been applied.
 void recordInterTypeConstructorDeclarationCode(AbstractMethodDeclaration md, java.lang.String s, int line)
           
 void recordInterTypeFieldDeclarationCode(AbstractMethodDeclaration md, java.lang.String s, int line)
           
 void recordInterTypeMethodDeclarationCode(AbstractMethodDeclaration md, java.lang.String s, int line)
           
 void setOutputFileNameProvider(IOutputClassFileNameProvider outputFileNameProvider)
           
 void tagAsMunged(SourceTypeBinding sourceType, AbstractMethodDeclaration sourceMethod)
           
 void tagAsMunged(SourceTypeBinding sourceType, java.lang.String annotationString)
           
 void tagAsMunged(SourceTypeBinding sourceType, TypePattern typePattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dump

public void dump(CompilationUnitDeclaration compilationUnitDeclaration,
                 java.lang.String outputFileLocation)
Produce the modified source that looks like the itds and declares have been applied.


recordInterTypeMethodDeclarationCode

public void recordInterTypeMethodDeclarationCode(AbstractMethodDeclaration md,
                                                 java.lang.String s,
                                                 int line)

recordInterTypeFieldDeclarationCode

public void recordInterTypeFieldDeclarationCode(AbstractMethodDeclaration md,
                                                java.lang.String s,
                                                int line)

recordInterTypeConstructorDeclarationCode

public void recordInterTypeConstructorDeclarationCode(AbstractMethodDeclaration md,
                                                      java.lang.String s,
                                                      int line)

tagAsMunged

public void tagAsMunged(SourceTypeBinding sourceType,
                        AbstractMethodDeclaration sourceMethod)

tagAsMunged

public void tagAsMunged(SourceTypeBinding sourceType,
                        java.lang.String annotationString)

dump

public void dump(CompilationUnitDeclaration unit)

tagAsMunged

public void tagAsMunged(SourceTypeBinding sourceType,
                        TypePattern typePattern)

createInstance

public static PushinCollector createInstance(World world)
Checks if the aspectj.pushin property is set - this is the main condition for triggering the creation of pushed-in source files. If not set just to 'true', the value of the property is processed as configuration. Configurable options are:


setOutputFileNameProvider

public void setOutputFileNameProvider(IOutputClassFileNameProvider outputFileNameProvider)