Sha256: ef3d520b76fb51ab180b4d54fc2aad72e73669320e8ec2563e5c1b75cff4c0f8

Contents?: true

Size: 1.27 KB

Versions: 135

Compression:

Stored size: 1.27 KB

Contents

/**
 * Copyright 2007 Ye Zheng
 * Distributed under the BSD License
 */

package com.xruby.compiler.codegen;

class ClassGeneratorForRubyMethodFactory {
    public static ClassGeneratorForRubyMethod createClassGeneratorForRubyMethod(
            String method_name, String fileName,
            String name, int argc,
            boolean has_asterisk_parameter, int default_argc,
            boolean is_singleton_method) {
        if (!has_asterisk_parameter && default_argc == 0) {
            switch (argc) {
            case 0:
                return new ClassGeneratorForNoArgRubyMethod(method_name, fileName,
                        name, argc, has_asterisk_parameter, default_argc, is_singleton_method);
            case 1:
                return new ClassGeneratorForOneArgRubyMethod(method_name, fileName,
                        name, argc, has_asterisk_parameter, default_argc, is_singleton_method);
            case 2:
                return new ClassGeneratorForTwoArgRubyMethod(method_name, fileName,
                        name, argc, has_asterisk_parameter, default_argc, is_singleton_method);
            }
        }
        return new ClassGeneratorForVarArgRubyMethod(method_name, fileName,
                name, argc, has_asterisk_parameter, default_argc, is_singleton_method);
    }
}

Version data entries

135 entries across 135 versions & 2 rubygems

Version Path
rhodes-2.0.0.beta7 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-2.0.0.beta6 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-2.0.0.beta4 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-2.0.0.beta3 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-1.5.5 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-2.0.0.beta2 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-2.0.0.beta1 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-1.5.4 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-1.5.3 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-1.5.2 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-1.5.1 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-1.5.0 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-1.4.2 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-1.4.1 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java
rhodes-1.4.0 platform/shared/xruby/src/com/xruby/compiler/codegen/ClassGeneratorForRubyMethodFactory.java