org.objectweb.fractal.adl
Class AbstractNode
- Node
public abstract class AbstractNode
AbstractNode
public AbstractNode(String type)
astGetDecoration
public Object astGetDecoration(String name)
Returns a decoration of this node.
- astGetDecoration in interface Node
name
- the decoration's name.
- a decoration of this node. May be
null
if this node
does not have a decoration with the specified name.
astGetDecorations
public Map astGetDecorations()
Returns the decorations of this node.
- astGetDecorations in interface Node
- the decorations of this node.
astGetSource
public String astGetSource()
Returns the source of this node.
- astGetSource in interface Node
- the source of this node (such as a file name).
astGetType
public String astGetType()
Returns the type of this node.
- astGetType in interface Node
- the type of this node.
astSetDecoration
public void astSetDecoration(String name,
Object decoration)
Sets a decoration of this node.
- astSetDecoration in interface Node
name
- the decoration's name.decoration
- a decoration.
astSetDecorations
public void astSetDecorations(Map decorations)
Sets the decorations of this node.
- astSetDecorations in interface Node
decorations
- the decorations of this node that must be changed
(decorations that are not defined in this argument are left unchanged).
astSetSource
public void astSetSource(String source)
Sets the source of this node.
- astSetSource in interface Node
source
- the source of this node (such as a file name).