org.androidtransfuse.analysis.astAnalyzer
Class NonConfigurationAnalysis

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

public class NonConfigurationAnalysis
extends ASTAnalysisAdaptor

Analysis class to identify nonConfiguration Instances(NCI). This analysis triggers the given NCI to be defined as a field in the containing component. This field is then used in the generated onRetainNonConfigurationInstance() and getLastNonConfigurationInstance() methods.

Author:
John Ericksen

Constructor Summary
NonConfigurationAnalysis(InjectionPointFactory injectionPointFactory)
           
 
Method Summary
 void analyzeField(InjectionNode injectionNode, ASTType concreteType, ASTField astField, AnalysisContext context)
          Analyze the given field.
 
Methods inherited from class org.androidtransfuse.analysis.astAnalyzer.ASTAnalysisAdaptor
analyzeMethod, analyzeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonConfigurationAnalysis

@Inject
public NonConfigurationAnalysis(InjectionPointFactory injectionPointFactory)
Method Detail

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
Overrides:
analyzeField 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.
astField - field
context - current context


Copyright © 2012. All Rights Reserved.