org.androidtransfuse.analysis.adapter
Interface ASTBase

Package class diagram package ASTBase
All Known Subinterfaces:
ASTConstructor, ASTField, ASTMethod, ASTParameter, ASTType
All Known Implementing Classes:
ASTArrayType, ASTClassConstructor, ASTClassField, ASTClassMethod, ASTClassParameter, ASTClassType, ASTElementBase, ASTElementConstructor, ASTElementField, ASTElementMethod, ASTElementParameter, ASTElementType, ASTEmptyType, ASTGenericTypeWrapper, ASTMethodUniqueSignatureDecorator, ASTPrimitiveType, ASTProxyType, ASTTypeVirtualProxy, ASTVoidType

public interface ASTBase

Base class defining shared Abstract Syntax Tree elements

Author:
John Ericksen

Method Summary
<A extends Annotation>
A
getAnnotation(Class<A> annotation)
          Supplies the given annotation instance from the given annotation class key
 Collection<ASTAnnotation> getAnnotations()
          Supplies the set of annotations
 ASTAnnotation getASTAnnotation(Class annotation)
          Getter for the AST Annotation associated with the given annotation type
 String getName()
          Supplies the name of the current tree node
 boolean isAnnotated(Class<? extends Annotation> annotation)
          Determines if the current element is annotated with the given annotation class
 

Method Detail

isAnnotated

boolean isAnnotated(Class<? extends Annotation> annotation)
Determines if the current element is annotated with the given annotation class

Parameters:
annotation - key
Returns:
annotated conditional

getAnnotations

Collection<ASTAnnotation> getAnnotations()
Supplies the set of annotations

Returns:
ast annotation list

getAnnotation

<A extends Annotation> A getAnnotation(Class<A> annotation)
Supplies the given annotation instance from the given annotation class key

Type Parameters:
A - annotation type
Parameters:
annotation - key
Returns:
annotation instance

getASTAnnotation

ASTAnnotation getASTAnnotation(Class annotation)
Getter for the AST Annotation associated with the given annotation type

Parameters:
annotation - type
Returns:
annotation AST

getName

String getName()
Supplies the name of the current tree node

Returns:
name of the current node


Copyright © 2012. All Rights Reserved.