org.androidtransfuse.analysis
Class InjectionPointFactory

Package class diagram package InjectionPointFactory
java.lang.Object
  extended by org.androidtransfuse.analysis.InjectionPointFactory

public class InjectionPointFactory
extends Object

InjectionPoint Factory for building the various InjectionPoints from the AST

Author:
John Ericksen

Constructor Summary
InjectionPointFactory(ASTClassFactory astClassFactory)
           
 
Method Summary
 InjectionNode buildInjectionNode(ASTType astType, AnalysisContext context)
          Build a InjectionPoint directly from the given ASTType
 InjectionNode buildInjectionNode(Class type, AnalysisContext context)
           
 InjectionNode buildInjectionNode(Collection<ASTAnnotation> annotations, ASTType astType, AnalysisContext context)
           
 ConstructorInjectionPoint buildInjectionPoint(ASTType concreteType, ASTConstructor astConstructor, AnalysisContext context)
          Build a Constructor InjectionPoint from the given ASTConstructor
 FieldInjectionPoint buildInjectionPoint(ASTType concreteType, ASTField astField, AnalysisContext context)
          Build a Field InjectionPoint from the given ASTField
 MethodInjectionPoint buildInjectionPoint(ASTType concreteType, ASTMethod astMethod, AnalysisContext context)
          Build a Method Injection Point from the given ASTMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectionPointFactory

@Inject
public InjectionPointFactory(ASTClassFactory astClassFactory)
Method Detail

buildInjectionPoint

public ConstructorInjectionPoint buildInjectionPoint(ASTType concreteType,
                                                     ASTConstructor astConstructor,
                                                     AnalysisContext context)
Build a Constructor InjectionPoint from the given ASTConstructor

Parameters:
astConstructor - required ASTConstructor
context - required AnalysisContext
Returns:
ConstructorInjectionPoint

buildInjectionPoint

public MethodInjectionPoint buildInjectionPoint(ASTType concreteType,
                                                ASTMethod astMethod,
                                                AnalysisContext context)
Build a Method Injection Point from the given ASTMethod

Parameters:
concreteType -
astMethod - required ASTMethod
context - analysis context
Returns:
MethodInjectionPoint

buildInjectionPoint

public FieldInjectionPoint buildInjectionPoint(ASTType concreteType,
                                               ASTField astField,
                                               AnalysisContext context)
Build a Field InjectionPoint from the given ASTField

Parameters:
concreteType -
astField - required ASTField
context - analysis context
Returns:
FieldInjectionPoint

buildInjectionNode

public InjectionNode buildInjectionNode(ASTType astType,
                                        AnalysisContext context)
Build a InjectionPoint directly from the given ASTType

Parameters:
astType - required type
context - analysis context
Returns:
Injection Node

buildInjectionNode

public InjectionNode buildInjectionNode(Class type,
                                        AnalysisContext context)

buildInjectionNode

public InjectionNode buildInjectionNode(Collection<ASTAnnotation> annotations,
                                        ASTType astType,
                                        AnalysisContext context)


Copyright © 2012. All Rights Reserved.