GroovyObject
public abstract static class GroovyTypeCheckingExtensionSupport.TypeCheckingDSL extends Script
Constructor | Description |
---|---|
TypeCheckingDSL() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
getProperty(java.lang.String property) |
Retrieves a property value.
|
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args) |
Invoke a method (or closure in the binding) defined.
|
void |
setProperty(java.lang.String property,
java.lang.Object newValue) |
Sets the given property to the new value.
|
getMetaClass, setMetaClass
public java.lang.Object getProperty(java.lang.String property)
GroovyObject
getProperty
in interface GroovyObject
getProperty
in class Script
property
- the name of the property of interestpublic void setProperty(java.lang.String property, java.lang.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 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
Script
invokeMethod
in interface GroovyObject
invokeMethod
in class Script
name
- method to callargs
- arguments to pass to the method