|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.util.BuilderSupport
class BuilderSupport extends GroovyObjectSupport
An abstract base class for creating arbitrary nested trees of objects or events
Constructor Summary | |
BuilderSupport()
|
|
BuilderSupport(BuilderSupport proxyBuilder)
|
|
BuilderSupport(Closure nameMappingClosure, BuilderSupport proxyBuilder)
|
Method Summary | |
---|---|
protected Object
|
createNode(Object name)
|
protected Object
|
createNode(Object name, Object value)
|
protected Object
|
createNode(Object name, Map attributes)
|
protected Object
|
createNode(Object name, Map attributes, Object value)
|
protected Object
|
doInvokeMethod(String methodName, Object name, Object args)
|
protected Object
|
getCurrent()
|
protected Object
|
getName(String methodName)
A hook to allow names to be converted into some other object such as a QName in XML or ObjectName in JMX. |
Object
|
invokeMethod(String methodName)
Convenience method when no arguments are required |
Object
|
invokeMethod(String methodName, Object args)
|
protected void
|
nodeCompleted(Object parent, Object node)
A hook to allow nodes to be processed once they have had all of their children applied. |
protected Object
|
postNodeCompletion(Object parent, Object node)
A hook to allow nodes to be processed once they have had all of their children applied and allows the actual node object that represents the Markup element to be changed |
protected void
|
setClosureDelegate(Closure closure, Object node)
A strategy method to allow derived builders to use builder-trees and switch in different kinds of builders. |
protected void
|
setCurrent(Object current)
|
protected void
|
setParent(Object parent, Object child)
|
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
public BuilderSupport()
public BuilderSupport(BuilderSupport proxyBuilder)
public BuilderSupport(Closure nameMappingClosure, BuilderSupport proxyBuilder)
Method Detail |
---|
protected Object createNode(Object name)
protected Object createNode(Object name, Object value)
protected Object createNode(Object name, Map attributes)
protected Object createNode(Object name, Map attributes, Object value)
protected Object doInvokeMethod(String methodName, Object name, Object args)
protected Object getCurrent()
protected Object getName(String methodName)
public Object invokeMethod(String methodName)
public Object invokeMethod(String methodName, Object args)
protected void nodeCompleted(Object parent, Object node)
protected Object postNodeCompletion(Object parent, Object node)
protected void setClosureDelegate(Closure closure, Object node)
protected void setCurrent(Object current)
protected void setParent(Object parent, Object child)
Copyright © 2003-2009 The Codehaus. All rights reserved.