original_string: public function parse($param_str) {
          $file = new File(trim($param_str), $this->getScope()->getFile()->getAbsoluteFile()->getParent());
          if (!$file->exists()) {
              throw new ResourceNotFoundException($param_str, $this->getScope(), $this->getOccursPos(), "The Requirement File Not Exists");
          }
          if (is_null($require_resource = $this->getParentProject()->getResourceByFile($file))) {
              throw new \Chigi\Chiji\Exception\ProjectMemberNotFoundException("ERROR: UNREGISTERED Resource File: " + $file->getAbsolutePath());
          }
          if ($this->getScope() instanceof RequiresMapInterface) {
              $this->getScope()->getRequires()->addResource($require_resource);
          }
      }
code: public function parse($param_str) {
          $file = new File(trim($param_str), $this->getScope()->getFile()->getAbsoluteFile()->getParent());
          if (!$file->exists()) {
              throw new ResourceNotFoundException($param_str, $this->getScope(), $this->getOccursPos(), "The Requirement File Not Exists");
          }
          if (is_null($require_resource = $this->getParentProject()->getResourceByFile($file))) {
              throw new \Chigi\Chiji\Exception\ProjectMemberNotFoundException("ERROR: UNREGISTERED Resource File: " + $file->getAbsolutePath());
          }
          if ($this->getScope() instanceof RequiresMapInterface) {
              $this->getScope()->getRequires()->addResource($require_resource);
          }
      }
code_tokens: public function parse ( $ param_str ) { $ file = new File ( trim ( $ param_str ) , $ this -> getScope ( ) -> getFile ( ) -> getAbsoluteFile ( ) -> getParent ( ) ) ; if ( ! $ file -> exists ( ) ) { throw new ResourceNotFoundException ( $ param_str , $ this -> getScope ( ) , $ this -> getOccursPos ( ) , "The Requirement File Not Exists" ) ; } if ( is_null ( $ require_resource = $ this -> getParentProject ( ) -> getResourceByFile ( $ file ) ) ) { throw new \ Chigi \ Chiji \ Exception \ ProjectMemberNotFoundException ( "ERROR: UNREGISTERED Resource File: " + $ file -> getAbsolutePath ( ) ) ; } if ( $ this -> getScope ( ) instanceof RequiresMapInterface ) { $ this -> getScope ( ) -> getRequires ( ) -> addResource ( $ require_resource ) ; } }
docstring: Parse the path param in the require annotation to an Resource File Object.
  @param string $param_str The String as params following the command name
  @throws ResourceNotFoundException
docstring_tokens: Parse the path param in the require annotation to an Resource File Object .