Package net.ggtools.grand.ant
Class AntTargetNode
- java.lang.Object
-
- net.ggtools.grand.graph.NodeImpl
-
- net.ggtools.grand.ant.AntTargetNode
-
- All Implemented Interfaces:
GraphObject,Node
public class AntTargetNode extends NodeImpl
A node implementation specialized for Ant target.- Author:
- Christophe Labouisse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAntTargetNode.SourceElementInner class SourceElement.
-
Field Summary
Fields Modifier and Type Field Description static intSOURCE_ATTRIBUTEField SOURCE_ATTRIBUTE.static intSOURCE_MARKUPField SOURCE_MARKUP.static intSOURCE_TEXTField SOURCE_TEXT.static intSOURCE_UNKNOWNField SOURCE_UNKNOWN.-
Fields inherited from interface net.ggtools.grand.graph.GraphObject
ATTR_ALL, ATTR_NONE
-
Fields inherited from interface net.ggtools.grand.graph.Node
ATTR_CONDITIONAL_NODE, ATTR_MAIN_NODE, ATTR_MISSING_NODE, ATTR_PREFIXED_NODE, ATTR_START_NODE
-
-
Constructor Summary
Constructors Constructor Description AntTargetNode(String name, Graph graph)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(NodeVisitor visitor)Method accept.voidclearAttributes(int attributeMask)Method clearAttributes.intgetAttributes()Method getAttributes.StringgetBuildFile()Returns this node build file ornullif the build file is the current project.StringgetIfCondition()Returns the if condition for the target ornullif none defined.AntTargetNode.SourceElement[]getRichSource()StringgetUnlessCondition()Returns the unless condition for the target ornullif none defined.booleanhasAttributes(int attributeMask)Method hasAttributes.voidsetAttributes(int attributeMask)Method setAttributes.voidsetRichSource(AntTargetNode.SourceElement[] richSource)-
Methods inherited from class net.ggtools.grand.graph.NodeImpl
addBackLink, addLink, equals, getBackLinks, getDescription, getGraph, getLinks, getName, getSource, hashCode, removeBackLink, removeLink, setDescription, setSource, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.ggtools.grand.graph.GraphObject
clearAttributes, getAttributes, hasAttributes, setAttributes
-
-
-
-
Field Detail
-
SOURCE_ATTRIBUTE
public static final int SOURCE_ATTRIBUTE
Field SOURCE_ATTRIBUTE. (value is 2)- See Also:
- Constant Field Values
-
SOURCE_UNKNOWN
public static final int SOURCE_UNKNOWN
Field SOURCE_UNKNOWN. (value is 0)- See Also:
- Constant Field Values
-
SOURCE_MARKUP
public static final int SOURCE_MARKUP
Field SOURCE_MARKUP. (value is 1)- See Also:
- Constant Field Values
-
SOURCE_TEXT
public static final int SOURCE_TEXT
Field SOURCE_TEXT. (value is 3)- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public final void accept(NodeVisitor visitor)
Method accept.- Specified by:
acceptin interfaceNode- Overrides:
acceptin classNodeImpl- Parameters:
visitor- NodeVisitor- See Also:
Node.accept(net.ggtools.grand.graph.visit.NodeVisitor)
-
getBuildFile
public final String getBuildFile()
Returns this node build file ornullif the build file is the current project.- Returns:
- Returns the buildFile.
-
getIfCondition
public final String getIfCondition()
Returns the if condition for the target ornullif none defined.- Returns:
- Returns the if condition.
-
getRichSource
public final AntTargetNode.SourceElement[] getRichSource()
- Returns:
- Returns the richSource.
-
getUnlessCondition
public final String getUnlessCondition()
Returns the unless condition for the target ornullif none defined.- Returns:
- Returns the unless condition.
-
setRichSource
public final void setRichSource(AntTargetNode.SourceElement[] richSource)
- Parameters:
richSource- The richSource to set.
-
setAttributes
public void setAttributes(int attributeMask)
Method setAttributes.- Specified by:
setAttributesin interfaceGraphObject- Parameters:
attributeMask- int- See Also:
GraphObject.setAttributes(int)
-
getAttributes
public int getAttributes()
Method getAttributes.- Specified by:
getAttributesin interfaceGraphObject- Returns:
- int
- See Also:
GraphObject.getAttributes()
-
clearAttributes
public void clearAttributes(int attributeMask)
Method clearAttributes.- Specified by:
clearAttributesin interfaceGraphObject- Parameters:
attributeMask- int- See Also:
GraphObject.clearAttributes(int)
-
hasAttributes
public boolean hasAttributes(int attributeMask)
Method hasAttributes.- Specified by:
hasAttributesin interfaceGraphObject- Parameters:
attributeMask- int- Returns:
- boolean
- See Also:
GraphObject.hasAttributes(int)
-
-