groovy 源代码

Groovy是一种基于JVM(Java虚拟机)的敏捷开发语言,它结合了Python、Ruby和Smalltalk的许多强大的特性,Groovy代码能够与Java代码很好地结合,也能用于扩展现有代码。由于其运行在JVM上的特性,Groovy也可以使用其他非Java语言编写的库。

收录资源 454 份 全站深度检索
源码文件

import java.util.ArrayList class Loop2 { def array = new ArrayList() def pos = 0 void push(obj){ array[pos] = obj …

源码文件

package groovy.bugs; import org.codehaus.groovy.dummy.ClassWithStaticMethod /** * Test case to check if imports can use fully q…

源码文件

package groovy.bugs // The order of the classes is crucial, the first must be the GroovyTestCase. Its name doesn't // matter i…

源码文件

package groovy.bugs class Groovy872 extends GroovyTestCase { void testScript ( ) { assertScript ( """ def cal = new Gregori…

源码文件

package gls.ch03.s02 /** * GLS 3.2: The longest possible translation is used at each step, even if the * result does not u…

源码文件

package gls.ch03.s02 /** Checks Lexical Translation steps as defined in $3.2 of GLS * @author Jeremy Rayner */ class Lexic…

源码文件

package gls.ch03.s01; /** * Except for comments, identifiers and the contents of ... string * literals, all input elements a…

源码文件

package gls.ch03.s01; /** * Except for comments, identifiers and the contents of ... string * literals, all input elements a…