Package org.codenarc.util
Class GroovyVersion
java.lang.Object
org.codenarc.util.GroovyVersion
- All Implemented Interfaces:
groovy.lang.GroovyObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongroovy.lang.MetaClass
getProperty
(String property) static String
invokeMethod
(String method, Object arguments) static boolean
static boolean
static boolean
static boolean
static boolean
void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value)
-
Constructor Details
-
GroovyVersion
public GroovyVersion()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getVersion
-
isGroovy1_8
public static boolean isGroovy1_8() -
isGroovy2_x
public static boolean isGroovy2_x() -
isGroovy1_8_OrGreater
public static boolean isGroovy1_8_OrGreater() -
isGroovy1_7
public static boolean isGroovy1_7() -
isGroovy1_6
public static boolean isGroovy1_6()
-