|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
org.codehaus.groovy.runtime.NullObject
public class NullObject
Method Summary | |
---|---|
Object |
clone()
Since this is implemented as a singleton, we should avoid the use of the clone method |
boolean |
equals(Object to)
|
static NullObject |
getNullObject()
get the NullObject reference |
Object |
getProperty(String property)
|
Object |
invokeMethod(String name,
Object args)
Invokes the given method |
Iterator |
iterator()
iterator() method to be able to iterate on null. |
Object |
plus(String s)
|
Object |
setProperty(String property)
|
Methods inherited from class groovy.lang.GroovyObjectSupport |
---|
getMetaClass, setMetaClass, setProperty |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NullObject getNullObject()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public Object getProperty(String property)
getProperty
in interface GroovyObject
getProperty
in class GroovyObjectSupport
property
- - the property to get
public Object setProperty(String property)
property
- - the property to setpublic Object invokeMethod(String name, Object args)
GroovyObject
invokeMethod
in interface GroovyObject
invokeMethod
in class GroovyObjectSupport
name
- the name of the method to invokeargs
- - arguments to the methodpublic boolean equals(Object to)
equals
in class Object
to
- - the reference object with which to comparepublic Iterator iterator()
public Object plus(String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |