Package groovy.lang
Class ExpandoMetaClass.ExpandoMetaProperty
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.ExpandoMetaClass.ExpandoMetaProperty
- All Implemented Interfaces:
- GroovyObject
- Enclosing class:
- ExpandoMetaClass
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
- 
Field SummaryFields Modifier and Type Field Description protected booleanisStaticprotected java.lang.StringpropertyName
- 
Constructor SummaryConstructors Modifier Constructor Description protectedExpandoMetaProperty(java.lang.String name)protectedExpandoMetaProperty(java.lang.String name, boolean isStatic)
- 
Method SummaryModifier and Type Method Description java.lang.ObjectgetProperty(java.lang.String property)Retrieves a property value.java.lang.StringgetPropertyName()booleanisStatic()java.lang.ObjectleftShift(java.lang.Object arg)voidsetProperty(java.lang.String property, java.lang.Object newValue)Sets the given property to the new value.Methods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass, setMetaClassMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObjectinvokeMethod
- 
Field Details- 
propertyNameprotected java.lang.String propertyName
- 
isStaticprotected boolean isStatic
 
- 
- 
Constructor Details- 
ExpandoMetaPropertyprotected ExpandoMetaProperty(java.lang.String name)
- 
ExpandoMetaPropertyprotected ExpandoMetaProperty(java.lang.String name, boolean isStatic)
 
- 
- 
Method Details- 
getPropertyNamepublic java.lang.String getPropertyName()
- 
isStaticpublic boolean isStatic()
- 
leftShiftpublic java.lang.Object leftShift(java.lang.Object arg)
- 
getPropertypublic java.lang.Object getProperty(java.lang.String property)Description copied from interface:GroovyObjectRetrieves a property value.- Parameters:
- property- the name of the property of interest
- Returns:
- the given property
 
- 
setPropertypublic void setProperty(java.lang.String property, java.lang.Object newValue)Description copied from interface:GroovyObjectSets the given property to the new value.- Parameters:
- property- the name of the property of interest
- newValue- the new value for the property
 
 
-