parent
93429bc8a5
commit
acf6646941
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,17 @@ |
||||
package pkg; |
||||
|
||||
import groovy.transform.Trait; |
||||
import org.codehaus.groovy.transform.trait.Traits.Implemented; |
||||
|
||||
@Trait |
||||
public interface TestGroovyTrait { |
||||
@Implemented |
||||
Object myMethod(); |
||||
|
||||
@Implemented |
||||
Object getMyField(); |
||||
|
||||
@Implemented |
||||
void setMyField(Object var1); |
||||
} |
||||
|
@ -0,0 +1,8 @@ |
||||
package pkg |
||||
|
||||
trait TestGroovyTrait { |
||||
def myField = 42 |
||||
def myMethod() { |
||||
42 |
||||
} |
||||
} |
Loading…
Reference in new issue