Search in sources :

Example 1 with JvmAnnotation

use of com.intellij.lang.jvm.JvmAnnotation in project azure-tools-for-java by Microsoft.

the class FunctionUtils method parseAnnotations.

private static List<Binding> parseAnnotations(final Project project, JvmAnnotation[] annotations) throws AzureExecutionException {
    final List<Binding> bindings = new ArrayList<>();
    for (final JvmAnnotation annotation : annotations) {
        final Binding binding = getBinding(project, annotation);
        if (binding != null) {
            Log.debug("Adding binding: " + binding.toString());
            bindings.add(binding);
        }
    }
    return bindings;
}
Also used : Binding(com.microsoft.azure.toolkit.lib.legacy.function.bindings.Binding) JvmAnnotation(com.intellij.lang.jvm.JvmAnnotation) ArrayList(java.util.ArrayList)

Aggregations

JvmAnnotation (com.intellij.lang.jvm.JvmAnnotation)1 Binding (com.microsoft.azure.toolkit.lib.legacy.function.bindings.Binding)1 ArrayList (java.util.ArrayList)1