org.eclipse.xtend.middleend.javaannotations
Class JavaAnnotationBackendFacade

java.lang.Object
  extended by org.eclipse.xtend.middleend.javaannotations.JavaAnnotationBackendFacade

public class JavaAnnotationBackendFacade
extends java.lang.Object


Method Summary
static JavaAnnotationBackendFacade createFromClass(java.lang.String className, BackendTypesystem ts)
           
static JavaAnnotationBackendFacade createFromClass(java.lang.String className, BackendTypesystem ts, java.lang.String adviceResource)
          Creates a LanguageSpecificMiddleEnd for the JavaAnnotations middleend from a class
 MiddleEnd getMiddleEnd()
           
 java.lang.Object invokeFunction(QualifiedName functionName, java.util.List<?> params)
          This method calls a function registered at the middleend
static java.lang.Object invokeFunction(java.lang.String className, BackendTypesystem ts, QualifiedName functionName, java.util.List<?> params)
          This method calls a function defined in a class.
static java.lang.Object invokeFunction(java.lang.String className, BackendTypesystem ts, java.lang.String adviceResource, QualifiedName functionName, java.util.List<?> params)
          This method calls a function defined in a class applying advices in the given resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invokeFunction

public static java.lang.Object invokeFunction(java.lang.String className,
                                              BackendTypesystem ts,
                                              QualifiedName functionName,
                                              java.util.List<?> params)
This method calls a function defined in a class.

Parameters:
className - The full qualified class name of class containing the function to be called
ts - The type system, i.e. metamodels
functionName - The function to be called
params - The parameters of the function to be called
Returns:
The result of the function call

invokeFunction

public static java.lang.Object invokeFunction(java.lang.String className,
                                              BackendTypesystem ts,
                                              java.lang.String adviceResource,
                                              QualifiedName functionName,
                                              java.util.List<?> params)
This method calls a function defined in a class applying advices in the given resource.

Parameters:
className - The full qualified class name of class containing the function to be called
ts - The type system, i.e. metamodels
adviceResource - The resource containing the advices to be applied to the function, i.e. either a fully qualified classname or a resource name
functionName - The function to be called
params - The parameters of the function to be called
Returns:
The result of the function call

invokeFunction

public java.lang.Object invokeFunction(QualifiedName functionName,
                                       java.util.List<?> params)
This method calls a function registered at the middleend

Parameters:
functionName - The function to be called
params - The parameters of the function to be called
Returns:
The result of the function call

createFromClass

public static JavaAnnotationBackendFacade createFromClass(java.lang.String className,
                                                          BackendTypesystem ts)

createFromClass

public static JavaAnnotationBackendFacade createFromClass(java.lang.String className,
                                                          BackendTypesystem ts,
                                                          java.lang.String adviceResource)
Creates a LanguageSpecificMiddleEnd for the JavaAnnotations middleend from a class

Parameters:
className - The fully qualified classname
ts - The typesystem in use, i.e. the metamodels
adviceResource - The resource containing the advice (either a fully qualified classname or filename)
Returns:
The LanguageSpecificMiddleEnd

getMiddleEnd

public MiddleEnd getMiddleEnd()