8 * Gets the type of the node.
10 * @return string Type of the node
12 public function getType();
15 * Gets the names of the sub nodes.
17 * @return array Names of sub nodes
19 public function getSubNodeNames();
22 * Gets line the node started in.
26 public function getLine();
29 * Sets line the node started in.
31 * @param int $line Line
33 public function setLine($line);
36 * Gets the doc comment of the node.
38 * The doc comment has to be the last comment associated with the node.
40 * @return null|Comment\Doc Doc comment object or null
42 public function getDocComment();
45 * Sets the doc comment of the node.
47 * This will either replace an existing doc comment or add it to the comments array.
49 * @param Comment\Doc $docComment Doc comment to set
51 public function setDocComment(Comment\Doc $docComment);
54 * Sets an attribute on a node.
59 public function setAttribute($key, $value);
62 * Returns whether an attribute exists.
68 public function hasAttribute($key);
71 * Returns the value of an attribute.
74 * @param mixed $default
78 public function &getAttribute($key, $default = null);
81 * Returns all attributes for the given node.
85 public function getAttributes();