org.androidtransfuse.analysis.astAnalyzer
Class ASTAnalysisAdaptor

Package class diagram package ASTAnalysisAdaptor
java.lang.Object
  extended by org.androidtransfuse.analysis.astAnalyzer.ASTAnalysisAdaptor
All Implemented Interfaces:
ASTAnalysis
Direct Known Subclasses:
AOPProxyAnalyzer, DeclareFieldAnalysis, ListenerAnalysis, NonConfigurationAnalysis, ObservesAnalysis, ScopeAnalysis

public class ASTAnalysisAdaptor
extends Object
implements ASTAnalysis

Adaptor to allow subclasses to not be required to implement all analysis methods

Author:
John Ericksen

Constructor Summary
ASTAnalysisAdaptor()
           
 
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 astType, 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

ASTAnalysisAdaptor

public ASTAnalysisAdaptor()
Method Detail

analyzeType

public void analyzeType(InjectionNode injectionNode,
                        ASTType astType,
                        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
astType - 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.