Rework MethodSerializer (+ fallout)
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / ftl / model / Method.java
index d83a70ccee376c9ddfd24c6406e862ad2b1ce3a9..2394fc0d1dbb22e6d5fe3327cc1b016e811753b5 100644 (file)
@@ -8,11 +8,13 @@
 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model;
 
 import java.util.List;
+import java.util.Optional;
+import javax.lang.model.element.Modifier;
 
 public interface Method {
-    String getVisibility();
+    Optional<Modifier> getVisibility();
 
-    List<String> getModifiers();
+    List<Modifier> getModifiers();
 
     String getReturnType();
 
@@ -23,4 +25,8 @@ public interface Method {
     String getJavadoc();
 
     List<Annotation> getAnnotations();
+
+    List<String> getThrowsExceptions();
+
+    Optional<String> getBody();
 }