protected function parseMethodModifiers(array $tokens)
	{
		$modifiers = MetaInfo::IS_PUBLIC;
	
		foreach($tokens as $tok)
		{
			if(is_array($tok))
			{
				switch($tok[0])
				{
					case T_PUBLIC:
						$modifiers = ($modifiers | MetaInfo::MASK_VISIBILITY) ^ MetaInfo::IS_NOT_PUBLIC;
						break;
					case T_PRIVATE:
						$modifiers = ($modifiers | MetaInfo::MASK_VISIBILITY) ^ MetaInfo::IS_NOT_PRIVATE;
						break;
					case T_PROTECTED:
						$modifiers = ($modifiers | MetaInfo::MASK_VISIBILITY) ^ MetaInfo::IS_NOT_PROTECTED;
						break;
					case T_STATIC:
						$modifiers |= MetaInfo::IS_STATIC;
						break;
					case T_ABSTRACT:
						$modifiers |= MetaInfo::IS_ABSTRACT;
						break;
					case T_FINAL:
						$modifiers |= MetaInfo::IS_FINAL;
						break;
				}
			}
		}
	
		return $modifiers;
	}
protected function parseMethodModifiers(array $tokens)
	{
		$modifiers = MetaInfo::IS_PUBLIC;
	
		foreach($tokens as $tok)
		{
			if(is_array($tok))
			{
				switch($tok[0])
				{
					case T_PUBLIC:
						$modifiers = ($modifiers | MetaInfo::MASK_VISIBILITY) ^ MetaInfo::IS_NOT_PUBLIC;
						break;
					case T_PRIVATE:
						$modifiers = ($modifiers | MetaInfo::MASK_VISIBILITY) ^ MetaInfo::IS_NOT_PRIVATE;
						break;
					case T_PROTECTED:
						$modifiers = ($modifiers | MetaInfo::MASK_VISIBILITY) ^ MetaInfo::IS_NOT_PROTECTED;
						break;
					case T_STATIC:
						$modifiers |= MetaInfo::IS_STATIC;
						break;
					case T_ABSTRACT:
						$modifiers |= MetaInfo::IS_ABSTRACT;
						break;
					case T_FINAL:
						$modifiers |= MetaInfo::IS_FINAL;
						break;
				}
			}
		}
	
		return $modifiers;
	}
protected function parseMethodModifiers ( array $ tokens ) { $ modifiers = MetaInfo :: IS_PUBLIC ; foreach ( $ tokens as $ tok ) { if ( is_array ( $ tok ) ) { switch ( $ tok [ 0 ] ) { case T_PUBLIC : $ modifiers = ( $ modifiers | MetaInfo :: MASK_VISIBILITY ) ^ MetaInfo :: IS_NOT_PUBLIC ; break ; case T_PRIVATE : $ modifiers = ( $ modifiers | MetaInfo :: MASK_VISIBILITY ) ^ MetaInfo :: IS_NOT_PRIVATE ; break ; case T_PROTECTED : $ modifiers = ( $ modifiers | MetaInfo :: MASK_VISIBILITY ) ^ MetaInfo :: IS_NOT_PROTECTED ; break ; case T_STATIC : $ modifiers |= MetaInfo :: IS_STATIC ; break ; case T_ABSTRACT : $ modifiers |= MetaInfo :: IS_ABSTRACT ; break ; case T_FINAL : $ modifiers |= MetaInfo :: IS_FINAL ; break ; } } } return $ modifiers ; }
Parse all method modifiers from the given tokens and combine them into a bit mask.

@param array $tokens
@return integer
Parse all method modifiers from the given tokens and combine them into a bit mask .