public abstract static class GroovyTypeCheckingExtensionSupport.TypeCheckingDSL extends Script
Constructor and Description |
---|
TypeCheckingDSL() |
Modifier and Type | Method and Description |
---|---|
Object |
getProperty(String property)
Retrieves a property value.
|
Object |
invokeMethod(String name,
Object args)
Invoke a method (or closure in the binding) defined.
|
void |
setProperty(String property,
Object newValue)
Sets the given property to the new value.
|
evaluate, evaluate, getBinding, print, printf, printf, println, println, run, run, setBinding
getMetaClass, setMetaClass
public Object getProperty(String property)
GroovyObject
getProperty
in interface GroovyObject
getProperty
in class Script
property
- the name of the property of interestpublic void setProperty(String property, Object newValue)
GroovyObject
setProperty
in interface GroovyObject
setProperty
in class Script
property
- the name of the property of interestnewValue
- the new value for the propertypublic Object invokeMethod(String name, Object args)
Script
invokeMethod
in interface GroovyObject
invokeMethod
in class Script
name
- method to callargs
- arguments to pass to the method