|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport groovy.lang.ExpandoMetaClass.ExpandoMetaProperty
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 Summary | |
---|---|
protected boolean |
isStatic
|
protected String |
propertyName
|
Constructor Summary | |
protected ExpandoMetaClass.ExpandoMetaProperty(String name)
|
|
protected ExpandoMetaClass.ExpandoMetaProperty(String name, boolean isStatic)
|
Method Summary | |
---|---|
Object
|
getProperty(String property)
|
String
|
getPropertyName()
|
boolean
|
isStatic()
|
Object
|
leftShift(Object arg)
|
void
|
setProperty(String property, Object newValue)
|
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected boolean isStatic
protected String propertyName
Constructor Detail |
---|
protected ExpandoMetaClass.ExpandoMetaProperty(String name)
protected ExpandoMetaClass.ExpandoMetaProperty(String name, boolean isStatic)
Method Detail |
---|
public Object getProperty(String property)
public String getPropertyName()
public boolean isStatic()
public Object leftShift(Object arg)
public void setProperty(String property, Object newValue)
Copyright © 2003-2013 The Codehaus. All rights reserved.