All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.runtime.ast.internal.FunctionElementAST Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package org.mule.runtime.ast.internal;

import org.mule.runtime.module.extension.api.loader.java.type.FunctionContainerElement;
import org.mule.runtime.module.extension.api.loader.java.type.FunctionElement;

import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.TypeElement;

/**
 * /**
 * {@link FunctionElement} implementation which works with the Java AST
 *
 * @since 1.0
 */
public class FunctionElementAST extends MethodElementAST implements FunctionElement {

  FunctionElementAST(ExecutableElement method, ProcessingEnvironment processingEnvironment) {
    super(method, processingEnvironment);
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public FunctionContainerElement getEnclosingType() {
    return new FunctionContainerASTElement((TypeElement) method.getEnclosingElement(), processingEnvironment);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy