Sha256: 09a07461be61569ce21bfbe44cbb04ac0d55257829a53ad7252500af970c8ed0

Contents?: true

Size: 1.17 KB

Versions: 31

Compression:

Stored size: 1.17 KB

Contents

package test
import java.util.Map
import static java.util.Map

/**
 * @author Luke Daley
 */
class Test extends Object implements Serializable {
    
    static String s = null
    private n = -3459
    def l = [1,2,3]
    def c = [blah: new Integer(5), ghe: testMethod(false, "bah")]
    def p = /sdasd/
    def m = [key1: "value1", key2: "value2", (l): "value3"]

    Test(args) {
    	
    }

	def testMethod(arg1, String typed) {
        return 6
    }

	def methodName(args = String) {
		{ String asdasd = "asdasd", Integer xx = 2 -> }
	}
    
    static main(args) {
        def n = -234e12
        def t = true ? n : new Integer(1)
        assert t : "Failure message"
        def m = new HashMap(key1: "123", key2: "123")
        m?.equals key1: "123"
        thing.default.return // <-- don't scope keywords like default in this context

        
        switch(t) {
            case m:
                
            break
            case "CASE_NAME":
                
            break
            default:
                
            break
        }
        
        println "OK!"
    }
}

private class PrivateTest {
    
    

}

public enum Blah {
	THING1,
	THING2(1,3),
	THING3
}

	

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
redcar-bundles-0.3 Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-bundles-0.2-java Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-bundles-0.1-java Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-dev-0.12.1dev-java plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-dev-0.12.0dev-java plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.11 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.11.0dev plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.10 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.9.2 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.9.1 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.9.0 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.8.1 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.8 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.7 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.6.1 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.6 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.6.1dev plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.5.1 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.5 plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy
redcar-0.5.6dev plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/Syntaxes/Test.groovy