org.androidtransfuse.analysis.adapter
Class ASTElementFactory

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

@Singleton
public class ASTElementFactory
extends Object

Factory class to build a specific AST tree element from the provided Element base type

Author:
John Ericksen

Constructor Summary
ASTElementFactory()
           
 
Method Summary
 ASTConstructor buildASTElementConstructor(ExecutableElement executableElement)
          Build an ASTConstructor from the input ExecutableElement
 ASTMethod buildASTElementMethod(ExecutableElement executableElement)
          Build an ASTMethod from the provided ExecutableElement
 ASTParameter buildASTElementParameter(TypeParameterElement typeParameterElement)
          Build an ASTParameter from the input TypeParameterElement
 ASTType buildASTElementType(DeclaredType declaredType)
           
 ASTType buildASTElementType(TypeElement typeElement)
          Build a ASTType from the provided TypeElement.
 ASTField buildASTElementVariable(VariableElement variableElement)
          Build a ASTElementField from the given VariableElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTElementFactory

public ASTElementFactory()
Method Detail

buildASTElementType

public ASTType buildASTElementType(DeclaredType declaredType)

buildASTElementType

public ASTType buildASTElementType(TypeElement typeElement)
Build a ASTType from the provided TypeElement.

Parameters:
typeElement - required input Element
Returns:
ASTType constructed using teh input Element

buildASTElementVariable

public ASTField buildASTElementVariable(VariableElement variableElement)
Build a ASTElementField from the given VariableElement

Parameters:
variableElement - required input Element
Returns:
ASTElementField

buildASTElementMethod

public ASTMethod buildASTElementMethod(ExecutableElement executableElement)
Build an ASTMethod from the provided ExecutableElement

Parameters:
executableElement - required input element
Returns:
ASTMethod

buildASTElementParameter

public ASTParameter buildASTElementParameter(TypeParameterElement typeParameterElement)
Build an ASTParameter from the input TypeParameterElement

Parameters:
typeParameterElement - required input element
Returns:
ASTParameter

buildASTElementConstructor

public ASTConstructor buildASTElementConstructor(ExecutableElement executableElement)
Build an ASTConstructor from the input ExecutableElement

Parameters:
executableElement - require input element
Returns:
ASTConstructor


Copyright © 2012. All Rights Reserved.