Skip to content

Commit 8251a15

Browse files
committed
Add doc
1 parent 3f01b15 commit 8251a15

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/Kernel/Mnemonics/_athrow.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use PHPJava\Exceptions\NotImplementedException;
55
use PHPJava\Exceptions\UnableToCatchException;
66
use PHPJava\Kernel\Attributes\CodeAttribute;
7+
use PHPJava\Kernel\Structures\_ExceptionTable;
78
use PHPJava\Utilities\AttributionResolver;
89
use PHPJava\Utilities\BinaryTool;
910
use PHPJava\Utilities\Formatter;
@@ -20,13 +21,19 @@ public function execute(): void
2021

2122
$className = str_replace('\\', '/', get_class($objectref));
2223

24+
/**
25+
* @var $codeAttribute CodeAttribute
26+
*/
2327
$codeAttribute = AttributionResolver::resolve(
2428
$this->getAttributes(),
2529
CodeAttribute::class
2630
);
2731

2832
$className = Formatter::convertPHPNamespacesToJava($className);
2933
foreach ($codeAttribute->getExceptionTables() as $exception) {
34+
/**
35+
* @var $exception _ExceptionTable
36+
*/
3037
$catchClass = Formatter::convertPHPNamespacesToJava($cpInfo[$cpInfo[$exception->getCatchType()]->getClassIndex()]->getString());
3138
if ($catchClass === $className &&
3239
$exception->getStartPc() <= $this->getProgramCounter() &&

0 commit comments

Comments
 (0)