PluginProbe
WPIDE – File Manager & Code Editor / 2.2
WPIDE – File Manager & Code Editor v2.2
3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 3.3 3.4 All 54 releases
wpide / PHP-Parser / lib / PHPParser / Node.php

Node.php in WPIDE – File Manager & Code Editor 2.2, at PHP-Parser/lib/PHPParser/Node.php

75 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 interface PHPParser_Node
4 {
5 /**
6 * Gets the type of the node.
7 *
8 * @return string Type of the node
9 */
10 public function getType();
11
12 /**
13 * Gets the names of the sub nodes.
14 *
15 * @return array Names of sub nodes
16 */
17 public function getSubNodeNames();
18
19 /**
20 * Gets line the node started in.
21 *
22 * @return int Line
23 */
24 public function getLine();
25
26 /**
27 * Sets line the node started in.
28 *
29 * @param int $line Line
30 */
31 public function setLine($line);
32
33 /**
34 * Gets the doc comment of the node.
35 *
36 * The doc comment has to be the last comment associated with the node.
37 *
38 * @return null|PHPParser_Comment_Doc Doc comment object or null
39 */
40 public function getDocComment();
41
42 /**
43 * Sets an attribute on a node.
44 *
45 * @param string $key
46 * @param mixed $value
47 */
48 public function setAttribute($key, $value);
49
50 /**
51 * Returns whether an attribute exists.
52 *
53 * @param string $key
54 *
55 * @return bool
56 */
57 public function hasAttribute($key);
58
59 /**
60 * Returns the value of an attribute.
61 *
62 * @param string $key
63 * @param mixed $default
64 *
65 * @return mixed
66 */
67 public function &getAttribute($key, $default = null);
68
69 /**
70 * Returns all attributes for the given node.
71 *
72 * @return array
73 */
74 public function getAttributes();
75 }