org.androidtransfuse.analysis.astAnalyzer
Class InjectionAnalyzer

Package class diagram package InjectionAnalyzer
java.lang.Object
  extended by org.androidtransfuse.analysis.astAnalyzer.InjectionAnalyzer
All Implemented Interfaces:
ASTAnalysis

public class InjectionAnalyzer
extends Object
implements ASTAnalysis

Analyzer to setup InjectionPoints for all @Inject annotated elements

Author:
John Ericksen

Constructor Summary
InjectionAnalyzer(InjectionPointFactory injectionPointFactory)
           
 
Method Summary
 void analyzeField(InjectionNode injectionNode, ASTType concreteType, ASTField astField, AnalysisContext context)
          Analyze the given field.
 void analyzeMethod(InjectionNode injectionNode, ASTType concreteType, ASTMethod astMethod, AnalysisContext context)
          Analyze the given method.
 void analyzeType(InjectionNode injectionNode, ASTType concreteType, AnalysisContext context)
          Analyze the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectionAnalyzer

@Inject
public InjectionAnalyzer(InjectionPointFactory injectionPointFactory)
Method Detail

analyzeType

public void analyzeType(InjectionNode injectionNode,
                        ASTType concreteType,
                        AnalysisContext context)
Description copied from interface: ASTAnalysis
Analyze the given type. Used during the class scanning phase to perform class level operations.

Specified by:
analyzeType in interface ASTAnalysis
Parameters:
injectionNode - current injection node
concreteType - type
context - current context

analyzeMethod

public void analyzeMethod(InjectionNode injectionNode,
                          ASTType concreteType,
                          ASTMethod astMethod,
                          AnalysisContext context)
Description copied from interface: ASTAnalysis
Analyze the given method. Used during the class scanning phase to perform method level operations.

Specified by:
analyzeMethod in interface ASTAnalysis
Parameters:
injectionNode - current injection node
concreteType - concrete type being analyzed. This will be either the same type as represented by the injection node or a super type under analysis.
astMethod - method
context - current context

analyzeField

public void analyzeField(InjectionNode injectionNode,
                         ASTType concreteType,
                         ASTField astField,
                         AnalysisContext context)
Description copied from interface: ASTAnalysis
Analyze the given field. Used during the class scanning phase to perform field level operations.

Specified by:
analyzeField in interface ASTAnalysis
Parameters:
injectionNode - current injection node
concreteType - concrete type being analyzed. This will be either the same type as represented by the injection node or a super type under analysis.
astField - field
context - current context


Copyright © 2012. All Rights Reserved.