站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

TaskStructure (Ant) - NetBeans API Javadoc (Current Development Version)

org.apache.tools.ant.module/3 3.27.0 2

org.apache.tools.ant.module.spi
Class TaskStructure

java.lang.Object
  extended by org.apache.tools.ant.module.spi.TaskStructure

public final class TaskStructure
extends Object

Describes the structure of a task. Each instance corresponds to one task or nested element in a build script.

Since:
org.apache.tools.ant.module/3 3.12

Method Summary
 String getAttribute(String name)
          Get a single attribute.
 Set<String> getAttributeNames()
          Get a set of all defined attribute names.
 TaskStructure[] getChildren()
          Get any configured child elements.
 String getName()
          Get the element name.
 String getText()
          Get configured nested text.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public String getName()
Get the element name. XXX precise behavior w.r.t. namespaces etc.

Returns:
a name, never null

getAttribute

public String getAttribute(String name)
Get a single attribute. It will be unevaluated as configured in the script. If you wish to find the actual runtime value, you may use AntEvent.evaluate(java.lang.String).

Parameters:
name - the attribute name
Returns:
the raw value of that attribute, or null

getAttributeNames

public Set<String> getAttributeNames()
Get a set of all defined attribute names.

Returns:
a set of names suitable for getAttribute(java.lang.String); may be empty but not null

getText

public String getText()
Get configured nested text. It will be unevaluated as configured in the script. If you wish to find the actual runtime value, you may use AntEvent.evaluate(java.lang.String).

Returns:
the raw text contained in the element, or null

getChildren

public TaskStructure[] getChildren()
Get any configured child elements.

Returns:
a list of child structure elements; may be empty but not null

toString

public String toString()
Overrides:
toString in class Object

org.apache.tools.ant.module/3 3.27.0 2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.