1 | <?php |
||
40 | class PointcutExpression implements CodifyableInterface |
||
41 | { |
||
42 | |||
43 | /** |
||
44 | * Joinpoint at which the enclosed advices have to be weaved |
||
45 | * |
||
46 | * @var \AppserverIo\Doppelgaenger\Entities\Joinpoint|null $joinpoint |
||
47 | */ |
||
48 | protected $joinpoint; |
||
49 | |||
50 | /** |
||
51 | * Pointcut(tree) representing the logical structure of the given string expression |
||
52 | * |
||
53 | * @var \AppserverIo\Doppelgaenger\Interfaces\PointcutInterface $pointcut |
||
54 | */ |
||
55 | protected $pointcut; |
||
56 | |||
57 | /** |
||
58 | * Original string definition of the pointcut |
||
59 | * |
||
60 | * @var string $string |
||
61 | */ |
||
62 | protected $string; |
||
63 | |||
64 | /** |
||
65 | * Default constructor |
||
66 | * |
||
67 | * @param string $rawString Raw string the pointcuts expressions can be filtered from |
||
68 | */ |
||
69 | public function __construct($rawString) |
||
77 | |||
78 | /** |
||
79 | * Getter for the $joinpoints property |
||
80 | * |
||
81 | * @return \AppserverIo\Doppelgaenger\Entities\Joinpoint|null |
||
82 | */ |
||
83 | public function getJoinpoint() |
||
87 | |||
88 | /** |
||
89 | * Getter for the $pointcut property |
||
90 | * |
||
91 | * @return \AppserverIo\Doppelgaenger\Interfaces\PointcutInterface |
||
92 | */ |
||
93 | public function getPointcut() |
||
97 | |||
98 | /** |
||
99 | * Getter for the $string property |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | public function getString() |
||
107 | |||
108 | /** |
||
109 | * Setter for the $joinpoints property |
||
110 | * |
||
111 | * @param \AppserverIo\Doppelgaenger\Entities\Joinpoint $joinpoint Joinpoint instance to set |
||
112 | * |
||
113 | * @return null |
||
114 | */ |
||
115 | public function setJoinpoint(Joinpoint $joinpoint) |
||
119 | |||
120 | /** |
||
121 | * Setter for the $pointcut property |
||
122 | * |
||
123 | * @param \AppserverIo\Doppelgaenger\Interfaces\PointcutInterface $pointcut Pointcut of this expression |
||
124 | * |
||
125 | * @return null |
||
126 | */ |
||
127 | public function setPointcut($pointcut) |
||
131 | |||
132 | /** |
||
133 | * Setter for the $string property |
||
134 | * |
||
135 | * @param string $string Expression string |
||
136 | * |
||
137 | * @return null |
||
138 | */ |
||
139 | public function setString($string) |
||
143 | |||
144 | /** |
||
145 | * Return a string representation of the logic behind pointcut expression |
||
146 | * |
||
147 | * @return string |
||
148 | */ |
||
149 | public function toCode() |
||
168 | } |
||
169 |