org.androidtransfuse.analysis.astAnalyzer
Class NonConfigurationAnalysis
java.lang.Object
org.androidtransfuse.analysis.astAnalyzer.ASTAnalysisAdaptor
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonConfigurationAnalysis
@Inject
public NonConfigurationAnalysis(InjectionPointFactory injectionPointFactory)
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 nodeconcreteType - concrete type being analyzed. This will be either the same type as represented by the
injection node or a super type under analysis.astField - fieldcontext - current context
Copyright © 2012. All Rights Reserved.