summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2007-09-02 02:27:25 +0000
committerRich Hickey <richhickey@gmail.com>2007-09-02 02:27:25 +0000
commit89399efd04b3a276bd00a5219a8db2e0d329eecb (patch)
treefb8bdda8ef4890040e10410ee7bf30a60775fa7a /src
parentbaed4be30a25d1fa9909baab16702a520b688aaf (diff)
interim checkin
Diffstat (limited to 'src')
-rw-r--r--src/jvm/clojure/lang/BytecodeCompiler.java37
-rw-r--r--src/jvm/clojure/lang/RestFn.java2303
-rw-r--r--src/jvm/clojure/lang/Var.java3
3 files changed, 1186 insertions, 1157 deletions
diff --git a/src/jvm/clojure/lang/BytecodeCompiler.java b/src/jvm/clojure/lang/BytecodeCompiler.java
index 1c60a885..a410b559 100644
--- a/src/jvm/clojure/lang/BytecodeCompiler.java
+++ b/src/jvm/clojure/lang/BytecodeCompiler.java
@@ -50,6 +50,7 @@ private static Type VAR_TYPE = Type.getType(Var.class);
private static Type SYMBOL_TYPE = Type.getType(Symbol.class);
private static Type[][] ARG_TYPES;
+private static Type[] EXCEPTION_TYPES = {Type.getType(Exception.class)};
static
{
@@ -98,6 +99,8 @@ enum C{
interface Expr{
Object eval() throws Exception;
+
+ void emit(C context, FnExpr fn, GeneratorAdapter gen);
}
static class DefExpr implements Expr{
@@ -110,7 +113,12 @@ static class DefExpr implements Expr{
}
public Object eval() throws Exception{
- return var.bindRoot(init.eval());
+ var.bindRoot(init.eval());
+ return var;
+ }
+
+ public void emit(C context, FnExpr fn, GeneratorAdapter gen){
+
}
public static Expr parse(C context, ISeq form) throws Exception{
@@ -385,7 +393,7 @@ static class FnExpr implements Expr{
cv.visitField(ACC_PUBLIC + ACC_FINAL + ACC_STATIC, munge(v.sym.toString()),
VAR_TYPE.getDescriptor(), null, null);
}
- //todo static init for keywords and vars
+ //static init for keywords and vars
GeneratorAdapter clinitgen = new GeneratorAdapter(ACC_PUBLIC + ACC_STATIC,
Method.getMethod("void <clinit> ()"),
null,
@@ -442,8 +450,12 @@ static class FnExpr implements Expr{
ctorgen.visitMaxs(1, 1);
ctorgen.endMethod();
- //todo override of invoke/doInvoke for each method
-
+ //override of invoke/doInvoke for each method
+ for(ISeq s = RT.seq(methods); s != null; s = s.rest())
+ {
+ FnMethod method = (FnMethod) s.first();
+ method.emit(this, cv);
+ }
//end of class
cv.visitEnd();
@@ -550,6 +562,23 @@ static class FnMethod{
Var.popThreadBindings();
}
}
+
+ public void emit(FnExpr fn, ClassVisitor cv){
+ Method m = new Method(isVariadic() ? "doInvoke" : "invoke",
+ OBJECT_TYPE, ARG_TYPES[numParams()]);
+
+ GeneratorAdapter gen = new GeneratorAdapter(ACC_PUBLIC,
+ m,
+ null,
+ EXCEPTION_TYPES,
+ cv);
+
+ body.emit(C.RETURN, fn, gen);
+
+ gen.returnValue();
+ gen.visitMaxs(1, 1);
+ gen.endMethod();
+ }
}
static class LocalBinding{
diff --git a/src/jvm/clojure/lang/RestFn.java b/src/jvm/clojure/lang/RestFn.java
index 3beee835..e33d21fe 100644
--- a/src/jvm/clojure/lang/RestFn.java
+++ b/src/jvm/clojure/lang/RestFn.java
@@ -9,1325 +9,1326 @@
**/
package clojure.lang;
-public abstract class RestFn extends AFn {
+public abstract class RestFn extends AFn{
protected int reqArity;
-public RestFn(int reqArity) {
- this.reqArity = reqArity;
+public RestFn(int reqArity){
+ this.reqArity = reqArity;
}
-protected Object doInvoke(ISeq args) throws Exception {
- return null;
+protected Object doInvoke(Object args) throws Exception{
+ return null;
}
-protected Object doInvoke(Object arg1, ISeq args) throws Exception {
- return null;
+protected Object doInvoke(Object arg1, Object args) throws Exception{
+ return null;
}
-protected Object doInvoke(Object arg1, Object arg2, ISeq args) throws Exception {
- return null;
+protected Object doInvoke(Object arg1, Object arg2, Object args) throws Exception{
+ return null;
}
-protected Object doInvoke(Object arg1, Object arg2, Object arg3, ISeq args) throws Exception {
- return null;
+protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object args) throws Exception{
+ return null;
}
-protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, ISeq args) throws Exception {
- return null;
+protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object args) throws Exception{
+ return null;
}
-protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, ISeq args) throws Exception {
- return null;
+protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object args)
+ throws Exception{
+ return null;
}
-protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, ISeq args)
- throws Exception {
- return null;
+protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object args)
+ throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
- ISeq args) throws Exception {
- return null;
+ Object args) throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
- Object arg8, ISeq args) throws Exception {
- return null;
+ Object arg8, Object args) throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
- Object arg8, Object arg9, ISeq args) throws Exception {
- return null;
+ Object arg8, Object arg9, Object args) throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
- Object arg8, Object arg9, Object arg10, ISeq args) throws Exception {
- return null;
+ Object arg8, Object arg9, Object arg10, Object args) throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
- Object arg8, Object arg9, Object arg10, Object arg11, ISeq args) throws Exception {
- return null;
+ Object arg8, Object arg9, Object arg10, Object arg11, Object args) throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
- Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, ISeq args)
- throws Exception {
- return null;
+ Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object args)
+ throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
- Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13, ISeq args)
- throws Exception {
- return null;
+ Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13, Object args)
+ throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13,
- Object arg14, ISeq args) throws Exception {
- return null;
+ Object arg14, Object args) throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13,
- Object arg14, Object arg15, ISeq args) throws Exception {
- return null;
+ Object arg14, Object arg15, Object args) throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13,
- Object arg14, Object arg15, Object arg16, ISeq args) throws Exception {
- return null;
+ Object arg14, Object arg15, Object arg16, Object args) throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13,
- Object arg14, Object arg15, Object arg16, Object arg17, ISeq args) throws Exception {
- return null;
+ Object arg14, Object arg15, Object arg16, Object arg17, Object args) throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13,
- Object arg14, Object arg15, Object arg16, Object arg17, Object arg18, ISeq args)
- throws Exception {
- return null;
+ Object arg14, Object arg15, Object arg16, Object arg17, Object arg18, Object args)
+ throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13,
- Object arg14, Object arg15, Object arg16, Object arg17, Object arg18, Object arg19, ISeq args)
- throws Exception {
- return null;
+ Object arg14, Object arg15, Object arg16, Object arg17, Object arg18, Object arg19,
+ Object args)
+ throws Exception{
+ return null;
}
protected Object doInvoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7,
Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13,
Object arg14, Object arg15, Object arg16, Object arg17, Object arg18, Object arg19,
- Object arg20, ISeq args) throws Exception {
- return null;
+ Object arg20, Object args) throws Exception{
+ return null;
}
-
-public Object applyTo(ISeq args) throws Exception {
- if (RT.boundedLength(args, reqArity) <= reqArity)
- {
- return AFn.applyToHelper(this, args);
- }
- switch (reqArity)
- {
- case 0:
- return invoke(args);
- case 1:
- return invoke(args.first()
- , args.rest());
- case 2:
- return invoke(args.first()
- , (args = args.rest()).first()
- , args.rest());
- case 3:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 4:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 5:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 6:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 7:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 8:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 9:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 10:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 11:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 12:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 13:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 14:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 15:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 16:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 17:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 18:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 19:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
- case 20:
- return invoke(args.first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , (args = args.rest()).first()
- , args.rest());
-
- }
- return throwArity();
+public Object applyTo(ISeq args) throws Exception{
+ if(RT.boundedLength(args, reqArity) <= reqArity)
+ {
+ return AFn.applyToHelper(this, args);
+ }
+ switch(reqArity)
+ {
+ case 0:
+ return invoke(args);
+ case 1:
+ return invoke(args.first()
+ , args.rest());
+ case 2:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 3:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 4:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 5:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 6:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 7:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 8:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 9:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 10:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 11:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 12:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 13:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 14:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 15:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 16:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 17:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 18:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 19:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+ case 20:
+ return invoke(args.first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , (args = args.rest()).first()
+ , args.rest());
+
+ }
+ return throwArity();
}
-public Object invoke() throws Exception {
- switch (reqArity)
- {
- case 0:
- return doInvoke(null);
- default:
- return throwArity();
- }
+public Object invoke() throws Exception{
+ switch(reqArity)
+ {
+ case 0:
+ return doInvoke(null);
+ default:
+ return throwArity();
+ }
}
-public Object invoke(Object arg1) throws Exception {
- switch (reqArity)
- {
- case 0:
- return doInvoke(ArraySeq.create(arg1));
- case 1:
- return doInvoke(arg1, null);
- default:
- return throwArity();
- }
+public Object invoke(Object arg1) throws Exception{
+ switch(reqArity)
+ {
+ case 0:
+ return doInvoke(ArraySeq.create(arg1));
+ case 1:
+ return doInvoke(arg1, null);
+ default:
+ return throwArity();
+ }
}
-public Object invoke(Object arg1, Object arg2) throws Exception {
- switch (reqArity)
- {
- case 0:
- return doInvoke(ArraySeq.create(arg1, arg2));
- case 1:
- return doInvoke(arg1, ArraySeq.create(arg2));
- case 2:
- return doInvoke(arg1, arg2, null);
- default:
- return throwArity();
- }
+public Object invoke(Object arg1, Object arg2) throws Exception{
+ switch(reqArity)
+ {
+ case 0:
+ return doInvoke(ArraySeq.create(arg1, arg2));
+ case 1:
+ return doInvoke(arg1, ArraySeq.create(arg2));
+ case 2:
+ return doInvoke(arg1, arg2, null);
+ default:
+ return throwArity();
+ }
}
-public Object invoke(Object arg1, Object arg2, Object arg3) throws Exception {
- switch (reqArity)
- {
- case 0:
- return doInvoke(ArraySeq.create(arg1, arg2, arg3));
- case 1:
- return doInvoke(arg1, ArraySeq.create(arg2, arg3));
- case 2:
- return doInvoke(arg1, arg2, ArraySeq.create(arg3));
- case 3:
- return doInvoke(arg1, arg2, arg3, null);
- default:
- return throwArity();
- }
+public Object invoke(Object arg1, Object arg2, Object arg3) throws Exception{
+ switch(reqArity)
+ {
+ case 0:
+ return doInvoke(ArraySeq.create(arg1, arg2, arg3));
+ case 1:
+ return doInvoke(arg1, ArraySeq.create(arg2, arg3));
+ case 2:
+ return doInvoke(arg1, arg2, ArraySeq.create(arg3));
+ case 3:
+ return doInvoke(arg1, arg2, arg3, null);
+ default:
+ return throwArity();
+ }
}
-public Object invoke(Object arg1, Object arg2, Object arg3, Object arg4) throws Exception {
- switch (reqArity)
- {
- case 0:
- return doInvoke(ArraySeq.create(arg1, arg2, arg3, arg4));
- case 1:
- return doInvoke(arg1, ArraySeq.create(arg2, arg3, arg4));
- case 2:
- return doInvoke(arg1, arg2, ArraySeq.create(arg3, arg4));
- case 3:
- return doInvoke(arg1, arg2, arg3, ArraySeq.create(arg4));
- case 4:
- return doInvoke(arg1, arg2, arg3, arg4, null);
- default:
- return throwArity();
- }
+public Object invoke(Object arg1, Object arg2, Object arg3, Object arg4) throws Exception{
+ switch(reqArity)
+ {
+ case 0:
+ return doInvoke(ArraySeq.create(arg1, arg2, arg3, arg4));
+ case 1:
+ return doInvoke(arg1, ArraySeq.create(arg2, arg3, arg4));
+ case 2:
+ return doInvoke(arg1, arg2, ArraySeq.create(arg3, arg4));
+ case 3:
+ return doInvoke(arg1, arg2, arg3, ArraySeq.create(arg4));
+ case 4:
+ return doInvoke(arg1, arg2, arg3, arg4, null);
+ default:
+ return throwArity();
+ }
}
-public Object invoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws Exception {
- switch (reqArity)
- {
- case 0:
- return doInvoke(ArraySeq.create(arg1, arg2, arg3, arg4, arg5));
- case 1:
- return doInvoke(arg1, ArraySeq.create(arg2, arg3, arg4, arg5));
- case 2:
- return doInvoke(arg1, arg2, ArraySeq.create(arg3, arg4, arg5));
- case 3:
- return doInvoke(arg1, arg2, arg3, ArraySeq.create(arg4, arg5));
- case 4:
- return doInvoke(arg1, arg2, arg3, arg4, ArraySeq.create(arg5));
- case 5:
- return doInvoke(arg1, arg2, arg3, arg4, arg5, null);
- default:
- return throwArity();
- }
+public Object invoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws Exception{
+ switch(reqArity)
+ {
+ case 0:
+ return doInvoke(ArraySeq.create(arg1, arg2, arg3, arg4, arg5));