|
||||||||||
| 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 ObjectCloneNotSupportedExceptionpublic Object getProperty(String property)
getProperty in interface GroovyObjectgetProperty in class GroovyObjectSupportproperty - - the property to get
public Object setProperty(String property)
property - - the property to set
public Object invokeMethod(String name,
Object args)
GroovyObject
invokeMethod in interface GroovyObjectinvokeMethod in class GroovyObjectSupportname - the name of the method to invokeargs - - arguments to the methodpublic boolean equals(Object to)
equals in class Objectto - - 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 | |||||||||