org.richfaces.cdk.apt
Class AptSourceUtils

java.lang.Object
  extended by org.richfaces.cdk.apt.AptSourceUtils
All Implemented Interfaces:
SourceUtils

public class AptSourceUtils
extends java.lang.Object
implements SourceUtils


Nested Class Summary
protected  class AptSourceUtils.AptBeanProperty
          

 
Nested classes/interfaces inherited from interface org.richfaces.cdk.apt.SourceUtils
SourceUtils.BeanProperty, SourceUtils.SuperTypeVisitor
 
Constructor Summary
AptSourceUtils(javax.annotation.processing.ProcessingEnvironment processingEnv)
          

 
Method Summary
 javax.lang.model.element.TypeElement asTypeElement(ClassName type)
          

 javax.lang.model.element.TypeElement asTypeElement(javax.lang.model.type.TypeMirror mirror)
          

Converts TypeMirror into corresponding TypeElement

 java.util.Set<SourceUtils.BeanProperty> getAbstractBeanProperties(javax.lang.model.element.TypeElement type)
          

 java.util.Set<SourceUtils.BeanProperty> getBeanPropertiesAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, javax.lang.model.element.TypeElement type)
          

Get all fields and bean properties that are annotated with given annotation.

 java.lang.Object getConstant(javax.lang.model.element.TypeElement componentElement, java.lang.String name)
          

 java.lang.String getDocComment(javax.lang.model.element.Element componentElement)
          

Get JavaDoc comments associated with given element.

 void visitSupertypes(javax.lang.model.element.TypeElement type, SourceUtils.SuperTypeVisitor visitor)
          

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AptSourceUtils

public AptSourceUtils(javax.annotation.processing.ProcessingEnvironment processingEnv)

Parameters:
processingEnv -
Method Detail

getBeanPropertiesAnnotatedWith

public java.util.Set<SourceUtils.BeanProperty> getBeanPropertiesAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
                                                                              javax.lang.model.element.TypeElement type)

Get all fields and bean properties that are annotated with given annotation.

Specified by:
getBeanPropertiesAnnotatedWith in interface SourceUtils
Parameters:
annotation -
type -
Returns:

getAbstractBeanProperties

public java.util.Set<SourceUtils.BeanProperty> getAbstractBeanProperties(javax.lang.model.element.TypeElement type)
Description copied from interface: SourceUtils

Specified by:
getAbstractBeanProperties in interface SourceUtils
Returns:

getDocComment

public java.lang.String getDocComment(javax.lang.model.element.Element componentElement)
Description copied from interface: SourceUtils

Get JavaDoc comments associated with given element.

Specified by:
getDocComment in interface SourceUtils
Returns:

getConstant

public java.lang.Object getConstant(javax.lang.model.element.TypeElement componentElement,
                                    java.lang.String name)
Description copied from interface: SourceUtils

Specified by:
getConstant in interface SourceUtils
Returns:

visitSupertypes

public void visitSupertypes(javax.lang.model.element.TypeElement type,
                            SourceUtils.SuperTypeVisitor visitor)
Description copied from interface: SourceUtils

Specified by:
visitSupertypes in interface SourceUtils

asTypeElement

public javax.lang.model.element.TypeElement asTypeElement(ClassName type)
Description copied from interface: SourceUtils

Specified by:
asTypeElement in interface SourceUtils
Returns:

asTypeElement

public javax.lang.model.element.TypeElement asTypeElement(javax.lang.model.type.TypeMirror mirror)
Description copied from interface: SourceUtils

Converts TypeMirror into corresponding TypeElement

Specified by:
asTypeElement in interface SourceUtils
Returns:


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.