|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.IntrospectionHelper
Helper class that collects the methods a task or nested element holds to set attributes, create nested elements or hold PCDATA elements.
Method Summary | |
void |
addText(Project project,
java.lang.Object element,
java.lang.String text)
Adds PCDATA areas. |
void |
buildFinished(BuildEvent event)
Fired after the last target has finished. |
void |
buildStarted(BuildEvent event)
Fired before any targets are started. |
java.lang.Object |
createElement(Project project,
java.lang.Object element,
java.lang.String elementName)
Creates a named nested element. |
java.util.Enumeration |
getAttributes()
Return all attribues supported by the introspected class. |
java.lang.Class |
getAttributeType(java.lang.String attributeName)
returns the type of a named attribute. |
protected java.lang.String |
getElementName(Project project,
java.lang.Object element)
|
java.lang.Class |
getElementType(java.lang.String elementName)
returns the type of a named nested element. |
static IntrospectionHelper |
getHelper(java.lang.Class c)
Factory method for helper objects. |
java.util.Enumeration |
getNestedElements()
Return all nested elements supported by the introspected class. |
void |
messageLogged(BuildEvent event)
Fired whenever a message is logged. |
void |
setAttribute(Project p,
java.lang.Object element,
java.lang.String attributeName,
java.lang.String value)
Sets the named attribute. |
void |
storeElement(Project project,
java.lang.Object element,
java.lang.Object child,
java.lang.String elementName)
Creates a named nested element. |
boolean |
supportsCharacters()
Does the introspected class support PCDATA? |
void |
targetFinished(BuildEvent event)
Fired when a target has finished. |
void |
targetStarted(BuildEvent event)
Fired when a target is started. |
void |
taskFinished(BuildEvent event)
Fired when a task has finished. |
void |
taskStarted(BuildEvent event)
Fired when a task is started. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IntrospectionHelper getHelper(java.lang.Class c)
public void setAttribute(Project p, java.lang.Object element, java.lang.String attributeName, java.lang.String value) throws BuildException
public void addText(Project project, java.lang.Object element, java.lang.String text)
public java.lang.Object createElement(Project project, java.lang.Object element, java.lang.String elementName) throws BuildException
public void storeElement(Project project, java.lang.Object element, java.lang.Object child, java.lang.String elementName) throws BuildException
public java.lang.Class getElementType(java.lang.String elementName) throws BuildException
public java.lang.Class getAttributeType(java.lang.String attributeName) throws BuildException
public boolean supportsCharacters()
public java.util.Enumeration getAttributes()
public java.util.Enumeration getNestedElements()
protected java.lang.String getElementName(Project project, java.lang.Object element)
public void buildStarted(BuildEvent event)
BuildListener
buildStarted
in interface BuildListener
public void buildFinished(BuildEvent event)
BuildListener
buildFinished
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getException()
public void targetStarted(BuildEvent event)
BuildListener
targetStarted
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getTarget()
public void targetFinished(BuildEvent event)
BuildListener
targetFinished
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getException()
public void taskStarted(BuildEvent event)
BuildListener
taskStarted
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getTask()
public void taskFinished(BuildEvent event)
BuildListener
taskFinished
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getException()
public void messageLogged(BuildEvent event)
BuildListener
messageLogged
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getMessage()
,
BuildEvent.getPriority()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |