Verify if the current token is one of the targetted classes.

@since 0.11.0 Split out from the `process()` method.

@param int $stackPtr The position of the current token in the stack.

@return int|void Integer stack pointer to skip forward or void to continue
normal file processing.