2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model;
10 import java.util.Collections;
11 import java.util.List;
13 public class MethodDeclaration implements Method {
14 private final String returnType;
15 private final String name;
16 private final List<Field> parameters;
17 private String javadoc = null;
18 private final List<Annotation> annotations;
20 public MethodDeclaration(String returnType, String name,
21 List<Field> parameters) {
22 this(returnType, name, parameters, Collections.<Annotation> emptyList());
25 public MethodDeclaration(String returnType, String name,
26 List<Field> parameters, List<Annotation> annotations) {
27 this.returnType = returnType;
29 this.parameters = parameters;
30 this.annotations = annotations;
34 public List<Annotation> getAnnotations() {
39 public String getJavadoc() {
43 public void setJavadoc(String javadoc) {
44 this.javadoc = javadoc;
48 public String getReturnType() {
53 public String getName() {
58 public List<Field> getParameters() {
63 public List<String> getModifiers() {
64 return Collections.emptyList();