accessFlag = $this->readUnsignedShort(); $this->nameIndex = $this->readUnsignedShort(); $this->descriptorIndex = $this->readUnsignedShort(); $this->attributeCount = $this->readUnsignedShort(); for ($i = 0; $i < $this->attributeCount; $i++) { $attribute = new \PHPJava\Kernel\Attributes\AttributeInfo($this->reader); $attribute->setConstantPool($this->getConstantPool()); $attribute->setDebugTool($this->getDebugTool()); $attribute->execute(); $this->attributes[] = $attribute; } } public function getAccessFlag(): int { return $this->accessFlag; } public function getNameIndex(): int { return $this->nameIndex; } public function getDescriptorIndex(): int { return $this->descriptorIndex; } /** * @var \PHPJava\Kernel\Attributes\AttributeInfo[] */ public function getAttributes(): array { return $this->attributes; } }