protected class ExpandoMetaClass.ExpandoMetaProperty
extends GroovyObjectSupport
Instances of this class are returned when using the << left shift operator.
Example:
metaClass.myMethod << { String args -> }
This allows callbacks to the ExpandoMetaClass for registering appending methods
| Modifiers | Name | Description |
|---|---|---|
protected boolean |
isStatic |
Indicates whether the current expando member is static. |
protected String |
propertyName |
Current expando member name being defined. |
| Constructor and description |
|---|
protected ExpandoMetaProperty(String name)Creates an instance-member expando property helper. |
protected ExpandoMetaProperty(String name, boolean isStatic)Creates an expando property helper. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
getProperty(String property)Retrieves a property value.
|
|
public String |
getPropertyName()Returns the expando member name currently being configured. |
|
public boolean |
isStatic()Indicates whether this helper is defining static members. |
|
public Object |
leftShift(Object arg)Appends a new expando method definition using the << DSL operator. |
|
public void |
setProperty(String property, Object newValue)Sets the given property to the new value.
|
| Methods inherited from class | Name |
|---|---|
class GroovyObjectSupport |
getMetaClass, setMetaClass |
Indicates whether the current expando member is static.
Current expando member name being defined.
Creates an instance-member expando property helper.
name - the member name being definedCreates an expando property helper.
name - the member name being definedisStatic - whether static members are being definedRetrieves a property value.
propertyName - the name of the property of interestReturns the expando member name currently being configured.
Indicates whether this helper is defining static members.
true for static definitions Appends a new expando method definition using the << DSL operator.
arg - the closure defining the method bodyCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.