Package de.bmiag.tapir.util.aa
Class AnnotationProcessorUtil
- java.lang.Object
-
- de.bmiag.tapir.util.aa.AnnotationProcessorUtil
-
public class AnnotationProcessorUtil extends java.lang.Object
Provides some helper methods for Xtend's Active Annotations API.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description AnnotationProcessorUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.xtend.lib.macro.declaration.AnnotationReference
findMetaAnnotation(org.eclipse.xtend.lib.macro.declaration.AnnotationTarget annotationTarget, org.eclipse.xtend.lib.macro.declaration.Type annotationType)
org.eclipse.xtend.lib.macro.declaration.ClassDeclaration
getDeclaringClass(org.eclipse.xtend.lib.macro.declaration.Declaration declaration)
Returns theClassDeclaration
which contains the givenDeclaration
.org.eclipse.xtend.lib.macro.declaration.MethodDeclaration
getDeclaringMethod(org.eclipse.xtend.lib.macro.declaration.Declaration declaration)
Returns theMethodDeclaration
which contains the givenDeclaration
.org.eclipse.xtend.lib.macro.declaration.TypeReference
getType(org.eclipse.xtend.lib.macro.declaration.Declaration declaration)
Returns the type of the givenDeclaration
.
-
-
-
Method Detail
-
getDeclaringClass
public org.eclipse.xtend.lib.macro.declaration.ClassDeclaration getDeclaringClass(org.eclipse.xtend.lib.macro.declaration.Declaration declaration)
Returns theClassDeclaration
which contains the givenDeclaration
. If the givenDeclaration
is aClassDeclaration
, it is returned.- Parameters:
declaration
- the declaration which's containingClassDeclaration
should be determined- Returns:
- the class declaration
- Since:
- 2.0.0
-
getDeclaringMethod
public org.eclipse.xtend.lib.macro.declaration.MethodDeclaration getDeclaringMethod(org.eclipse.xtend.lib.macro.declaration.Declaration declaration)
Returns theMethodDeclaration
which contains the givenDeclaration
. If the givenDeclaration
is aMethodDeclaration
, it is returned.- Parameters:
declaration
- the declaration which's containingMethodDeclaration
should be determined- Returns:
- the method declaration
- Since:
- 2.0.0
-
getType
public org.eclipse.xtend.lib.macro.declaration.TypeReference getType(org.eclipse.xtend.lib.macro.declaration.Declaration declaration)
Returns the type of the givenDeclaration
.- Parameters:
declaration
- the declaration which's type should be determined- Returns:
- the declaration's type
- Since:
- 2.0.0
-
findMetaAnnotation
public org.eclipse.xtend.lib.macro.declaration.AnnotationReference findMetaAnnotation(org.eclipse.xtend.lib.macro.declaration.AnnotationTarget annotationTarget, org.eclipse.xtend.lib.macro.declaration.Type annotationType)
-
-