|
Gant 1.9.6 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Binding
org.codehaus.gant.GantBinding
class GantBinding extends groovy.lang.Binding
This class is a sub-class of groovy.lang.Binding
to provide extra capabilities. In
particular, all the extra bits needed in the binding for Gant to actually work at all. Handle this as a
separate class to avoid replication of initialization if binding objects are cloned.
Constructor Summary | |
GantBinding()
Default constructor. |
|
GantBinding(groovy.lang.Binding binding)
Constructor taking an explicit |
|
GantBinding(org.apache.tools.ant.Project p)
Constructor taking an explicit |
Method Summary | |
---|---|
void
|
addBuildListener(org.apache.tools.ant.BuildListener buildListener)
Adds a |
void
|
forcedSettingOfVariable(java.lang.String name, java.lang.Object value)
|
java.util.List
|
getBuildListeners()
Getter for the list of build listeners. |
java.lang.Object
|
getVariable(java.lang.String name)
The method for getting values from the binding. |
void
|
removeBuildListener(org.apache.tools.ant.BuildListener buildListener)
Removes a |
void
|
setVariable(java.lang.String name, java.lang.Object value)
The method for setting values in the binding. |
Methods inherited from class groovy.lang.Binding | |
---|---|
groovy.lang.Binding#setProperty(java.lang.String, java.lang.Object), groovy.lang.Binding#getProperty(java.lang.String), groovy.lang.Binding#getVariable(java.lang.String), groovy.lang.Binding#setVariable(java.lang.String, java.lang.Object), groovy.lang.Binding#getVariables(), groovy.lang.Binding#getMetaClass(), groovy.lang.Binding#setMetaClass(groovy.lang.MetaClass), groovy.lang.Binding#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.Binding#wait(long), groovy.lang.Binding#wait(long, int), groovy.lang.Binding#wait(), groovy.lang.Binding#equals(java.lang.Object), groovy.lang.Binding#toString(), groovy.lang.Binding#hashCode(), groovy.lang.Binding#getClass(), groovy.lang.Binding#notify(), groovy.lang.Binding#notifyAll() |
Methods inherited from class groovy.lang.GroovyObjectSupport | |
---|---|
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
GantBinding()
GantBinding(groovy.lang.Binding binding)
Binding
as parameter.
binding
- The Binding
to use as a base of maplets to initialize the
GantBinding
with.
GantBinding(org.apache.tools.ant.Project p)
Project
as parameter.
p
- The Project
to use when initializing the GantBuilder
.
Method Detail |
---|
void addBuildListener(org.apache.tools.ant.BuildListener buildListener)
BuildListener
instance to this Gant
instance
void forcedSettingOfVariable(java.lang.String name, java.lang.Object value)
setVariable
includes tests for certain names so as to make them read only as far as the
Gant script is concerned. However the implementation code needs to be able to circumvent that
checking, and so we provide this method for implementation code to force things at times other than
initialization. This need came about in realizing GANT-44.
ant
- the GantBuilder
to assign to the 'ant' entry in the binding.
java.util.List getBuildListeners()
java.lang.Object getVariable(java.lang.String name)
void removeBuildListener(org.apache.tools.ant.BuildListener buildListener)
BuildListener
instance from this Gant
instance
void setVariable(java.lang.String name, java.lang.Object value)
name
- The symbol to define.value
- The value to associate with the name.
Copyright © 2006–9 The Codehaus. All Rights Reserved.