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 class
AntTargetNode.SourceElement
Inner class SourceElement.
-
Field Summary
Fields Modifier and Type Field Description static int
SOURCE_ATTRIBUTE
Field SOURCE_ATTRIBUTE.static int
SOURCE_MARKUP
Field SOURCE_MARKUP.static int
SOURCE_TEXT
Field SOURCE_TEXT.static int
SOURCE_UNKNOWN
Field 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 void
accept(NodeVisitor visitor)
Method accept.void
clearAttributes(int attributeMask)
Method clearAttributes.int
getAttributes()
Method getAttributes.String
getBuildFile()
Returns this node build file ornull
if the build file is the current project.String
getIfCondition()
Returns the if condition for the target ornull
if none defined.AntTargetNode.SourceElement[]
getRichSource()
String
getUnlessCondition()
Returns the unless condition for the target ornull
if none defined.boolean
hasAttributes(int attributeMask)
Method hasAttributes.void
setAttributes(int attributeMask)
Method setAttributes.void
setRichSource(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:
accept
in interfaceNode
- Overrides:
accept
in classNodeImpl
- Parameters:
visitor
- NodeVisitor- See Also:
Node.accept(net.ggtools.grand.graph.visit.NodeVisitor)
-
getBuildFile
public final String getBuildFile()
Returns this node build file ornull
if the build file is the current project.- Returns:
- Returns the buildFile.
-
getIfCondition
public final String getIfCondition()
Returns the if condition for the target ornull
if 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 ornull
if 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:
setAttributes
in interfaceGraphObject
- Parameters:
attributeMask
- int- See Also:
GraphObject.setAttributes(int)
-
getAttributes
public int getAttributes()
Method getAttributes.- Specified by:
getAttributes
in interfaceGraphObject
- Returns:
- int
- See Also:
GraphObject.getAttributes()
-
clearAttributes
public void clearAttributes(int attributeMask)
Method clearAttributes.- Specified by:
clearAttributes
in interfaceGraphObject
- Parameters:
attributeMask
- int- See Also:
GraphObject.clearAttributes(int)
-
hasAttributes
public boolean hasAttributes(int attributeMask)
Method hasAttributes.- Specified by:
hasAttributes
in interfaceGraphObject
- Parameters:
attributeMask
- int- Returns:
- boolean
- See Also:
GraphObject.hasAttributes(int)
-
-