org.aspectj.ajdt.internal.compiler.lookup
Class EclipseAnnotationConvertor

java.lang.Object
  extended by org.aspectj.ajdt.internal.compiler.lookup.EclipseAnnotationConvertor

public class EclipseAnnotationConvertor
extends java.lang.Object


Constructor Summary
EclipseAnnotationConvertor()
           
 
Method Summary
static AnnotationAJ convertEclipseAnnotation(Annotation eclipseAnnotation, World w, EclipseFactory factory)
          Convert one eclipse annotation into an AnnotationX object containing an AnnotationAJ object.
static AnnotationValue generateElementValueForConstantExpression(Expression defaultValue, TypeBinding defaultValueBinding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseAnnotationConvertor

public EclipseAnnotationConvertor()
Method Detail

convertEclipseAnnotation

public static AnnotationAJ convertEclipseAnnotation(Annotation eclipseAnnotation,
                                                    World w,
                                                    EclipseFactory factory)
Convert one eclipse annotation into an AnnotationX object containing an AnnotationAJ object. This code and the helper methods used by it will go *BANG* if they encounter anything not currently supported - this is safer than limping along with a malformed annotation. When the *BANG* is encountered the bug reporter should indicate the kind of annotation they were working with and this code can be enhanced to support it.


generateElementValueForConstantExpression

public static AnnotationValue generateElementValueForConstantExpression(Expression defaultValue,
                                                                        TypeBinding defaultValueBinding)