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(org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation eclipseAnnotation, World w, EclipseFactory factory)
          Convert one eclipse annotation into an AnnotationX object containing an AnnotationAJ object.
static AnnotationValue generateElementValueForConstantExpression(org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression defaultValue, org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding defaultValueBinding)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseAnnotationConvertor

public EclipseAnnotationConvertor()
Method Detail

convertEclipseAnnotation

public static AnnotationAJ convertEclipseAnnotation(org.aspectj.org.eclipse.jdt.internal.compiler.ast.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(org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression defaultValue,
                                                                        org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding defaultValueBinding)