org.androidtransfuse.analysis.adapter
Class ASTElementAnnotation

Package class diagram package ASTElementAnnotation
java.lang.Object
  extended by org.androidtransfuse.analysis.adapter.ASTElementAnnotation
All Implemented Interfaces:
ASTAnnotation

public class ASTElementAnnotation
extends Object
implements ASTAnnotation

Element specific AST Annotation

Author:
John Ericksen

Constructor Summary
ASTElementAnnotation(AnnotationMirror annotationMirror, ASTType type, ElementConverterFactory elementConverterFactory)
           
 
Method Summary
 ASTType getASTType()
          Getter for the name of the current annotaion
<T> T
getProperty(String value, Class<T> type)
          Getter for a given annotation property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTElementAnnotation

@Inject
public ASTElementAnnotation(AnnotationMirror annotationMirror,
                                   ASTType type,
                                   ElementConverterFactory elementConverterFactory)
Method Detail

getProperty

public <T> T getProperty(String value,
                         Class<T> type)
Description copied from interface: ASTAnnotation
Getter for a given annotation property

Specified by:
getProperty in interface ASTAnnotation
Returns:
annotation property identified by name with the given type

getASTType

public ASTType getASTType()
Description copied from interface: ASTAnnotation
Getter for the name of the current annotaion

Specified by:
getASTType in interface ASTAnnotation
Returns:
annotation name


Copyright © 2012. All Rights Reserved.