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
35 public function setLine($line);
38 * Gets the doc comment of the node.
40 * The doc comment has to be the last comment associated with the node.
42 * @return null|Comment\Doc Doc comment object or null
44 public function getDocComment();
47 * Sets the doc comment of the node.
49 * This will either replace an existing doc comment or add it to the comments array.
51 * @param Comment\Doc $docComment Doc comment to set
53 public function setDocComment(Comment\Doc $docComment);
56 * Sets an attribute on a node.
61 public function setAttribute($key, $value);
64 * Returns whether an attribute exists.
70 public function hasAttribute($key);
73 * Returns the value of an attribute.
76 * @param mixed $default
80 public function &getAttribute($key, $default = null);
83 * Returns all attributes for the given node.
87 public function getAttributes();