org.androidtransfuse.analysis.astAnalyzer
Class ObservesAnalysis

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

public class ObservesAnalysis
extends ASTAnalysisAdaptor

Analysis class to find the methods annotated with @Observes. When found, an ObservesAspect is populated with the observing method. Multiple observer methods could be defined per class and per InjectionNode

Author:
John Ericksen

Constructor Summary
ObservesAnalysis(InjectionPointFactory injectionNodeFactory, Analyzer analyzer, ASTClassFactory astClassFactory)
           
 
Method Summary
 void analyzeMethod(InjectionNode injectionNode, ASTType concreteType, ASTMethod astMethod, AnalysisContext context)
          Analyze the given method.
 
Methods inherited from class org.androidtransfuse.analysis.astAnalyzer.ASTAnalysisAdaptor
analyzeField, analyzeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservesAnalysis

@Inject
public ObservesAnalysis(InjectionPointFactory injectionNodeFactory,
                               Analyzer analyzer,
                               ASTClassFactory astClassFactory)
Method Detail

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
Overrides:
analyzeMethod in class ASTAnalysisAdaptor
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


Copyright © 2012. All Rights Reserved.