Package groovy.lang
Class ExpandoMetaClass.ExpandoMetaProperty
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.ExpandoMetaClass.ExpandoMetaProperty
- All Implemented Interfaces:
- GroovyObject
- Enclosing class:
- ExpandoMetaClass
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
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedExpandoMetaProperty(String name) protectedExpandoMetaProperty(String name, boolean isStatic) 
- 
Method SummaryModifier and TypeMethodDescriptiongetProperty(String property) Retrieves a property value.booleanisStatic()voidsetProperty(String property, 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- 
propertyName
- 
isStaticprotected boolean isStatic
 
- 
- 
Constructor Details- 
ExpandoMetaProperty
- 
ExpandoMetaProperty
 
- 
- 
Method Details- 
getPropertyName
- 
isStaticpublic boolean isStatic()
- 
leftShift
- 
getPropertyDescription copied from interface:GroovyObjectRetrieves a property value.- Parameters:
- property- the name of the property of interest
- Returns:
- the given property
 
- 
setPropertyDescription 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
 
 
-