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
Author:
Andy Clement

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(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
           
 void dump(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, java.lang.String outputFileLocation)
          Produce the modified source that looks like the itds and declares have been applied.
 void recordInterTypeConstructorDeclarationCode(org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration md, java.lang.String s, int line)
           
 void recordInterTypeFieldDeclarationCode(org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration md, java.lang.String s, int line)
           
 void recordInterTypeMethodDeclarationCode(org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration md, java.lang.String s, int line)
           
 void setOutputFileNameProvider(IOutputClassFileNameProvider outputFileNameProvider)
           
 void tagAsMunged(org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding sourceType, org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration sourceMethod)
           
 void tagAsMunged(org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding sourceType, java.lang.String annotationString)
           
 void tagAsMunged(org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding sourceType, TypePattern typePattern)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dump

public void dump(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration,
                 java.lang.String outputFileLocation)
Produce the modified source that looks like the itds and declares have been applied.


recordInterTypeMethodDeclarationCode

public void recordInterTypeMethodDeclarationCode(org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration md,
                                                 java.lang.String s,
                                                 int line)

recordInterTypeFieldDeclarationCode

public void recordInterTypeFieldDeclarationCode(org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration md,
                                                java.lang.String s,
                                                int line)

recordInterTypeConstructorDeclarationCode

public void recordInterTypeConstructorDeclarationCode(org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration md,
                                                      java.lang.String s,
                                                      int line)

tagAsMunged

public void tagAsMunged(org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding sourceType,
                        org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration sourceMethod)

tagAsMunged

public void tagAsMunged(org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding sourceType,
                        java.lang.String annotationString)

dump

public void dump(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)

tagAsMunged

public void tagAsMunged(org.aspectj.org.eclipse.jdt.internal.compiler.lookup.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)