|
||||||||||
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 | |
---|---|
java.lang.Object |
clone()
Since this is implemented as a singleton, we should avoid the use of the clone method |
boolean |
equals(java.lang.Object to)
|
static NullObject |
getNullObject()
get the NullObject reference |
java.lang.Object |
getProperty(java.lang.String property)
|
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args)
Invokes the given method |
java.util.Iterator |
iterator()
iterator() method to be able to iterate on null. |
java.lang.Object |
plus(java.lang.String s)
|
java.lang.Object |
setProperty(java.lang.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 java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.Object getProperty(java.lang.String property)
getProperty
in interface GroovyObject
getProperty
in class GroovyObjectSupport
property
- - the property to get
public java.lang.Object setProperty(java.lang.String property)
property
- - the property to setpublic java.lang.Object invokeMethod(java.lang.String name, java.lang.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(java.lang.Object to)
equals
in class java.lang.Object
to
- - the reference object with which to comparepublic java.util.Iterator iterator()
public java.lang.Object plus(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |