OSDN Git Service

Auto-save
[dvibrowser/dvi2epub.git] / src / jp / sourceforge / dvibrowser / dvi2epub / cmd / Option.java
index f6c25dc..ba3c1f5 100644 (file)
@@ -1,15 +1,18 @@
 package jp.sourceforge.dvibrowser.dvi2epub.cmd;
 
 import java.lang.annotation.Annotation;
+import java.lang.reflect.Method;
 
 public class Option {
        private final String shortName;
        private final String longName;
        private final Annotation annotation;
        private final String description;
+       private final Method method;
        
-       public Option(Annotation annotation, String shortName, String longName, String description) {
+       public Option(Annotation annotation, Method method, String shortName, String longName, String description) {
                this.annotation = annotation;
+               this.method = method;
                this.shortName = shortName;
                this.longName = longName;
                this.description = description;
@@ -40,4 +43,8 @@ public class Option {
        public String getDescription() {
                return description;
        }
+
+       public Method getMethod() {
+               return method;
+       }
 }