org.androidtransfuse.analysis.adapter
Class ASTClassConstructor

Package class diagram package ASTClassConstructor
java.lang.Object
  extended by org.androidtransfuse.analysis.adapter.ASTClassConstructor
All Implemented Interfaces:
ASTBase, ASTConstructor

public class ASTClassConstructor
extends Object
implements ASTConstructor

Class specific AST Constructor

Author:
John Ericksen

Constructor Summary
ASTClassConstructor(com.google.common.collect.ImmutableList<ASTAnnotation> annotations, Constructor<?> constructor, com.google.common.collect.ImmutableList<ASTParameter> parameters, ASTAccessModifier modifier, com.google.common.collect.ImmutableList<ASTType> throwsTypes)
           
 
Method Summary
 ASTAccessModifier getAccessModifier()
          Access modifier for the constructor
<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
 List<ASTParameter> getParameters()
          Supplies the contained constructor parameters
 List<ASTType> getThrowsTypes()
          Supplies all throws associated with this method
 boolean isAnnotated(Class<? extends Annotation> annotation)
          Determines if the current element is annotated with the given annotation class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTClassConstructor

public ASTClassConstructor(com.google.common.collect.ImmutableList<ASTAnnotation> annotations,
                           Constructor<?> constructor,
                           com.google.common.collect.ImmutableList<ASTParameter> parameters,
                           ASTAccessModifier modifier,
                           com.google.common.collect.ImmutableList<ASTType> throwsTypes)
Method Detail

isAnnotated

public boolean isAnnotated(Class<? extends Annotation> annotation)
Description copied from interface: ASTBase
Determines if the current element is annotated with the given annotation class

Specified by:
isAnnotated in interface ASTBase
Parameters:
annotation - key
Returns:
annotated conditional

getAnnotation

public <A extends Annotation> A getAnnotation(Class<A> annotation)
Description copied from interface: ASTBase
Supplies the given annotation instance from the given annotation class key

Specified by:
getAnnotation in interface ASTBase
Type Parameters:
A - annotation type
Parameters:
annotation - key
Returns:
annotation instance

getParameters

public List<ASTParameter> getParameters()
Description copied from interface: ASTConstructor
Supplies the contained constructor parameters

Specified by:
getParameters in interface ASTConstructor
Returns:
list of constructor parameters

getName

public String getName()
Description copied from interface: ASTBase
Supplies the name of the current tree node

Specified by:
getName in interface ASTBase
Returns:
name of the current node

getAnnotations

public Collection<ASTAnnotation> getAnnotations()
Description copied from interface: ASTBase
Supplies the set of annotations

Specified by:
getAnnotations in interface ASTBase
Returns:
ast annotation list

getAccessModifier

public ASTAccessModifier getAccessModifier()
Description copied from interface: ASTConstructor
Access modifier for the constructor

Specified by:
getAccessModifier in interface ASTConstructor
Returns:
access modifier for constructor

getThrowsTypes

public List<ASTType> getThrowsTypes()
Description copied from interface: ASTConstructor
Supplies all throws associated with this method

Specified by:
getThrowsTypes in interface ASTConstructor
Returns:
throw types

getASTAnnotation

public ASTAnnotation getASTAnnotation(Class annotation)
Description copied from interface: ASTBase
Getter for the AST Annotation associated with the given annotation type

Specified by:
getASTAnnotation in interface ASTBase
Parameters:
annotation - type
Returns:
annotation AST


Copyright © 2012. All Rights Reserved.