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.MetaClassgetProperty(String property) static StringinvokeMethod(String method, Object arguments) static booleanstatic booleanstatic booleanstatic booleanstatic booleanvoidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value)
-
Constructor Details
-
GroovyVersion
public GroovyVersion()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setPropertyin 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()
-