org.androidtransfuse.analysis.adapter
Class ASTClassFactory

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

@Singleton
public class ASTClassFactory
extends Object

Factory building AST objects from the relevant class attributes

Author:
John Ericksen

Constructor Summary
ASTClassFactory(ASTFactory astFactory)
           
 
Method Summary
 ASTAnnotation buildAnnotation(Annotation annotation)
           
 ASTConstructor buildASTClassConstructor(Constructor constructor)
          Build an AST Constructor from the given constructor
 ASTField buildASTClassField(Field field)
          Builds an AST Field from the given field
 ASTMethod buildASTClassMethod(Method method)
          Builds an AST Method fromm the given input method.
 ASTType buildASTClassType(Class<?> clazz)
          Build an ASTType from the given class
 com.google.common.collect.ImmutableList<ASTParameter> buildASTTypeParameters(Class<?>[] parameterTypes, Type[] genericParameterTypes, Annotation[][] parameterAnnotations)
          Builds the parameters for a set of parallel arrays: type and annotations
 com.google.common.collect.ImmutableList<ASTParameter> buildASTTypeParameters(Method method)
          Builds the parameters for a given method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTClassFactory

@Inject
public ASTClassFactory(ASTFactory astFactory)
Method Detail

buildASTClassType

public ASTType buildASTClassType(Class<?> clazz)
Build an ASTType from the given class

Parameters:
clazz - input Class
Returns:
ASTType representing input class

buildASTTypeParameters

public com.google.common.collect.ImmutableList<ASTParameter> buildASTTypeParameters(Method method)
Builds the parameters for a given method

Parameters:
method -
Returns:
AST parameters

buildASTTypeParameters

public com.google.common.collect.ImmutableList<ASTParameter> buildASTTypeParameters(Class<?>[] parameterTypes,
                                                                                    Type[] genericParameterTypes,
                                                                                    Annotation[][] parameterAnnotations)
Builds the parameters for a set of parallel arrays: type and annotations

Parameters:
parameterTypes -
genericParameterTypes -
parameterAnnotations - @return AST Parameters

buildASTClassMethod

public ASTMethod buildASTClassMethod(Method method)
Builds an AST Method fromm the given input method.

Parameters:
method -
Returns:
AST Method

buildASTClassField

public ASTField buildASTClassField(Field field)
Builds an AST Field from the given field

Parameters:
field -
Returns:
AST Field

buildASTClassConstructor

public ASTConstructor buildASTClassConstructor(Constructor constructor)
Build an AST Constructor from the given constructor

Parameters:
constructor -
Returns:
AST Constructor

buildAnnotation

public ASTAnnotation buildAnnotation(Annotation annotation)


Copyright © 2012. All Rights Reserved.