Title: [706] trunk/qdox/src/java/com/thoughtworks/qdox/model/JavaMethod.java: added public JavaMethod.isVarArgs()
Revision
706
Author
rfscholte
Date
2010-03-01 08:58:41 -0600 (Mon, 01 Mar 2010)

Log Message

added public JavaMethod.isVarArgs()

Modified Paths


Diff

Modified: trunk/qdox/src/java/com/thoughtworks/qdox/model/JavaMethod.java (705 => 706)

--- trunk/qdox/src/java/com/thoughtworks/qdox/model/JavaMethod.java	2010-03-01 14:36:49 UTC (rev 705)
+++ trunk/qdox/src/java/com/thoughtworks/qdox/model/JavaMethod.java	2010-03-01 14:58:41 UTC (rev 706)
@@ -14,7 +14,7 @@
     private Type[] exceptions = Type.EMPTY_ARRAY;
     private boolean constructor;
     private String sourceCode;
-    private boolean varArg;
+    private boolean varArgs;
 
     public JavaMethod() {
     }
@@ -57,6 +57,11 @@
     public boolean isConstructor() {
         return constructor;
     }
+    
+    public boolean isVarArgs()
+    {
+        return varArgs;
+    }
 
     protected void writeBody(IndentBuffer result) {
         writeBody(result, true, true, true);
@@ -147,7 +152,7 @@
         javaParameter.setParentMethod( this );
         parameters.add( javaParameter );
         parametersArray = null;
-        this.varArg = javaParameter.isVarArgs();
+        this.varArgs = javaParameter.isVarArgs();
     }
 
     public void setExceptions(Type[] exceptions) {
@@ -177,7 +182,7 @@
             if (!otherParams[i].equals(myParams[i])) return false;
         }
 
-        return this.varArg == m.varArg;
+        return this.varArgs == m.varArgs;
     }
 
     /**
@@ -206,7 +211,7 @@
                 return false;
             }
         }
-        return (this.varArg == varArg);
+        return (this.varArgs == varArg);
     }
 
     public int hashCode() {


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to