|
org.apache.tools.ant.module/3 3.47.1 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.module.api.support.TargetLister.Target
public static final class TargetLister.Target
Representation of a target from an Ant script.
Method Summary | |
---|---|
Element |
getElement()
Gets the XML element that defines the target. |
String |
getName()
Gets the simple name of the target. |
String |
getQualifiedName()
Gets the qualified name of the target. |
AntProjectCookie |
getScript()
Gets the actual Ant script this target was found in. |
boolean |
isDefault()
Tests whether this target is the default for the main script. |
boolean |
isDescribed()
Tests whether this target has a description. |
boolean |
isInternal()
Tests whether a target is marked as internal to the script. |
boolean |
isOverridden()
Tests whether this target is overridden in an importing script. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getName()
name
attribute.
public String getQualifiedName()
depends
attribute to
distinguish an imported target from a target of the same name in the
importing script.
public Element getElement()
target
public AntProjectCookie getScript()
getElement()
should be owned by AntProjectCookie.getDocument()
.
public boolean isDescribed()
description
attribute in XML.
Typically, targets with descriptions are intended to be exposed to the
user of the script, whereas undescribed targets may not be intended
for general use. However not all script authors use descriptions, so
described targets should only be given UI precedence.
public boolean isInternal()
public boolean isOverridden()
getQualifiedName()
).
Note that this flag may be true when asked of a TargetLister.Target
gotten
via the importing script, while false when asked of the same target
gotten directly from the imported script, since the meaning is dependent
on the import chain.
public boolean isDefault()
default
attribute in an imported script is ignored.
However the default target might come from an imported script.
public String toString()
toString
in class Object
|
org.apache.tools.ant.module/3 3.47.1 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |